Hspice Tutorial (2011)
Hspice Tutorial (2011)
LAB 912
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Graphic tools
SPICE Overview
Simulation:
Circuit simulation:
Physical model Circuit structure Simulation Program with Integrated Circuit Emphasis SPICE tools (HSPICE, Spectre, PSPICE) Steady-State, Transient, and Frequency Domains
SPICE:
LAB 912
LAB 802
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools
LAB 912
3. Awaves tools
LAB 912
LAB 912
Ignoring trailing Alphabetic Character in Node Number (e.g. 5a=5b=5) Ground may be 0, GND
All nodes = Local .GLOBAL Statement (e.g. .GLOBAL VDD VSS )
LAB 912 8
LAB 912
LAB 912
10
LAB 912
11
method = gear
method = trap
Highest accuracy Lowest simulation time Best for CMOS digital circuit
LAB 912 12
.Temp statement:
LAB 912
13
LAB 912
14
LAB 912
15
LAB 912
16
Description of MOSFET
LAB 912
17
Hierarchical Circuit
LAB 912
18
LAB 912
19
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Input and Controls Simulation tool & Graphic tools
LAB 912
20
DC, AC Sources
LAB 912
21
Transient Sources
Pulse (PULSE Function) Sinusoidal (SIN Function) Exponential (EXP Function) Piecewise Linear (PWL Function)
LAB 912
22
LAB 912
23
LAB 912
24
LAB 912
25
LAB 912
26
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools
27
LAB 912
28
LAB 912
29
LAB 912
30
LAB 912
31
LAB 912
32
Transient Analysis
LAB 912
33
LAB 912
34
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools
35
LAB 912
36
Output Statement
LAB 912
37
Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools
38
Simulation tool-Hspice
Open XXX.sp
()
Open XXX.lis
()
(1st step)
LAB 912 39
Graphic tools-Awaves
menu
(1st step) ()
Tool button
Waveform data
waveform
LAB 912 40
Result browser
Step1: Analysis type Step2: Instant name and hierarchy Set X axis
Step5:
LAB 912 41
Design name
Step3: Step4:
Awaves Windows
log
42
Example
(1) op.sp.op 1 (2) ac.sp.ac- (1) op.sp op.list DC operation point (3) dc.sp.dc-dc (2) ac.sp ac.ac0 Frequency Analysis (4) tr.sp.tran-
(3) (4)
dc.sp tr.sp
dc.sw0 tr.tr0
LAB 912
43
XXX.list
(1)concluded (2)mos
(1)
44
VDrain VGate
VIN AC 1V
VOUT
VSS
LAB 912
VSS
45
tr.sp
VDD
a
inv0
b
inv1
MP0 MN0
d Cout
VSS
LAB 912
46
DC Analysis:
.dc temp -40 120 10 .dc Vdrain 0 5 0.1 sweep VGate 3 5 0.1
AC Analysis
.ac dec 10 1 10G .ac dec 10 1 10G sweep temp -40 120 10 .probe vdb(XXX) vp(XXX)
.tran 1n 100u .tran 1n 100u UIC .tran 1n 100u sweep temp -40 120 20
LAB 912 47
Transient Analysis:
LAB 912
48