120 likes | 421 Views
SPICE. S imulation P rogram with I ntegrated C ircuit E mphasis Developed in 1970’s at Berkeley Many commercial versions are available. The Basic Idea. SPICE Deck Text file used for simulation. Simulate. Generate Spice Deck. Schematic Entry. Examples of Types of Spice Simulations.
E N D
SPICE • Simulation Program with Integrated Circuit Emphasis • Developed in 1970’s at Berkeley • Many commercial versions are available
The Basic Idea SPICE Deck Text file used for simulation Simulate Generate Spice Deck Schematic Entry
Examples of Types of Spice Simulations • Bias Point • DC Sweep • Parametric Sweep • Transient Analysis • AC sweep/Noise • Temperature • Monte Carlo
Generating a Netlist SPICE Netlist Text file used for simulation Simulate Generate Netlist (SPICE Netlist Different flavors Quite similar) Schematic Entry (Common Data format: EDIF)
Bias Point and DC sweep Bias Point Results • Single Operating point Example Vin = 3V DC Sweep Results • Output as a function of Vin Vo Example Vin = 0 to 3V Vin 3V
Transient Analysis t t t t Input: Time varying input (ex. Sinusoidal, digital clock) Output: a function of time
What is a SPICE Deck? * mosiv.sp *------------------------------------------------ * Parameters and models *------------------------------------------------ .include '../models/tsmc180/models.sp' .temp 70 .option post *------------------------------------------------ * Simulation netlist *------------------------------------------------ * R_R1 VIN VOUT 2K R_R2 0 VOUT 1k R_R3 0 VOUT 3K V_V2 VIN 0 3Vdc *------------------------------------------------ * Stimulus *------------------------------------------------ .dc V2 0 3.0 0.05 .end Comments Netlist: Describes the connectivity of a circuit Stimulus: Input signal
Netlist R_R1 VIN VOUT 2K R_R2 0 VOUT 1k R_R3 N00218 VOUT 3K R_R4 0 N00218 3K V_V2 VIN 0 3Vdc
Letter Element R Resistor C Capacitor L Inductor K Mutual Inductor V Independent voltage source I Independent current source M MOSFET D Diode Q Bipolar transistor W Lossy transmission line X Subcircuit E Voltage-controlled voltage source G Voltage-controlled current source H Current-controlled voltage source F Current-controlled current source SPICE Elements
Units Ex: 3K ohm resistor 3K, 3k, 3e+3 Not case sensitive
Netlist R_R1 VIN VOUT 2K R_R2 0 VOUT 1k R_R3 N00218 VOUT 3K R_R4 0 N00218 3K V_V2 VIN 0 3Vdc