problems about my simple hspice code

Status
Not open for further replies.

fujiapple

Newbie level 1
Joined
Nov 26, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Hi , I write a simple hspice code but there is something wrong with it and I cannot solve it. In my code ,I use nmos,pmos,pmos0 in the lib file. When I change my pmos0 patameters, the delay of gate should be change but it didn't. I don't know why and does anybody can help me ? Thank you so much! The following is my code:

****************** TITLE: and2 ********************
.PARAM VIN= '1.2'
.GLOBAL vdd! 1.2
+ gnd! 0
.PIN vdd!
+ gnd!
.TEMP 300.0
.TRAN 1n 20n
.MEAS Tran delay-time-fall trig v(inputa) val=0.6v rise=1
+ targ v(output) val=0.6v fall=1
.MEAS Tran delay-time-rise trig v(inputa) val=0.6v fall=1
+ targ v(output) val=0.6v rise=1

.MEAS Tran rise-time trig v(output) val=0.12v rise=1
+ targ v(output) val=1.08v rise=1
.MEAS Tran fall-time trig v(output) val=0.12v fall=1
+ targ v(output) val=1.08v fall=1
.OP
.OPTION POST
.LIB '/home/fall11/jxu11/work_folder/lab1/model_65.lib'
****************************************************
.SUBCKT AND a b out
MM5 out net9 gnd! gnd! nmos W=195n L=65n
MM3 net5 b gnd! gnd! nmos W=195n L=65n
MM2 net9 a net5 net5 nmos W=195n L=65n
MM4 out net9 vdd! vdd! pmos W=195n L=65n
MM0 net9 a vdd! vdd! pmos W=195n L=65n
MM1 net9 b vdd! vdd! pmos0 W=195n L=65n
.MODEL pmos0 PMOS LEVEL= 54
.MODEL pmos PMOS LEVEL= 54
.MODEL nmos NMOS LEVEL= 54
.ENDS
****************************************************
Vv0 vdd! 0 VIN
Vv1 inputa 0 PWL 0 0V 1n 0V 3n 1.2V 8n 1.2V 10n 0V
Cc0 out 0 0.05pf
Vv2 inputb 0 DC VIN
Xu0 inputa inputb output / and
****************************************************
.END
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…