Академический Документы
Профессиональный Документы
Культура Документы
A brief primer
By
Ramprasad Panda
Associate Professor
Department of Electrical & Electronics Engineering
Silicon Institute of Technology
INTRODUCTION
SPICE is a powerful general purpose analog
and mixed-mode circuit simulator that is used
to verify circuit designs and to predict the
circuit behavior
This is of particular importance for integrated
circuits.
SPICE was originally developed at the
Electronics Research Laboratory of the
University of California, Berkeley (1975)
SPICE stands for Simulation Program for
Integrated Circuits Emphasis.
1.
2.
3.
4.
1.
2.
3.
Run PSpice
After placing all part, you need to place the Ground terminal
by clicking on the GND icon (on the left side toolbar).
BIAS or DC analysis
DC Sweep simulation
Transient Analysis
AC Sweep Analysis
Parametric Sweep
10k
20.00V
V1
R2
20v
I1
0Adc
0V
C1
5u
10k
DC Sweep simulation
1.
2.
3.
From the TRACE menu select ADD TRACE and select the voltages and current you
like to display. In our case we'll add V(out) and V(in). Click OK.
Transient Analysis
We'll be using the same circuit as for the DC sweep, except that we'll apply the
voltage and current sources by closing a switch,
AC Sweep Analysis
Create a new project and build the circuit
For the voltage source use VAC from the
Sources library.
Make the amplitude of the input source 1V.
Create a Simulation Profile. In the Simulation
Settings window, select AC Sweep/Noise.
Enter the start and end frequencies and the
number of points per decade. For our example
we use 0.1Hz, 10 kHz and 11, respectively.
Run the simulation
DC Circuit Analysis
Types of output
1.
.Print (print Statement)
2.
.Plot (Plot Statement)
3.
.Probe (probe Statement)
4.
.WIDTH (Width Statement)
Type of DC analysis
1.
.OP (Operating point)
2.
.TF (Small-Signal Transfer Function)
3.
.DC (DC sweep)
4.
.PARAM ( DC parametric Sweep)
Example of DC analysis
3
0Vdc
J1
VDD
VGS
J105
0Vdc
R1
50
12V
Programming
*GATE TO SOURCE VOLTAGE OF 0 VOLTS
VGS 1 0 DC 0V
VX 3 2 DC 0V
VDD 3 0 DC 12V
J1 2 1 4 JMOD
R1 4 0 50
.MODEL JMOD NJF (IS=100E-14 RD=10 RS=10
+BETA=1E-3 VTO=-5)
.DC VDD 0 12 0.2 VGS 0 -4 1
.PLOT DC I(R1)
.PROBE
.END
Output Characteristics
R1
R2
500
800
VY
0Vdc
R3
VS
1k
VX
0Vdc
IS
R4
200
50M
Output File
SIMPLE DC CIRCUIT
****
******************************************************************************
NODE VOLTAGE
1) 20.0000 (
5) 10.5000
NODE VOLTAGE
2) 12.5000 (
3)
VS
VX
VY
-1.500E-02
1.250E-02
2.500E-03
NODE VOLTAGE
0.0000 (
4) 10.5000
NODE VOLTAGE
R1
15.00mA
500
20V
VY
12.50V2.500mA 2.500mA
800
0Vdc
12.50mA
R3
20.00V
VS
R2
1k
VX
12.50mA
10.50V
52.50mA
R4
200
0Vdc
15.00mA
0V
IS
50M
50.00mA
M3
PM OS
1
3
VDD
M1
5V
NM OS
VIN
RL
100K
Programming
*CMOS INVERTER
VDD 2 0 5V
VIN 1 0 DC 5V PULSE (0 5V 0 1NS 1NS 20US 40US)
RL 3 0 100K
M1 3 1 2 2 PMOD L=1U W=20U
.MODEL PMOD PMOS (VTO=-2 KP=4.5E-4 CBD=5PF CBS=2PF RD=5
RS=2 +RB=0 RG=0 RDS=1MEG CGSO=1PF CGDO=1PF CGBO=1PF)
M2 3 1 0 0 NMOD L=1U W=5U
.MODEL NMOD NMOS (VTO=2 KP=4.5E-5 CBD=5PF CBS=2PF RD=5
RS=2 +RB=0 RG=0 RDS=1MEG CGSO=1PF CGDO=1PF CGBO=1PF)
.TRAN 1US 80US
.TF V(3) VIN
.PLOT TRAN V(3) V(1)
.OP
.PROBE
.END
Simulation Results
410K
47K
R1
C1
RC
Q1
C2
1UF
RL
V1
20K
500
1U
MM3905
R2
VIN
CE
RE
5K
15V
2K
10UF
Programming
*frequency & transient response of a transistor amplifier
VIN 1 0 AC 10MV SIN(0 10MV 1KHZ)
VCC 0 7 DC 15V
RS 1 2 500
R1 7 3 47K
R2 3 0 5K
RC 7 4 10K
RE 5 0 2K
RL 6 0 20K
C1 2 3 1UF
C2 4 6 1UF
CE 5 0 10UF
Q1 4 3 5 0 QM
.MODEL QM PNP(IS=2E-16 BF=100 BR=1 RB=5 RC=1 RE=0 TF=0.2NS TR=5NS CJE=0.4PF
VJE=0.8 ME=0.4 CJC=0.5PF VJC=0.8 CCS=1PF VA=100)
.PLOT TRAN V(4) v(6) V(1)
.PLOT AC VM(6) VP(6)
.OPTIONS NOPAGE NOECHO
.TRAN/OP 50US 2MS
.AC DEC 10 1HZ 10KHZ
.OP
.PROBE
.END
Transient response
Frequency response
References
1. OrCAD website for PSpice
(http://www.orcad.com/pspicead.aspx), has application notes,
download, examples and interesting links.
2. OrCAD website for CAPTURE.
(http://www.orcad.com/orcadcapture.aspx)
3. PSpice Users manual, OrCAD Corp. (Cadence Design
Systems, Inc.)
4. PSpice Reference Guide, OrCAD Corp. (Cadence Design
Systems, Inc.)
5. PSpice Library Guide, OrCAD Capture User's Guide,
(Cadence Design Systems, Inc.)
6. OrCAD Capture Users Guide, OrCAD Corp., (Cadence
Design Systems, Inc.)
7. SPICE Tutorial, http://www.seas.upenn.edu/~jan/spice/
8. A. Vladimirescu, The Spice Book, J. Wiley & Sons, New
York, 1994.
9. B. Carter, "Using Texas Instruments Spice Models in
PSpice, Application Report, SLOA070, Texas Instruments,