Beruflich Dokumente
Kultur Dokumente
EE618 TAs
Department Of Electrical Engineering Indian Institute Of Technology, Bombay
S-P-I-C-E
Stands for Simulation Program with Integrated Circuit Emphasis Used for simulating circuits for verifying performance and optimization Powerful simulator with industry standards Supports different types of analysis like AC, DC, TRAN, PZ, OP etc.
S-P-I-C-E
Why SPICE
Circuits get complex with inreasing number of transistors Analytically solving is impractical Even for small circuits in scaled technologies the number of parameters are far too many Example
The BSIM4 MOS model has about 39 technology dependent parameters!!
S-P-I-C-E
circuit elements and sources are identied by the rst alphabet of their name E* followed by node connections model_parameters, E* element name example R1 a b 100k; inserts a 100k resistor named R1 from net a to net b (net == wire) Elementary components in native spice are
R* => resistor C* => capacitor L* => inductor SW* => switch K* => coupled mutual inductor
S-P-I-C-E
Sources
S-P-I-C-E
Dependent Sources G* => linear voltage controlled current source E* => linear voltage controlled voltage source F* => linear current controlled current source H* => linear current controlled voltage source Nonlinear dependent sources are also available (look at references if interested)
S-P-I-C-E
M* Drain Gate source substrate model_name W=* L=* Q* Collector Base Emmiter Substrate model_name area=*
S-P-I-C-E
Subciruits
Regular circuits can be described using repeated instantiations of elemental cells Subcircuits description
.subckt ...netlist .ends
S-P-I-C-E
S-P-I-C-E
S-P-I-C-E
Circuit Description
First line is title line and is ignored by the simulator. This line is printed verbatim on the output screen Comment lines should be preceeded with an * The program le should end with a .end directive multiple les can be included using .include directive. These other les may be subcircuits or model les for custom devices. After describing the circuit and the analysis the program has to be described using .control directive The control block begins with .control and terminates with .endc commands should be issued in this block for saving/printing/plotting outputs Commands not written in the .control block should be preceeded with a .
S-P-I-C-E
Where to start?
create a text le using any text editor and save it with .spice extension in your simulation folder If you are using the tsmc spice model download the model le from the course webpage and include it in your netlist from a terminal CD to your simulation folder and type ngspice le_name.spice to run the simulation
S-P-I-C-E
References
S-P-I-C-E