Circuit Simulation with SPICE OPUS

Similar documents
THE SPICE BOOK. Andrei Vladimirescu. John Wiley & Sons, Inc. New York Chichester Brisbane Toronto Singapore

Modeling and Simulation in Science, Engineering and Technology

SPICE for Power Electronics and Electric Power

Microelectronic Circuits

Introduction to PSpice

SPICE FOR POWER ELECTRONICS AND ELECTRIC POWER

Preface to Third Edition Deep Submicron Digital IC Design p. 1 Introduction p. 1 Brief History of IC Industry p. 3 Review of Digital Logic Gate

A Short SPICE Tutorial

Introduction to OrCAD. Simulation Program With Integrated Circuits Emphasis.

1 FUNDAMENTAL CONCEPTS What is Noise Coupling 1

NGSPICE- Usage and Examples


Analysis and Design of Autonomous Microwave Circuits

ELECTRONICS WITH DISCRETE COMPONENTS

Introductory Electronics for Scientists and Engineers

Mentor Analog Simulators

UPSC Electrical Engineering Syllabus

Preface... iii. Chapter 1: Diodes and Circuits... 1

Introduction to SwitcherCAD

WinSpice. The steps to performing a circuit simulation with WinSpice are:

A Brief Handout for Introduction to

Design of Analog CMOS Integrated Circuits

MICRO-CAP 11. Electronic Circuit Analysis Program I N D U S T R I A L - S T R E N G T H S I M U L A T I O N

Linear Algebra, Calculus, Differential Equations and Vector Analysis. Complex Anaysis, Numerical Methods and Probability and Statistics.

Associate In Applied Science In Electronics Engineering Technology Expiration Date:

Exam Below are two schematics of current sources implemented with MOSFETs. Which current source has the best compliance voltage?

L MOSFETS, IDENTIFICATION, CURVES. PAGE 1. I. Review of JFET (DRAW symbol for n-channel type, with grounded source)

Figure 1. Main window (Common Interface Window), CIW opens and from the pull down menus you can start your design. Figure 2.

Semiconductor Detector Systems

Physical electronics, various electronics devices, ICs form the core of Electronics and Telecommunication branch. This part includes

Circuit Simulation Using SPICE ECE222

Pulsed Power Engineering Circuit Simulation

ANALYSIS AND DESIGN OF ANALOG INTEGRATED CIRCUITS

Introduction... 1 Part I: Getting Started with Circuit Analysis Part II: Applying Analytical Methods for Complex Circuits...

Index. Small-Signal Models, 14 saturation current, 3, 5 Transistor Cutoff Frequency, 18 transconductance, 16, 22 transit time, 10

Microelectronic Circuits - Fifth Edition Sedra/Smith Copyright 2004 by Oxford University Press, Inc.

ET475 Electronic Circuit Design I [Onsite]

CONTENTS. Chapter 1. Introduction to Power Conversion 1. Basso_FM.qxd 11/20/07 8:39 PM Page v. Foreword xiii Preface xv Nomenclature

Microwave and RF Engineering

ETE 112. Structured Programming Laboratory

Chapter 13 Oscillators and Data Converters

ANALYSIS AND DESIGN OF ANALOG INTEGRATED CIRCUITS

444 Index. F Fermi potential, 146 FGMOS transistor, 20 23, 57, 83, 84, 98, 205, 208, 213, 215, 216, 241, 242, 251, 280, 311, 318, 332, 354, 407

4.2.2 Metal Oxide Semiconductor Field Effect Transistor (MOSFET)

The default account setup for the class should allow you to run HSPICE without any further configuration. To verify this, type:

Field Effect Transistors (npn)

Analogue Electronic Systems

HSPICE (from Avant!) offers a more robust, commercial version of SPICE. PSPICE is a popular version of SPICE, available from Orcad (now Cadence).

KOM2751 Analog Electronics :: Dr. Muharrem Mercimek :: YTU - Control and Automation Dept. 1 6 FIELD-EFFECT TRANSISTORS

An Introductory Guide to Circuit Simulation using NI Multisim 12

Careers in Electronics Using a Calculator Safety Precautions Dc Circuits p. 1 Fundamentals of Electricity p. 3 Matter, Elements, and Compounds p.

Technical brochure YOUR SOFTWARE ASSISTANT FOR HARDWARE DESIGN. Powered by

PHYSICS OF SEMICONDUCTOR DEVICES

Chapter 1 Semiconductors and the p-n Junction Diode 1

Lecture 01 Operational Amplifiers Op-Amps Introduction

55:041 Electronic Circuits

EE301 Electronics I , Fall

PREFACE 5 THE AUTHOR 6 INDEX 7 FOREWORD 21 1 LTSPICEIV: INTRODUCTION AND HISTORY 25

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

