Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available The Basic Idea R1 2K V1 3Vdc 1Vac TRAN = R2 1k R3 3K SPICE Deck Text file used for simulation Generate Spice Deck Schematic Entry Simulate 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 Schematic Entry (Common Data format: EDIF) Generate Netlist (SPICE Netlist Different flavors Quite similar) Simulate Bias Point and DC sweep Bias Point Results R1 • Single Operating point 2K V1 3Vdc 1Vac TRAN = R2 1k R3 3K Example Vin = 3V DC Sweep Results • Output as a function of Vin R1 2K Vo V1 3Vdc 1Vac TRAN = R2 1k R3 3K Example Vin = 0 to 3V 3V Vin Transient Analysis R1 t 2K V1 3Vdc 1Vac TRAN = t Input: Time varying input (ex. Sinusoidal, digital clock) R2 1k R3 t 3K t Output: a function of time What is a SPICE Deck? * mosiv.sp *-----------------------------------------------* Parameters and models *-----------------------------------------------.include '../models/tsmc180/models.sp' .temp 70 Comments .option post *-----------------------------------------------* Simulation netlist *-----------------------------------------------* R_R1 R_R2 R_R3 V_V2 VIN VOUT 2K 0 VOUT 1k 0 VOUT 3K VIN 0 3Vdc R1 Vin Vout 2K V2 3Vdc R2 R3 1k 3K 0 Netlist: Describes the connectivity of a circuit *-----------------------------------------------* Stimulus *-----------------------------------------------.dc V2 0 3.0 0.05 Stimulus: Input signal .end Netlist R1 R_R1 VIN VOUT 2K R_R2 0 VOUT 1k R_R3 N00218 VOUT 3K Vin 2K R3 0 N00218 3K V_V2 VIN 0 3Vdc 3K V2 3Vdc R_R4 Vout R2 1k R4 3K 0 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 R3 3K V3 0Vdc V4 0Vdc 1Vac TRAN = 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: 3K ohm resistor 3K, 3k, 3e+3 Not case sensitive R3 3K Netlist R1 R_R1 VIN VOUT 2K R_R2 0 VOUT 1k R_R3 N00218 VOUT 3K Vin 2K R3 0 N00218 3K V_V2 VIN 0 3Vdc 3K V2 3Vdc R_R4 Vout R2 1k R4 3K 0