himansg
Junior Member level 2
Hi ,
I am writing a netlist of inverter chain of two inverter using the ".subckt" function of hspice. But I am not getting the desired output. Can someone please point out the mistake ...
n_mos and p_mos are model names from the tsmc035.mod file.
Thanks.....
I am writing a netlist of inverter chain of two inverter using the ".subckt" function of hspice. But I am not getting the desired output. Can someone please point out the mistake ...
Code:
Inverter Chain
.lib 'tsmc035.mod' NOM
*Voltage Sources and Inputs
vdd vdd gnd 3.2
vin in gnd pat 3.2 0 0n 1p 1p 5n b010101
.global vdd
*Subcircuit Inverter
.subckt invert in out length=0.35u width=0.35u
mn1 out in gnd gnd n_mos l=length w=width
mp1 out in vdd vdd p_mos l=length w=2*width
.ends
x1 in out1 invert length=0.35u width=0.35u
x2 out1 out invert length=0.35u width=0.35u
.tran 0.1p 30n
.option post=2 nomod
.end
n_mos and p_mos are model names from the tsmc035.mod file.
Thanks.....