neku
Newbie level 1
i'm new to hspice and trying to simulate nand2 gate using bsim-cmg.
here's my code:
but i'm getting this error:
here's my code:
Code:
*Sample netlist for BSIM-MG
*nand
.option abstol=1e-6 reltol=1e-6 post ingold
.hdl "bsimcmg.va"
.include "modelcard.nmos"
.include "modelcard.pmos"
but i'm getting this error:
**error** model name pmos1 in the element 0:m1 is not defined.
**error** model name nmos1 in the element 0:m3 is not defined.
**error** model name nmos1 in the element 0:m4 is not defined.
* --- Voltage Sources ---
vdd supply 0 dc=1.0
va a 0 dc=0.5 AC=0,0 PULSE(0 0.5 0n 0.1n 0.1n 5n 10n)
vb b 0 dc=0.5 AC=0,0 PULSE(0 0.5 0n 0.1n 0.1n 5n 10n)
M1 out a supply b pmos1 TFIN=15n L=34n NFIN=2 ASEO=1.5e-14 ADEO=1.5e-14 NRS=1 NRD=1
M3 out b mid1 b nmos1 TFIN=15n L=34n NFIN=2 ASEO=1.5e-14 ADEO=1.5e-14 NRS=1 NRD=1
M4 mid1 a 0 a nmos1 TFIN=15n L=34n NFIN=2 ASEO=1.5e-14 ADEO=1.5e-14 NRS=1 NRD=1
* --- Transient Analysis ---
.tran 10n 50n
.print tran v(a) v(b) v(out)
.end