V.Singh
Newbie level 3
I'm trying to simulate a basic 2 input nand gate using cmos and finfet but i'm currently facing problems in importing the model files.T he model files are from (ptm.asu.edu) .I tried to call the library so that it can automatically calculate vdd and fin thickness from the param.inc file. All the model files and code files are in the same directory.
Code:
*********************PTM Model*************
.include '32nm_bsim4.txt'
.include 'param.inc'
.lib ptm20lstp
***************parameters *****************
.param Wn = 64n
+ Wp = 160n
+ Lmin = 32n $ Technology node
+ Vmax = 0.9V $ Nominal Voltage
+ Vmin = 0.0V
****** Supply Voltages *********************
vSupply vdd 0 Vmax
vGround vss 0 Vmin
.global vdd
.global vss
.global clk
************** Modules **********************
.subckt NOT A Abar
MPN1 Abar A Vdd Vdd PMOS W=wp L=Lmin
MNN1 Abar A vss Vss NMOS W=wn L=Lmin
.ends
.subckt NAND in1 in2 out
MPN1 out in1 Vdd Vdd PMOS W=wp L=Lmin
MPN2 out in2 Vdd Vdd PMOS W=wp L=Lmin
MNN1 out in1 n001 Vss NMOS W=wn L=Lmin
MNN2 N001 in2 vss Vss NMOS W=wn L=Lmin
.ends
.subckt NAND_finfet A B out
XM1 out A N001 vss nfet
XM2 N001 B vss vss nfet
XM3 out vss Vdd Vdd pfet
.ends NAND_finfet