University of Windsor Program Development Committee. *5.13: Electrical and Computer Engineering - Summary of Minor Course and Calendar Changes

Calhoon MEBA Engineering School. Study Guide for Proficiency Testing Industrial Electronics

CHAPTER 6 DIGITAL CIRCUIT DESIGN USING SINGLE ELECTRON TRANSISTOR LOGIC

S.E. Sem. III [ETRX] Control System Engineering SYLLABUS

Appendix. RF Transient Simulator. Page 1

Brief Course Description for Electrical Engineering Department study plan

Chapter 8. Chapter 9. Chapter 6. Chapter 10. Chapter 11. Chapter 7

ELECTRIC CIRCUITS. Third Edition JOSEPH EDMINISTER MAHMOOD NAHVI

Davinci. Semiconductor Device Simulaion in 3D SYSTEMS PRODUCTS LOGICAL PRODUCTS PHYSICAL IMPLEMENTATION SIMULATION AND ANALYSIS LIBRARIES TCAD

Introduction to Electromagnetic Compatibility

Experiment 2 Introduction to PSpice

Subject-wise Tests Tests will be activated at 06:00 pm on scheduled day

PSpice Simulation. The target of computer-aided analysis is to determine the circuit currents and voltages everywhere in the circuit.

Digital Electronics Part II - Circuits

POWER ELECTRONICS. Converters, Applications, and Design. NED MOHAN Department of Electrical Engineering University of Minnesota Minneapolis, Minnesota

ELECTRICAL ENGINEERING (CODE NO. 10) PAPER - I

ECEN 474/704 Lab 8: Two-Stage Miller Operational Amplifier

Lecture 14. Field Effect Transistor (FET) Sunday 26/11/2017 FET 1-1

Industrial Electronics

MicroSim PSpice & Basics. User s Guide. Circuit Analysis Software. MicroSim Corporation 20 Fairbanks Irvine, California (714)

Integrated Circuit Design for High-Speed Frequency Synthesis

EE320L Electronics I. Laboratory. Laboratory Exercise #6. Current-Voltage Characteristics of Electronic Devices. Angsuman Roy

In this lecture we will begin a new topic namely the Metal-Oxide-Semiconductor Field Effect Transistor.

UNIT-III POWER ESTIMATION AND ANALYSIS

EE 320 L LABORATORY 9: MOSFET TRANSISTOR CHARACTERIZATIONS. by Ming Zhu UNIVERSITY OF NEVADA, LAS VEGAS 1. OBJECTIVE 2. COMPONENTS & EQUIPMENT

KOM2751 Analog Electronics :: Dr. Muharrem Mercimek :: YTU - Control and Automation Dept. 1 7 DC BIASING FETS

EECE 488: Short HSPICE Tutorial. Last updated by: Mohammad Beikahmadi January 2013

Introduction to LTSpice

THE JFET. Script. Discuss the JFET and how it differs from the BJT. Describe the basic structure of n-channel and p -channel JFETs

Code No: R Set No. 1

Electrical Materials may be referred to a metal, dielectrics,electrical insulators or conductors,paramagnetic materials and many other.

Lab 3: Circuit Simulation with PSPICE

GATE 2018 Online Test Series - Electronics and Communication Engineering

16 Analog Circuits-IV Feedback amplifier, power amplifier, 555 timer Easy min

RECRUITMENT FOR THE POSTS OF SUB DIVISIONAL ENGINEERS (ELECTRICAL) IN THE DEPARTMENT OF PUBLIC WORKS (B&R), GOVT. OF PUNJAB

Preface... Chapter 1. Nonlinear Two-terminal Devices... 1

Contents. Acknowledgments. About the Author

Difference between BJTs and FETs. Junction Field Effect Transistors (JFET)

(i) Determine the admittance parameters of the network of Fig 1 (f) and draw its - equivalent circuit.

6. Field-Effect Transistor

EECS 216 Winter 2008 Lab 2: FM Detector Part I: Intro & Pre-lab Assignment

Transcription:

Circuit Simulation with SPICE OPUS Theory and Practice Tadej Tuma Arpäd Bürmen Birkhäuser Boston Basel Berlin

