SPICE Examples: Dr. Lynn Fuller
SPICE Examples: Dr. Lynn Fuller
SPICE Examples: Dr. Lynn Fuller
SPICE Examples
Dr. Lynn Fuller
Electrical and Microelectronic Engineering
Rochester Institute of Technology
82 Lomb Memorial Drive
Rochester, NY 14623-5604
Tel (585) 475-2035
Fax (585) 475-5041
Dr. Fuller’s Webpage: http://people.rit.edu/lffeee
Email: [email protected]
Dept Webpage: http://www.microe.rit.edu
ADOBE PRESENTER
This PowerPoint module has been published using Adobe Presenter. Please click
on the Notes tab in the left panel to read the instructors comments for each slide.
Manually advance the slide by clicking on the play arrow or pressing the page
down key.
OUTLINE
Introduction
Text Input Files
DC, Transient, AC Analysis
LC Filter
Inverters, NMOS, PMOS, CMOS
Rise Time, Fall Time, Gate Delay
Ring Oscillator
Combinatorial Logic, NOR, 4 to 1 MUX
Inverter with Hysteresis
Oscillators
2 Phase Non Overlapping Clocks
Analog Switch
Op Amps, CMOS, BJT
Waveform Generator
Operational Transconductance Amplifier (OTA)
AM Receiver
References
Homework
Rochester Institute of Technology
Microelectronic Engineering
INTRODUCTION
SPICE (Simulation Program for Integrated Circuit Engineering) is a
general-purpose circuit simulation program for non-linear DC, non-
linear transient, and linear AC analysis. Circuits may contain
resistors, capacitors, inductors, mutual inductors, independent voltage
and current sources, four types of dependent sources, transmission
lines, switches, and several semiconductor devices: including diodes,
BJTs, JFETs, MESFETs, and MOSFETs. Circuits with large numbers
of all types of components can be simulated.
SPICE input files and output files are simple text files (e.g. name.txt)
INTRODUCTION
0
Rochester Institute of Technology
Microelectronic Engineering
Resulting Plot
Rochester Institute of Technology
Microelectronic Engineering
This is a text file located at
C:\SPICE\SimpleExample.txt
© January 2, 2014 Dr. Lynn Fuller Page 7
SPICE Examples
RC DIVIDER CIRCUIT
R1
20K
Calculate VC as the voltage V1
+ is swept from 0 to 3 volts
3V
+ R2
VC
V1 10K Change the V1 to a 3 volt pulse
- 1 uF
function and plot VC versus
- time.
0
Change the voltage V1 to an
AC voltage source and plot VC
versus frequency
Rochester Institute of Technology
Microelectronic Engineering
N002
N001
This net list is automatically
Rochester Institute of Technology generated from the schematic
Microelectronic Engineering
Magnitude
Phase
LC FILTER
Magnitude
Phase
1
f0 =
2 LC
VOUT
+V
VIN VOUT Imax
Voh
+V
Idd
Slope = Gain
PMOS
VIN VO
NMOS Idd
VoL VIN
CMOS 0
0 +V
ViL Vih
Vinv
0 noise margin=ViL-VoL
1 noise
Rochestermargin=VoH-ViH
Institute of Technology
Microelectronic Engineering
What happens to the voltage transfer curve (VTC) and noise margins when one of
the threshold voltages is changed by 0.3 volts? What happens when width of
transistors is changed.
CGSO CGDO
S D
COX
p+ p+
RS ID RD
CBD
CBS
CGBO
B
Rochester Institute of Technology
where ID is a dependent current source
Microelectronic Engineering using simple long channel equations.
© January 2, 2014 Dr. Lynn Fuller Page 23
SPICE Examples
INVERTER LAYOUT
INV/NOR4
W = 40 µm
Ldrawn = 2.5µm
Lpoly = 1.5µm
Leff = 1.0 µm\
Rochester Institute of Technology
Pd=680p
Microelectronic Engineering
Ad=114u
© January 2, 2014 Dr. Lynn Fuller Page 25
SPICE Examples
T = period of oscillation
Rochester Institute of Technology
Microelectronic Engineering
73 Stage Ring at 5V
CGSO CGDO
S D
COX
p+ p+
RS ID RD
CBD
CBS
CGBO
B
Rochester Institute of Technology
where ID is a dependent current source
Microelectronic Engineering using simple long channel equations.
© January 2, 2014 Dr. Lynn Fuller Page 31
SPICE Examples
LEVEL = 7
*2-15-2009
.MODEL RITSUBN7 NMOS (LEVEL=7
+VERSION=3.1 CAPMOD=2 MOBMOD=1
+TOX=1.5E-8 XJ=1.84E-7 NCH=1.45E17 NSUB=5.33E16 XT=8.66E-8 NSS=3E11
+VTH0=1.0 U0= 600 WINT=2.0E-7 LINT=1E-7
+NGATE=5E20 RSH=50 JS=3.23E-8 JSW=3.23E-8 CJ=6.8E-4 MJ=0.5 PB=0.95
+CJSW=1.26E-10 MJSW=0.5 PBSW=0.95 PCLM=5
+CGSO=3.4E-10 CGDO=3.4E-10 CGBO=5.75E-10)
*
*2-17-2009
.MODEL RITSUBP7 PMOS (LEVEL=7
+VERSION=3.1 CAPMOD=2 MOBMOD=1
+TOX=1.5E-8 XJ=2.26E-7 NCH=7.12E16 NSUB=3.16E16 XT=8.66E-8 NSS=3E11 PCLM=5
+VTH0=-1.0 U0= 376.72 WINT=2.0E-7 LINT=2.26E-7 NGATE=5E20
+RSH=50 JS=3.51E-8 JSW=3.51E-8 CJ=5.28E-4 MJ=0.5 PB=0.94
+CJSW=1.19E-10 MJSW=0.5 PBSW=0.94
+CGSO=4.5E-10 CGDO=4.5E-10 CGBO=5.75E-10)
td = T / 2N
= 6.4nsec / 2 / 3
= 1.07 nsec
Measured td
= 0.718 nsec @ 5 V
CONCLUSION
Since the measured and the simulated gate delays, td are close to
correct, then the SPICE model must be close to correct. The
inverter gate delay depends on the values of the internal capacitors
and resistances of the transistor.
Specifically:
RS, RS, RSH
CGSO, CGDO, CGBO
CJ, CJSW
These are combined with the transistors
L, W Length and Width
AS,AD Area of the Source/Drain
PS,PD Perimeter of the Source/Drain
NRS,NRD Number of squares Contact to Channel
Rochester Institute of Technology
Microelectronic Engineering
4 TO 1 MULTIPLEXER
I0
A
I1
I2 Output
I3
A B Out
Digital signals A and B control
which of the four inputs is 0 0 I0
directed to the output 0 1 I1
1 0 I2
Rochester Institute of Technology 1 1 I3
Microelectronic Engineering
ANALOG SWITCH
Analog Input
Layout
Schematic
Rochester Institute of Technology
Microelectronic Engineering
3 M12 12
W/L
M16 3800/2
1 +V +V 2
Vin+ Vin- W/L
10 W/L M18
100/2 336/2
40/2 M1 M2 40/2 7 14
6 5 4 W/L RL
M9 M13 100/2
M20
30/2 30/2 13
M14 11 M17
8 W/L
M3 M4 645/2
20/40 90/2 W/L
90/2 90/2 90/2 2600/2
M7 M10
OTHER RESULTS
10 F RE2
Q3
10 k 10 F Q2N3906 Q2N3904
Q1 Q2 Q6
Q4
100 100 Q2N3904 100
vid ~
vo
6 mA
Q2N3906 100 RL
Q5
Q7
Q2N3906
RC3
Rochester Institute of Technology –VEE = –12 V
Microelectronic Engineering
Electronics II
Lab Assignment
WAVEFORM GENERATOR
R1 VT R2
Rf Rf
+V
C
C
R R
+ -
-
- Vo1 + Vo3
Vo2 +
-V
C
R
Vo1 – SQUARE WAVE
Vo2 – TRIANGLE WAVE
Vo3 – SINE WAVE (approximation)
WAVEFORM GENERATOR
AM RECEIVER
AM RECEIVER SIMULATION
AM RECEIVER SIMULATION
REFERENCES
1. MOSFET Modeling with SPICE, Daniel Foty, 1997, Prentice Hall,
ISBN-0-13-227935-5
2. Operation and Modeling of the MOS Transistor, 2nd Edition, Yannis Tsividis,
1999, McGraw-Hill, ISBN-0-07-065523-5
3. UTMOST III Modeling Manual-Vol.1. Ch. 5. From Silvaco International.
4. ATHENA USERS Manual, From Silvaco International.
5. ATLAS USERS Manual, From Silvaco International.
6. Device Electronics for Integrated Circuits, Richard Muller and Theodore
Kamins, with Mansun Chan, 3rd Edition, John Wiley, 2003, ISBN 0-471-59398-2
7. ICCAP Manual, Hewlet Packard
8. PSpice Users Guide.