spice simulation program with integrated circuit emphasis –developed in 1970’s at berkeley...
TRANSCRIPT
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
• Single Operating point
• Output as a function of Vin
Vo
Vin
R3
3K
R2
1k
V1
1VacTRAN =
3Vdc
R1
2K
Example Vin = 3V
Bias Point Results
DC Sweep Results
Example Vin = 0 to 3V
R3
3K
R2
1k
V1
1VacTRAN =
3Vdc
R1
2K
3V
Transient Analysis
Output: a function of timeInput:Time varying input(ex. Sinusoidal waveform, digital clock)
t
tR3
3K
R2
1k
V1
1VacTRAN =
3Vdc
R1
2K
t
t
The Basic Idea
SPICE DeckText file used for simulation
Schematic Entry
Generate Spice Deck
Simulate
R3
3K
R2
1k
V1
1VacTRAN =
3Vdc
R1
2K
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
V23Vdc
Vout
R2
1k
R1
2K
Vin
0
R3
3K
Netlist: Describes the connectivity of a circuit
Stimulus: Input signal
Comments
Understanding Netlists: SPICE Elements
Letter ElementR ResistorC CapacitorL InductorK Mutual InductorV Independent voltage sourceI Independent current sourceM MOSFETD DiodeQ Bipolar transistorW Lossy transmission lineX SubcircuitE Voltage-controlled voltage sourceG Voltage-controlled current sourceH Current-controlled voltage sourceF Current-controlled current source
R3
3K
V30Vdc
V4
1VacTRAN =
0Vdc
Units
Letter Unit Magnitude
a 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
Ex: 3K ohm resistor
3K, 3k, 3e+3
Not case sensitive
R3
3K
Netlist
0
R1
2K
R4
3K
Vin
V23Vdc
R3
3K
Vout
R2
1k
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