Professional Documents
Culture Documents
3-20-2011 SPICE_Examples_OrCAD_WinSPICE_Fuller.ppt
Page 1
SPICE Examples
OUTLINE
Introduction WinSpice OrCAD Pspice LT SPICE Simple Example Device Models Comparion of 1st, 2nd and 3rd Generation Models Family of Curves, Id-Vgs, Sub-Vt Verification of Resistor and Capacitor Values Ring Oscillator Gate Delay td Circuit Examples Inverter with Hysteresis RC Oscillator Two Phase Clock Op Amp Rochester Institute of Technology Diode Temperature Sensor Microelectronic Engineering
March 20, 2011 Dr. Lynn Fuller
Page 2
SPICE Examples
INTRODUCTION
SPICE (Simulation Program for Integrated Circuit Engineering) is a general-purpose circuit simulation program for non-linear DC, nonlinear 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) Input files include a TITLE, circuit description NET LIST, analysis directives (COMMANDS), and lists of other text files to include (INC) such as model libraries (LIB) and an END command.
Rochester Institute of Technology Microelectronic Engineering
Page 3
SPICE Examples
INTRODUCTION
PSpice Lite 9.2 is one of the OrCAD family of products, from Cadence Design Systems, Inc., offering a complete suite of electronic design tools. It is free and includes limited versions of OrCAD Capture, for schematic capture, PSpice for analog circuit simulation and Pspice A/D for mixed analog and digital circuit simulation. PSpice Lite 9.2 is limited to 64 nodes, 10 transistors, two operational amplifiers and 65 primitive digital devices. See page 35 (xxxv) of the PSpice Users Guide. LT SPICE is a free SPICE simulator with schematic capture from Linear Technology. It is quite similar to Pspice Lite but is not limited in the number of devices or nodes. Linear Technology (LT) is one of the industry leaders in analog and digital integrated circuits. Linear Technology provides a complete set of SPICE models for LT components. WINSPICE is a low cost fully capable SPICE simulator for windows computers. The full version is approximately $75. It does not include a schematic editor. (but is available from third party)
Rochester Institute of Technology Microelectronic Engineering
Page 4
SPICE Examples
Page 5
SPICE Examples
R2 3K
0
Rochester Institute of Technology Microelectronic Engineering
Page 6
SPICE Examples
WINSPICE3
WinSpice3 is a general-purpose circuit simulation program for non-linear DC, nonlinear transient, and linear AC analyses. Circuits may contain resistors, capacitors, inductors, mutual inductors, independent voltage and current sources, four types of dependent sources, lossless and lossy transmission lines (two separate implementations), switches, uniform distributed RC lines, and the five most common semiconductor devices: diodes, BJTs, JFETs, MESFETs, and MOSFETs. It can be downloaded and installed onto personal computers at http://www.winspice.com . When the full version v1.05.01 is installed, it should be updated to v1.05.07, which is the latest version available for now. WinSpice basically Spice3F4 for Windows 32bit systems. However, it contains several enhancements over the original Berkeley Spice3F4. WinSpice iteself does not contain a schematic editor (capture/edit). However, 3rd part schematic editors can be linked to WinSpice. A schematic editor which uses WinSpice for its simulation engine is available at http://www.5spice.com/. These editors provide a convenient way to draw a schematic and create a net list.
Rochester Institute of Technology Microelectronic Engineering
Page 7
SPICE Examples
RUNNING WINSPICE
Once WinSpice is installed click on your shortcut or start WinSpice from the start programs menu. A dialog box and WinSpice -> prompt should appear. Type source path_to_your_input_file.txt Press Enter SPICE will run
Page 8
SPICE Examples
Page 9
SPICE Examples
Models
I put a SPICE folder on my C:/ drive and created sub folders for projects, models and other files, etc.
Project1
Project N
Rochester Institute of Technology Microelectronic Engineering
Page 10
SPICE Examples
Page 11
SPICE Examples
OPEN A NEW BLANK PROJECT OrCAD PSpice Lite 9.2 Select New>Project Give it a name Select Analog or Mixed A/D
SPICE Examples
Place Parts Place Wires Place Ground use 0/Source symbol Label Nodes Add Probes Change Names of Devices Change Device Properties Show Name and Value, etc.
Rochester Institute of Note: SPICE requires Technology to be labeled zero, either place a ground symbol labeled one node Microelectronic Engineering zero or use node label N1 icon alias = 0 (then you do not need a ground symbol) March 20, 2011 Dr. Lynn Fuller
Page 13
SPICE Examples
RC DIVIDER CIRCUIT
R1 20K
Calculate VC 3V
R2 10K
+
VC
Change the battery to a 3 volt step function and plot VC versus time. Change the battery to a sinusoidal voltage source and sketch VC versus frequency
Page 14
SPICE Examples
Page 15
SPICE Examples
Page 16
SPICE Examples
Page 17
SPICE Examples
Page 18
SPICE Examples
Page 19
SPICE Examples
Page 20
SPICE Examples
Page 21
SPICE Examples
Page 22
SPICE Examples
Page 23
SPICE Examples
Page 24
SPICE Examples
Page 25
SPICE Examples
Page 26
SPICE Examples
Page 27
SPICE Examples
Page 28
SPICE Examples
* * Diode Model from MEMS Fabrication EMCR870 .model RITMEMDIODE D IS=3.02E-9 N=1 RS=207 +VJ=0.6 CJO=200e-12 M=0.5 BV=400 * * From Electronics I EEEE481 .model EENMOS NMOS LEVEL=2 +VTO=0.7 KP=25E-6 LAMBDA=0.02 GAMMA=0.9 TOX=90E-9 NSUB=3.7E15 * * From Electronics II EEEE482 BJT Model .MODEL QRITNPN NPN (BF=416 IKF=.06678 ISE=6.734E-15 IS=6.734E-15 NE=1.259 RC=1 RB=10 VA=109)
Rochester Institute of Technology Microelectronic Engineering
Page 29
SPICE Examples
Page 30
SPICE Examples
Page 31
SPICE Examples
Measured
Page 32
SPICE Examples
Level 7
Level 1
Page 33
SPICE Examples
gm Id-Vgs
gm
Level = 1
Level = 7
Id-Vgs
Page 34
SPICE Examples
Level = 1
Level = 7
Measured
Rochester Institute of Technology Microelectronic Engineering March 20, 2011 Dr. Lynn Fuller
Page 35
SPICE Examples
ALD1103
From Data Sheets From Simulation Given model on left with L=10u and W=1000u
Note: not a very good match. Increase L?
Rochester Institute of Technology Microelectronic Engineering
Page 36
SPICE Examples
CONCLUSION FROM DC MODEL COMPARISON Third generation MOSFET models such as Level 7 for OrCAD PSPICE or Level 49 models for WinSpice give better results than any of the 1st or 2nd generation models. These models are different for different processes (such as RITs Sub-CMOS 150 or RITs Adv-CMOS 150 processes)
Page 37
SPICE Examples
Page 38
SPICE Examples
Vd = 0.1 + Vg=1
0 1
M1
+ -
Page 39
SPICE Examples
+ V2=1 0
Page 40
SPICE Examples
Page 41
SPICE Examples
Gain=3
Page 42
SPICE Examples
+V
VIN +V VOUT Idd Slope = Gain VIN VO Imax Voh
Idd
VoL CMOS VIN
0 0
ViL Vih Vinv
+V
Page 43
SPICE Examples
INV/NOR4
W = 40 m Ldrawn = 2.5m Lpoly = 1.5m Rochester Institute of Technology Microelectronic Engineering Leff = 1.0 m
March 20, 2011 Dr. Lynn Fuller
Page 44
SPICE Examples
Page 45
SPICE Examples
Page 46
SPICE Examples
Buffer
Vout
T = period of oscillation
Rochester Institute of Technology Microelectronic Engineering
Page 47
SPICE Examples
73 Stage Ring at 5V
Rochester Institute of Technology Microelectronic Engineering
Page 48
SPICE Examples
p+ RS CBS CGBO ID RD
p+ CBD
B
Rochester Institute of Technology Microelectronic Engineering
SPICE Examples
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
Page 50
SPICE Examples
L/W 8/16
4/16
2/16
73 Stage
37 Stage
Page 51
SPICE Examples
Page 52
SPICE Examples
73 Stage
Use Ctrl Click on all NMOS on OrCad Schematic Use Ctrl Click on all PMOS on OrCad Schematic Rochester Institute of Technology Microelectronic Engineering Then Enter Dimensions
March 20, 2011 Dr. Lynn Fuller
Page 53
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)
Rochester Institute of Technology Microelectronic Engineering
Page 54
SPICE Examples
Three Stage Ring Oscillator with Transistor Parameters for 73 Stage Ring Oscillator and Supply of 10 volts
Rochester Institute of Technology Microelectronic Engineering
SPICE Examples
Three Stage Ring Oscillator with Transistor Parameters for 73 Stage Ring Oscillator and Supply of 5 volts
Rochester Institute of Technology Measured td = 0.718 nsec @ 5 V Microelectronic Engineering
SPICE Examples
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
Page 57
SPICE Examples
Page 58
SPICE Examples
3 + V1 - 5V
Page 59
SPICE Examples
Page 60
SPICE Examples
Page 61
SPICE Examples
Page 62
SPICE Examples
Page 63
SPICE Examples
Page 64
SPICE Examples
RC OSCILLATOR
30 pF 90 pF
Page 65
SPICE Examples
CLOCK t1 CLOCKBAR
t2 Q
1 2
R 0 0 1 1
S 0 1 0 1
Q Qn-1 1 0
INDETERMINATE
t3
t1 t2 t3 t3
1 2
=
Page 66
SPICE Examples
M12 M1 M3 3 M2 M4
M14 M5 4 M6
M16 M7 5 M8 6
M18 M9 7
M10
0
Rochester Institute of Technology Microelectronic Engineering
Substrate of all NMOS go to ground, node 0 Substrate of all PMOS go to +5V, node 1
March 20, 2011 Dr. Lynn Fuller
Page 67
SPICE Examples
Page 68
SPICE Examples
Page 69
SPICE Examples
WINSPICE SIMULATION
Page 70
SPICE Examples
1 2
Page 71
SPICE Examples
t2
1
t3
2
M17 9 VOUT2
M3
M7
M1 7 M2 Page 72
V1 5V
5 M10 M8
0
March 20, 2011 Dr. Lynn Fuller
SPICE Examples
Page 73
SPICE Examples
1 2
Page 74
SPICE Examples
Page 75
SPICE Examples
Page 76
SPICE Examples
p
3.3V
+
0.2 < Vout < 0.7V
Gnd
Page 77
SPICE Examples
REFERENCES
1. 2. 3. 4. 5. 6. 7. 8. MOSFET Modeling with SPICE, Daniel Foty, 1997, Prentice Hall, ISBN-0-13-227935-5 Operation and Modeling of the MOS Transistor, 2nd Edition, Yannis Tsividis, 1999, McGraw-Hill, ISBN-0-07-065523-5 UTMOST III Modeling Manual-Vol.1. Ch. 5. From Silvaco International. ATHENA USERS Manual, From Silvaco International. ATLAS USERS Manual, From Silvaco International. Device Electronics for Integrated Circuits, Richard Muller and Theodore Kamins, with Mansun Chan, 3rd Edition, John Wiley, 2003, ISBN 0-471-59398-2 ICCAP Manual, Hewlet Packard PSpice Users Guide.
Page 78