Download presentation
Presentation is loading. Please wait.
Published byHillary Osborne Modified over 9 years ago
1
Islamic Azad University - Qazvin Branch1 HSPICE ® Introduction Autumn 2006
2
Islamic Azad University - Qazvin Branch 2 SPICE History SPICE Simulation Program Integrated Circuit Emphasis Prof. Ronald A. Rohrer (SPICE’s father) 1971 : CANCER 1972 – SPICE1 1981 – HSPICE ® 1983 – SPICE2G6... Present : Star-HSPICE ® Prof. Larry Nagel
3
Islamic Azad University - Qazvin Branch 3 Star-HSPICE Characteristics Simulation in Stable, Transient, Frequency Domain Modes Simulation from DC to Microwave frequencies Greater than 100GHz Number of Elements Only Limited by Computer Memory Using from AvanWaves to Waveforms Display and Analysis Circuits and Models Optimization
4
Islamic Azad University - Qazvin Branch 4 Simulation Process Using from a Text Editor Program to Generating an Input File. This File consist Information about Circuit and Called NETLIST. This File Type is “.SP” HSPICE.EXE Running to Circuit Simulation and Output Data Generating AvanWaves Running to Output Graphs Display
5
Islamic Azad University - Qazvin Branch 5 Creating A “.SP” File
6
Islamic Azad University - Qazvin Branch 6 HSPICE Program Running
7
Islamic Azad University - Qazvin Branch 7 HSPICE Menus Open.SP Files Simulatio n Display Graphs Edit NETLIS T Quit from Progra m Edit.LIS File.SP File Path 1 st Line of NETLIST.LIS File Path
8
Islamic Azad University - Qazvin Branch 8 Example 1 – An RC Network AC Analysis 0 1 2 Always “0” is GND NETLIST A Simple AC Run * Elements Statements V1 1 0 10 AC 1 R1 1 2 1K R2 2 0 1K C1 2 0 0.001u * Control Statements.OP.AC DEC 10 1K 1MEG.PRINT AC V(1) V(2) I(R2) I(C1).END
9
Islamic Azad University - Qazvin Branch 9 Circuit Simulation
10
Islamic Azad University - Qazvin Branch 10 AvanWaves Running
11
Islamic Azad University - Qazvin Branch 11 Graphs Displaying Mouse Right Click
12
Islamic Azad University - Qazvin Branch 12 Example 2 – An RC Network Transient Analysis 0 1 2 Always “0” is GND NETLIST A Simple Transient Run * Elements Statements V1 1 0 10 AC 1 PULSE 0 5 10N 20N 20N 500N 2U R1 1 2 1K R2 2 0 1K C1 2 0 0.001U * Control Statements.OP.TRAN 10N 2U.PRINT TRAN V(1) V(2) I(R2) I(C1).END
13
Islamic Azad University - Qazvin Branch 13 Graphs Displaying
14
Islamic Azad University - Qazvin Branch 14 Example 3 – Id-Vds characteristics in NMOS 0 1 2 Always “0” is GND NETLIST (Vds,Id) for n-Channel.op Vdd 1 0 dc 2 Vgg 2 0 dc 1.15 M1 1 2 0 0 MNMOS L=1u W=30u.MODEL MNMOS NMOS VTO=0.7 KP=110U +LAMBDA=0.04 GAMMA=0.4 PHI=0.7.dc Vdd 0 1.2 0.05 (Vgg 1.2 1.6 0.1).print dc Id=par("-I(Vdd)").end Vdd Vgg
15
Islamic Azad University - Qazvin Branch 15 Graphs Displaying
16
Islamic Azad University - Qazvin Branch 16 Example 4 – Temperature effect in NMOS Id-Vgs characteristics 0 1 2 Always “0” is GND NETLIST (Vgg,Id) for n-Channel (temp. effect).op Vdd 1 0 dc 2 Vgg 2 0 dc 1.15 M1 1 2 0 0 MNMOS L=1u W=30u.MODEL MNMOS NMOS VTO=0.7 KP=110U +LAMBDA=0.04 GAMMA=0.4 PHI=0.7.temp -10 20 45.dc Vgg 0 1.8 0.05.probe dc Id=par("-I(Vdd)").end Vdd Vgg M1M1
17
Islamic Azad University - Qazvin Branch 17 Graphs Displaying
18
Islamic Azad University - Qazvin Branch 18 Example 5 – CMOS Inverter 0 NETLIST CMOS Inverter Circuit M1 OUT IN VDD VDD MPMOS L=1U W=20U M2 OUT IN 0 0 MNMOS L=1U W=20U VDD VDD 0 5 VIN IN 0 0 PULSE 0.2 4.8 2N 1N 1N 5N 20N CLOAD OUT 0 0.75P.MODEL MNMOS NMOS VTO=0.7 KP=25U +LAMBDA=0.01 GAMMA=0.8 PHI=0.6.MODEL MPMOS PMOS VTO=-0.7 KP=8U +LAMBDA=0.02 GAMMA=0.4 PHI=0.6.OP.TRAN 200P 20N.PRINT TRAN V(IN) V(OUT).END Vdd - + Cload out in Vin m1 m2
19
Islamic Azad University - Qazvin Branch 19 Graphs Displaying
20
Islamic Azad University - Qazvin Branch 20 Example 6 – Id-Vgs characteristics in NMOS - w/l influence 0 1 2 NETLIST V(gg,Id) for n-Channel (W/L effect).op Vdd 1 0 dc 2 Vgg 2 0 dc 1.15 M1 1 2 0 0 MNMOS L=LM W=WM.MODEL MNMOS NMOS VTO=0.7 KP=110U +LAMBDA=0.04 GAMMA=0.4 PHI=0.7.data ratio LM WM 1u 10u 1u 20u 1u 50u.enddata.dc Vgg 0 1.8 0.05 data=ratio.print dc Id=par("-I(Vdd)").end Vdd Vgg
21
Islamic Azad University - Qazvin Branch 21 Graphs Displaying
22
Islamic Azad University - Qazvin Branch 22 Scaling Factors in HSPICE Factor Name MarkScale femtof1e-15 picop1e-12 nanon1e-9 microu1e-6 milim1e-3 kilok1e3 megameg1e6 gigag1e9 terat1e12 decibeldb20log10
23
Islamic Azad University - Qazvin Branch 23 units in HSPICE MarkUnit aAngstrom ampampere cmcentimeter degdegree evElectron-volt ffarad hHenry mmeter ohm vvolt ssecond
24
Islamic Azad University - Qazvin Branch 24 Commands Summary.TEMP t1 > for example :.TEMP -55.0 25.0 125.0.MODEL mname type + Type : AMP = Op-Amp NMOS = n-Ch MOSFET PMOS = p-Ch MOSFET R = Resistor & … Pname1… : Parameters Name for Example :.MODEL MNMOS NMOS VTO=0.7 KP=110U LAMBDA=0.04 +GAMMA=0.4 PHI=0.7
25
Islamic Azad University - Qazvin Branch 25 Device Defining 1 Resistor : Rxxx n1 n2 resistance val> + val> + Example : RC1 13 17 R=1k TC1=0.001 TC2=0
26
Islamic Azad University - Qazvin Branch 26 Device Defining 2 Capacitor : Cxxx n1 n2 capacitance val> + val> + Example : Cshunt out gnd C=100f TC1=0.001 L=0.003
27
Islamic Azad University - Qazvin Branch 27 Device Defining 3 MOSFET : Mxxx nd ng ns mname length> width> + + + Example : M1 vdd vgg 0 0 MNMOS L=1u W=30u
28
Islamic Azad University - Qazvin Branch 28 Supply Defining 1 Independent : Vxxx n+ n- dcval> + > Ixxx n+ n- dcval> + > Tranfun = AM, DC, EXP, PU, SIN, …
29
Islamic Azad University - Qazvin Branch 29 Supply Defining 2 Pulse : Vxxx n+ n- PU + V1 V2 >>>> Ixxx n+ n- PU + V1 V2 >>>>
30
Islamic Azad University - Qazvin Branch 30 Supply Defining 3 Sin : Vxxx n+ n- SIN + Vo Va >>> Ixxx n+ n- SIN + Vo Va >>> example : VIN 3 0 SIN (0 1 100MEG 1NS 1e8)
31
Islamic Azad University - Qazvin Branch 31 THANKS A LOT FOR YOUR ATTENTION
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.