Contents Abbreviations About SPICE OPUS and This Book xiii xv 1 Introduction to Circuit Simulation 1 1.1 Signals and Linear Systems 1 1.2 Lumped Circuits 3 1.3 DC Solutions and the Operating Point of a Circuit 10 1.4 Incremental DC Circuit Model 13 1.5 Circuit's Response in the Time Domain 18 1.6 Fourier Series and Fourier Transformation 20 1.7 Incremental Circuit Model in the Time Domain 22 1.8 Incremental Circuit Model in the Frequency Domain 25 1.9 Noise Signals in LTI Systems 27 1.10 Circuit Noise Modeling and Analysis 29 1.11 Laplace Transformation and the.v-domain 32 1.12 Circuit Analysis in the s-domain, DC Solution Stability 33 2 Short Tutorial 37 2.1 Installation 37 2.2 Starting SPICE OPUS 38 2.3 The Command Window 40 2.4 Describing a Circuit 41 2.4.1 Input File Structure 41 2.4.2 Numbers in SPICE 42 2.4.3 A Simple Circuit 43 2.5 Operating Point (OP) Analysis 45 2.6 Operating Point Sweep (DC), Plotting of Simulation Results 48 2.7 Small Signal Analysis (AC and TF) 53 2.8 Pole-Zero Analysis (PZ) 61 2.9 Small Signal Noise Analysis (NOISE) 65 2.10 Time-Domain Analysis (TRAN) 71

vi Contents 2.11 Interactive Interpreter and Advanced Features 76 2.11.1 Expressions, Vectors, Plots, and Automated Measurements... 76 2.11.2 Control Structures, Substitution, and Variables 79 2.11.3 Libraries, Raw Files, and File Output 82 2.11.4 Saving Device Quantities During Analyses 85 2.11.5 Tracing and Interactive Plotting 87 3 Input File Syntax 89 3.1 File Structure 89 3.2 Numbers 90 3.3 Instances and Nodes 90 3.4 Models 91 3.5 Instance and Model Parameters 92 3.6 Device Syntax 93 3.6.1 Resistor 94 3.6.2 Capacitor 95 3.6.3 Inductor 96 3.6.4 Inductive Coupling 97 3.6.5 Independent Voltage Source 98 3.6.6 Independent Current Source 104 3.6.7 Linear Voltage-Controlled Current Source 104 3.6.8 Linear Voltage-Controlled Voltage Source 105 3.6.9 Linear Current-Controlled Current Source 106 3.6.10 Linear Current-Controlled Voltage Source 107 3.6.11 Nonlinear Controlled Sources 108 3.6.12 Voltage-Controlled Switch 110 3.6.13 Current-Controlled Switch 112 3.6.14 Lossless Transmission Line 113 3.6.15 Lossy Transmission Line 114 3.6.16 Uniformly Distributed RC Line 115 3.6.17 Semiconductor Diode 117 3.6.18 Bipolar Junction Transistor (BJT) 119 3.6.19 Junction Field Effect Transistor (JFET) 123 3.6.20 Metal Semiconductor Field Effect Transistor (MESFET) 126 3.6.21 Metal Oxide Semiconductor Field Effect Transistor (MOSFET) 128 3.6.22 Legacy MOSFET Models (Levels 1-6) 128 3.6.23 BSIM3 and BSIM4 MOSFET Models (Levels 47,53, and 60) 137 3.6.24 Silicon on Insulator (SOI) MOSFET Models (Levels 55-58) 141 3.6.25 UFET and EKV MOSFET Models (Levels 7 and 44) 147 3.7 Binning of MOS Models 148 3.8 Including Files in the Netlist 152 3.9 Describing Circuits Hierarchically 153

Contents vii 3.9.1 Defining a Subcircuit, Subcircuit Instantiation 153 3.9.2 Global Nodes 154 3.9.3 Nesting Subcircuits and Understanding the Flat Circuit 154 3.9.4 Parametrization of Subcircuits 156 3.10 Initial Operating Point Solution and Initial Conditions 157 3.11 Joining Multiple Topologies in anetlist 158 3.12 Simulator Parameters 159 4 Analyzing the Circuit 163 4.1 Operating Point (OP) Analysis 163 4.1.1 Handling of Initial Solutions (Nodesets) 164 4.1.2 Solving Convergence Problems 164 4.2 Operating Point Sweep Analysis (DC Analysis) 167 4.3 DC Transfer Function Analysis (TF Analysis) 169 4.4 Small Signal Analysis (AC Analysis) 170 4.5 Pole-Zero (PZ) Analysis 171 4.6 Noise (NOISE) Analysis 172 4.7 Transient (TRAN) Analysis 173 5 NUTMEG Scripting Language 177 5.1 Input Handling 177 5.1.1 Splitting the Input Line into Words, Escaped Characters 177 5.1.2 History and History Substitution 179 5.1.3 Aliases and Alias Substitution 180 5.1.4 Control Lines and Statements 181 5.1.5 Evaluation of Statements 181 5.2 Text Output 183 5.3 Plots, Vectors, and Expressions 183 5.3.1 Organization of Numeric Data 183 5.3.2 Plot Management 184 5.3.3 Storing and Restoring Plots in Files 185 5.3.4 Vectors 186 5.3.5 Expressions 189 5.3.6 Operators in NUTMEG Expressions 190 5.3.7 NUTMEG Built-in Functions 192 5.3.8 User-Defined Functions 197 5.3.9 Arithmetic Substitution 197 5.4 Variables 198 5.4.1 Variable Basics 198 5.4.2 NUTMEG Control Variables and Simulator Parameters 199 5.4.3 Variable Substitution and Text Input 200 5.5 Circuits 203 5.5.1 Circuit and Script Input (source Command) 204 5.5.2 Circuit Management 205 5.5.3 Circuit Listing 206

