Simulatorreference.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
SIMetrix SPICE and Mixed Mode Simulation Simulator Reference Manual Copyright ©1992-2006 Catena Software Ltd. Trademarks PSpice is a trademark of Cadence Design Systems Inc. Star-Hspice is a trademark of Synopsis Inc. Contact Catena Software Ltd., Terence House, 24 London Road, Thatcham, RG18 4LQ, United Kingdom Tel.: +44 1635 866395 Fax: +44 1635 868322 Email: [email protected] Internet http://www.catena.uk.com Copyright © Catena Software Ltd 1992-2006 SIMetrix 5.2 Simulator Reference Manual 1/1/06 Catena Software Ltd. is a member of the Catena group of companies. See http://www.catena.nl Table of Contents Table of Contents Chapter 1 Introduction The SIMetrix Simulator - What is it? ................................10 A Short History of SPICE.................................................10 Chapter 2 Running the Simulator Using the Simulator with the SIMetrix Schematic Editor..12 Adding Extra Netlist Lines ........................................12 Displaying Net and Pin Names.................................12 Editing Device Parameters.......................................13 Editing Literal Values - Using shift-F7 ......................13 Running in non-GUI Mode...............................................14 Overview...................................................................14 Syntax.......................................................................14 Aborting ....................................................................15 Reading Data............................................................16 Configuration Settings .....................................................16 Netlist Format ..................................................................18 File Format ...............................................................19 Language Declaration ..............................................19 Comments ................................................................20 Device Lines.............................................................20 Simulator Controls....................................................22 Simulator Output..............................................................22 The List File..............................................................22 The Binary Data File.................................................23 Output Data Names..................................................24 Chapter 3 Simulator Devices Overview..........................................................................26 Using XSPICE Devices....................................................26 Vector Connections ..................................................26 Connection Types.....................................................27 Using Expressions ...........................................................28 Overview...................................................................28 Using Expressions for Device Parameters ...............29 Using Expressions for Model Parameters ................29 Expression Syntax....................................................29 Optimisation..............................................................38 3 Simulator Reference Manual Subcircuits....................................................................... 39 Overview .................................................................. 39 Subcircuit Definition ................................................. 39 Subcircuit Instance................................................... 41 Passing Parameters to Subcircuits .......................... 41 Nesting Subcircuits .................................................. 42 Global Nodes ........................................................... 42 Subcircuit Preprocessing ......................................... 42 Model Binning.................................................................. 43 Overview .................................................................. 43 Defining Binned Models ........................................... 43 Example ................................................................... 43 Language Differences ..................................................... 44 Inline Comment ........................................................ 44 Unlabelled Device Parameters................................. 44 LOG() and PWR() .................................................... 45 Chapter 4 Analog Device Reference Overview ......................................................................... 46 Arbitrary Source .............................................................. 46 Notes on Arbitrary Expression ................................. 47 Charge and Flux Devices......................................... 47 Arbitrary Source Examples ...................................... 48 PSpice and Star-Hspice syntax................................ 50 Bipolar Junction Transistor (SPICE Gummel Poon)........ 50 Bipolar Junction Transistor (VBIC without self heating) .. 53 Bipolar Junction Transistor (VBIC with self heating) ....... 57 Bipolar Junction Transistor (MEXTRAM) ........................ 58 Capacitor ......................................................................... 58 Capacitor with Voltage Initial Condition........................... 60 Current Controlled Current Source.................................. 61 Polynomial Specification .......................................... 62 Current Controlled Voltage Source ................................. 62 Current Source ................................................................ 63 Diode - Level 1 and Level 3............................................. 64 Diode - Soft Recovery ..................................................... 67 GaAsFET......................................................................... 69 Inductor (Ideal) ................................................................ 70 Inductor (Saturable)......................................................... 71 Inductor with Current Initial Condition ............................. 74 Insulated Gate Bipolar Transistor.................................... 74 Junction FET ................................................................... 76 Lossy Transmission Line................................................. 78 4 Table of Contents MOSFET..........................................................................80 BSIM3 MOSFETs ............................................................85 BSIM4 MOSFETs ............................................................86 EKV MOSFETs................................................................87 MOSFET GMIN Implementation......................................87 Resistor............................................................................88 S-domain Transfer Function Block ..................................90 Subcircuit Instance ..........................................................95 Transmission Line............................................................95 Voltage Controlled Current Source..................................96 Voltage Controlled Switch................................................96 Voltage Controlled Voltage Source..................................97 Voltage Source ................................................................98 Pulse Source ............................................................99 Piece-Wise Linear Source......................................100 PWL File Source.....................................................101 Sinusoidal Source...................................................102 Exponential Source ................................................103 Single Frequency FM .............................................103 Noise Source..........................................................104 Mutual Inductor..............................................................104 Philips Compact Models ................................................105 Introduction.............................................................105 Using Philips Devices.............................................107 Examples................................................................108 Documentation .......................................................109 Chapter 5 Digital/Mixed Signal Device Reference Digital Device Overview.................................................110 Common Parameters .............................................110 Delays.....................................................................111 And Gate........................................................................111 D-type Latch ..................................................................113 D-type Flip Flop .............................................................115 Buffer .............................................................................117 Frequency Divider..........................................................118 Digital Initial Condition ...................................................120 Digital Pulse...................................................................121 Digital Signal Source .....................................................122 Inverter...........................................................................125 JK Flip Flop....................................................................126 Arbitrary Logic Block......................................................130 Nand Gate .....................................................................132 5 Simulator Reference Manual Nor Gate........................................................................ 133