Professional Documents
Culture Documents
2-Spiceqwewqeqwewqewqeqwe12312312312ed 12312 3
2-Spiceqwewqeqwewqewqeqwe12312312312ed 12312 3
Neuromorphic Engineering II
Institute of Neuroinformatics
University | ETH Zurich
Outline
What is SPICE?
S-Edit
SPICE Origins
SPICE is a computer program designed to simulate analog electronic
circuits.
It original intent was for the development of integrated circuits, from
which it derived its name: Simulation Program with Integrated Circuit
Emphasis.
1967 Prof. Ronald Rohrer of U.C. Berkeley develop Computer
Analysis of Nonlinear Circuits, Excluding Radiation
(CANCER)
1972 CANCER was re-written and re-named to SPICE
(Version 1) and released to the public domain.
1975 Version 2 of SPICE was released (Version 2g6)
1985 Version 3 of SPICE was rewritten in C (rather than
FORTRAN) and released to the public domain.
SPICE Origins
SPICE is a computer program designed to simulate analog electronic
circuits.
It original intent was for the development of integrated circuits, from
which it derived its name: Simulation Program with Integrated Circuit
Emphasis.
1967 Prof. Ronald Rohrer of U.C. Berkeley develop Computer
Analysis of Nonlinear Circuits, Excluding Radiation
(CANCER)
1972 CANCER was re-written and re-named to SPICE
(Version 1) and released to the public domain.
1975 Version 2 of SPICE was released (Version 2g6)
1985 Version 3 of SPICE was rewritten in C (rather than
FORTRAN) and released to the public domain.
SPICE Origins
SPICE is a computer program designed to simulate analog electronic
circuits.
It original intent was for the development of integrated circuits, from
which it derived its name: Simulation Program with Integrated Circuit
Emphasis.
1967 Prof. Ronald Rohrer of U.C. Berkeley develop Computer
Analysis of Nonlinear Circuits, Excluding Radiation
(CANCER)
1972 CANCER was re-written and re-named to SPICE
(Version 1) and released to the public domain.
1975 Version 2 of SPICE was released (Version 2g6)
1985 Version 3 of SPICE was rewritten in C (rather than
FORTRAN) and released to the public domain.
SPICE Origins
SPICE is a computer program designed to simulate analog electronic
circuits.
It original intent was for the development of integrated circuits, from
which it derived its name: Simulation Program with Integrated Circuit
Emphasis.
1967 Prof. Ronald Rohrer of U.C. Berkeley develop Computer
Analysis of Nonlinear Circuits, Excluding Radiation
(CANCER)
1972 CANCER was re-written and re-named to SPICE
(Version 1) and released to the public domain.
1975 Version 2 of SPICE was released (Version 2g6)
1985 Version 3 of SPICE was rewritten in C (rather than
FORTRAN) and released to the public domain.
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
http:
//bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
Public Domain
I
ftp://ic.eecs.berkeley.edu/pub/Spice3/
I
NGSpice
http://sourceforge.net/projects/ngspice
Commercial
I
HSPICE (Synopsis)
PSCPICE (OrCAD)
SYMETRIX
SPICE Programming
SPICE is an interpreted language: In order for a computer to
understand the SPICE instructions you type, it must have the SPICE
program (interpreter) installed. SPICE source files are commonly
referred to as netlists (or "decks") with each line in the file being called
a "card."
Writing a SPICE deck is like writing a good program
Plan: sketch schematic on paper or in editor.
Modify existing decks whenever possible.
Code: strive for clarity.
Start with name, email, date, purpose.
Generously comment.
Test: Predict what results should be.
Compare with actual.
Garbage In, Garbage Out!
Diffusion equations
Diffusion equations
Diffusion equations
Transmission lines
You can use SPICE to perform the following types circuit analysis:
I
Non-linear d.c.
Non-linear transient
Linear a.c.
Element
Resistor
Capacitor
Inductor
Independent Voltage Source
Independent Current Source
MOSFET
Diode
Bipolar transistor
Subcircuitr
Voltage controlled Voltage Source
Voltage controlled Current Source
Current controlled Voltage Source
Current controlled Current Source
Levels 13, 28, 39, and 47: Based on Berkeley IGFET models
(BSIM, BSIM2, and BSIM3 models).
Levels 13, 28, 39, and 47: Based on Berkeley IGFET models
(BSIM, BSIM2, and BSIM3 models).
Levels 13, 28, 39, and 47: Based on Berkeley IGFET models
(BSIM, BSIM2, and BSIM3 models).
Levels 13, 28, 39, and 47: Based on Berkeley IGFET models
(BSIM, BSIM2, and BSIM3 models).
Levels 13, 28, 39, and 47: Based on Berkeley IGFET models
(BSIM, BSIM2, and BSIM3 models).
Table-based mode
Table-based mode
Table-based mode
Table-based mode
Vdd
Vin
Vout
Vout
Vout
Vin
Vin
Vdd
Gnd
Vdd
Gnd
pmos
nmos
L=10
L=10
W=10
W=10
Vdd
Vin
Vout
Vout
Vout
D
Vin
Vin
G
Vdd
Gnd
S
Vdd
Gnd
B
pmos
nmos
model
L=10
L=10
L
W=10
W=10
W
Vdd
Vin
Vout
Vdd
Vin
Vout
options
.options scale=0.8u deftables=0
.options maxmsg=1 modelmode=direct
.options abstol=1e-17 reltol=1e-7 chargetol=1e-19
.options absdv=0.01 accurate=1
.options js=1e-5
.include "inverter.sp"
vdd Vdd gnd 5
vin in gnd pwl( 0 0 5u 5 10u 0)
.tran/powerup 1u 10u
.print tran in out
Vdd
Vin
Vout
Vdd
Vin
Vout
Vdd
Vin
Vout