SPICE Simulation Program with Integrated Circuit Emphasis Developed









- Slides: 9

SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available –Used for simulating circuits

Examples of Types of Spice Simulations • Bias Point • DC Sweep • Parametric Sweep • Transient Analysis • AC sweep/Noise • Temperature • Monte Carlo • Also nested sweep

Bias Point and DC sweep Bias Point Results • Single Operating point Example Vin = 3 V DC Sweep Results • Output as a function of Vin Vo Example Vin = 0 to 3 V 3 V Vin

Transient Analysis t t t Input: Time varying input (ex. Sinusoidal waveform, digital clock) t Output: a function of time

The Basic Idea SPICE Deck Text file used for simulation Generate Spice Deck Schematic Entry Simulate

What is a SPICE Deck? * mosiv. sp *------------------------* Parameters and models *------------------------. include '. . /models/tsmc 180/models. sp'. temp 70 Comments. option post *------------------------* Simulation netlist *------------------------* R_R 1 R_R 2 R_R 3 V_V 2 VIN VOUT 2 K 0 VOUT 1 k 0 VOUT 3 K VIN 0 3 Vdc Netlist: Describes the connectivity of a circuit *------------------------* Stimulus *------------------------. dc V 2 0 3. 0 0. 05 Stimulus: Input signal. end

Understanding Netlists: SPICE Elements Letter R C L K V I M D Q W X E G H F Element Resistor Capacitor Inductor Mutual Inductor Independent voltage source Independent current source MOSFET Diode Bipolar transistor Lossy transmission line Subcircuit Voltage-controlled voltage source Voltage-controlled current source Current-controlled voltage source Current-controlled current source

Units Letter Unit Magnitude atto 10 -18 f fempto 10 -15 p pico 10 -12 n nano 10 -9 u micro 10 -6 m mili 10 -3 k kilo 103 X or Meg mega 106 g giga 109 a Ex: 3 K ohm resistor 3 K, 3 k, 3 e+3 Not case sensitive

Netlist R_R 1 VIN VOUT 2 K R_R 2 0 VOUT 1 k R_R 3 N 00218 VOUT 3 K R_R 4 0 N 00218 3 K V_V 2 VIN 0 3 Vdc