Appendix B
Introduction to SPICE
SPICE is an abbreviation for Simulation Program for Integrated Circuit Emphasis. PSPICE is the PC version of SPICE. Analog and digital electronic circuit designs are verified widely by both industries and the academia using PSPICE. It is used to predict the circuit behavior.
Passive Components: Resistors, Capacitors, and Inductors
Rname N+ N- Value [IC = TC1]
Lname N+ N- Value [IC = Initial Voltage Condition]
Cname N+ N- Value [IC = Initial Current Condition]
Examples:
R1 1 2 10K
L2 2 32M
C3 3 4 100P
Transformer
Lp Np+ Np- Lpvalue
Ls Ns+ Ns- Lsvalue
Kname Lp Ls Kvalue
Example:
Lp 1 0 1 mH
Ls 2 4 100 uH
Kt Lp Ls 0.999
Temperature
.TEMP list of temperatures
Example:
.TEMP 27 100 150
Independent DC Sources
Vname N+ N- DC Value
Iname N+ N- DC Value
Examples:
Vin 1 0 DC 10
Is 1 0 DC 2
DC Sweep Analysis
.DC Vsource-name Vstart Vstop Vstep
Example:
.DC VD 0 0.75 1m
Independent Pulse Source for Transient Analysis
Vname N+ N- PULSE (VL VH td tr tf PW T)
Example:
VGS 1 0 PULSE(0 10 0 0 0 10E-6 100e-6)
Transient Analysis
.TRAN time-step time-stop
Example:
.TRAN 0.1ms 100ms 0ms 0.2ms
Independent AC Sources for Frequency Response
Vname N+ N- AC Vm Phase
Iname N+ N- AC Im Phase
Example:
Vs 2 3 AC 2 30
Is 2 3 AC 0.5 30
Independent Sinusoidal AC Sources for Transient Analysis
Vname N+ N- SIN (Voffset Vm f T-delay Damping-Factor Phase-delay)
Iname N+ N- SIN (Ioffset Im f T-delay Damping-Factor Phase-delay)
Examples:
Vin 1 0 SIN (0 170 60 0 -120)
Is 1 0 SIN (0 ...
Get RF Power Amplifier, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.