You are on page 1of 27

HSPICE Setup

ECE304
Fall 2009
„ Setup SSH software

Link: https://sitelicense.arizona.edu/ssh/index.shtml
„ Use PuTTY to SSH to ECE server:

ece3 ece arizona edu


ece3.ece.arizona.edu
„ You can set auto
auto-login
login username
„ Enable X11 graphic connection
„ Logon ECE server
„ Transfer netlist file “xxx
xxx.sp
sp” into your own folder
„ Go to your own folder and start simulation
(command: hspice xxx.sp > xxx.lis)
„ Make sure Xwindows software Xming is ready before
you launch WaveViewer Analyzer

Link: http://sourceforge.net/projects/xming/
„ Run WaveViewer Analyzer to observer waveform
command: wv (make sure Xming is open)
„ Import waveform file ((.tr
tr*, .sw
sw*, .ac
ac* files)
„ Plot signals
Design Lab 1

ECE304
Fall 2009
„ The measured ID-VVDS curves of a 5um/0
5um/0.15um
15um (W/L)
NMOS transistor. (the data file is attached)
„ a) Estimate the model parameters (Level 1):
a).
VT 0 , γ , k ' , λ
„ The parameters can be estimated by choosing appropriate
measured points on different curves
curves.
„ VT0: At VDS=0.7V, VBS=0 measure IDS at two different VGS

I DS ,1 = I DS (VGS = 1.2V , VDS = 0.7V , VBS = 0V ) = 859 μA


I DS , 2 = I DS (VGS = 0.9V , VDS = 0.7V , VBS = 0V ) = 102 μA
2
I DS ,1 ⎛ 1.2V − VT 0 ⎞ 859
= ⎜⎜ ⎟⎟ = ⇒ VT 0 ≈ 740mV
I DS , 2 ⎝ 0.9V − VT 0 ⎠ 102
„ γ: At VDS=1.0V,
=1 0V VGS=1.2V,
=1 2V we measure IDS at two
different VBS

I DS ,3 = I DS (VGS = 1.2V ,VDS = 1V , VBS = 0V ) = 954 μA


I DS , 4 = I DS (VGS = 1.2V , VDS = 1V , VBS = −1.2V ) = 615μA
2
I DS ,3 ⎛ 1.2V − VT 0 ⎞ 954
95
= ⎜⎜ ⎟⎟ = ⇒ VT ≈ 830mV
V
I DS , 4 ⎝ 1.2V − VT ⎠ 615
1
VT − VT 0 ≈ 90mV = γ ( 0.6 + 1.2 − 0.6 ) ⇒ γ = 0.160V 2

„ λ can be computed in a similar wayway.


„ A single point data is sufficient to estimate kp.
„ b). calculate the small signal parameters at the
b)
operating point A. (VGS=1.2V, VBS=0, VDS=0.8V)
W
g m = k p (VGS − VT )(1 + λ × VDS )
L
γ
χ=
2 (2φF + VSB )
g mb = χ ⋅ g m
1
r0 =
λ ⋅ I DS
„ c)c)-e).
e). simulate the ID-V
VDS curves in HSPICE
.title problem 1(c) .title statements always comes first
.options nomod post set control options
p

.model xtor nmos level=1 vt0=0.74 gamma=0.16 lambda=0.47


kp=180u capop=0
model definition
m1 d g 0 0 xtor w=5u
w 5u l=0.15u
l 0.15u
vds d 0 dc=0.8
Mname Nd Ng Ns Nb
vgs g 0 dc=1.2

.probe dc id=i1(m1)
save simulation output
.dc vds start
start=0
0 stop=1.8
stop 1.8 step=0.01
step 0.01 vgs 0.9 1.5 0.3
.end DC sweep: vds from 0 to
1.8, vgs=0.9, 1.2, 1.5
„ Start simulation and run WV analyzer:
„ Delete all temporary files and output files if you can not
overwrite exisiting files.
„ f).
f) Modify the netlist to provide VBS=-1.2V
= 1 2V
.option nomod post

.model xtor nmos level=1 vt0=0.74 gamma=0.16 lambda=0.47


kp=180u capop=0

m1 d g 0 b xtor w=5u l=0.15u


vds
d d0d dc=0.8
08
vgs g 0 dc=1.2
vbs b 0 dc=-1
dc 1.22

.probe dc id=i1(m1)

.dc
dc vds start
start=0
0 stop
stop=1.8
1 8 step
step=0.01
0 01 vgs 0
0.9
911.5
500.3
3
.end
„ The measured log(ID)-V
) VGS curves of a 5um/0
5um/0.15um
15um
(W/L) NMOS transistor. (the data file is attached)
„ a) Estimate the value of n for this transistor
a). transistor.

The subthreshold slop can be calculated by using 2


measured data points.

∂ (log10 I D )
slope = ≈ 15
∂VGS
VGS − VT
I D = I 0 (exp )
nVT
∂ (log10 I D ) 1
= (log10 e ) = slope ≈ 15
∂VGS nVT
„ b) Simulate and print out the curves
b).
… normal ID-VGS curves
… log(ID) -VGS curves

„ fix VDS=1.1V, and DC sweep VGS

vds d 0 dc=1.1V
.dc vgs start=0.2 stop=1.8 step=0.01 vbs -1.2 0 1.2
„ normal ID-V
VGS curves
„ log(ID) -V
VGS curves

You might also like