Vlll Contents 5.5.4 Printing Parameter Values of SPICE Primitives 207 5.5.5 Selecting the Topology and Rebuilding the Circuit 208 5.5.6 Changing Nodesets and Initial Conditions 210 5.5.7 Changing Instance, Model, and Subcircuit Parameters 211 5.5.8 Parameter Value Propagation in Subcircuits 212 5.5.9 Changing and Accessing Simulator Parameters for the Current Circuit 214 5.5.10 Accessing Instance, Model, and Subcircuit Parameter Values 214 5.6 Simulation 215 5.6.1 Choosing What the Simulator Stores in Vectors (Saving) 215 5.6.2 Tracing Simulation Results During Simulation 218 5.6.3 Plotting Simulation Results During Simulation (Iplotting)... 219 5.6.4 Invoking Simulation 220 5.7 Analyzing the Results 224 5.7.1 Linearizing the Scale of a Plot 224 5.7.2 Performing Measurements on Vectors 225 5.7.3 Fourier Analysis of Vectors 228 5.7.4 Transforming Vectors to Frequency Domain 229 5.8 Plotting the Results 233 5.8.1 The Plot Window 233 5.8.2 Curve Display Styles 236 5.8.3 Plot Window Grids 237 5.8.4 Vector Interpretation Modes 240 5.8.5 The plot Command 243 5.8.6 Examples 247 5.9 Control Structures 250 5.9.1 if-elseif-else Block 250 5.9.2 while, dowhile, and repeat Loops 251 5.9.3 Breaking and Continuing a Loop 252 5.10 Miscellaneous 252 5.10.1 Directory and File Management 252 5.10.2 Obtaining Statistics from the Simulator 253 5.10.3 The spinit File 254 6 Mathematical Background 257 6.1 Linear Resistive Networks 257 6.1.1 Circuit Tableau 260 6.1.2 Basic Nodal Equations 262 6.1.3 Modified Nodal Equations 264 6.2 Solving the Set of Circuit Equations 266 6.2.1 Sparse Matrices 267 6.2.2 LU Decomposition 267 6.2.3 Successful Pivoting Techniques 269 6.2.4 Numerical Error Control 271

Contents ix 6.3 Introducing Nonlinear Devices 274 6.3.1 Fixed Point Iteration 274 6.3.2 Newton-Raphson Algorithm 276 6.3.3 Convergence Detection 283 6.3.4 Automatic Convergence Helpers 285 6.3.5 Specifying the Initial Point for the Newton-Raphson Algorithm 295 6.4 Dynamic Devices and Frequency-Domain Analysis 295 6.4.1 Small Signal Response (AC) Analysis 295 6.4.2 Poles and Zeros of the Small Signal Transfer Function (PZ) 298 6.4.3 Small Signal Noise Analysis (NOISE) 299 6.4.4 Frequency-Domain Model of an Inductor in SPICE OPUS 302 6.5 Transient (Time-Domain) Analysis (TRAN) 303 6.5.1 Backward Euler Integration 303 6.5.2 Trapezoidal Integration 308 6.5.3 General Linear Multistep Numerical Integration 311 6.5.4 Local Truncation Error (LTE) 314 6.5.5 Inductors in SPICE OPUS Time-Domain Analysis 317 6.5.6 Initial Conditions 318 6.5.7 Predictor-Corrector Integration 319 6.5.8 Choosing the Integration Algorithm 321 6.5.9 Integration Time-Step Control 322 7 Examples 329 7.1 Parametrized Attenuator and Transmission Lines 329 7.2 Modeling a Nonlinear Transformer 335 7.3 Analyzing a CMOS Differential Amplifier 341 7.4 Using Corner Models 350 7.5 Local Variations (Mismatch) and Monte-Carlo Analysis 357 7.6 Drawing Histograms, Yield Analysis 362 7.7 Logic Gates 364 7.8 Flip-Flops 367 7.9 Counters and Frequency Dividers 371 7.10 Phase Frequency Detector 373 7.11 Voltage-Controlled Oscillator 378 7.12 Phase-Locked Loop 381 References 387 Index 391