.include
* Parameter Declarations
.PARAM supply=1.1
.PARAM Lmin=45nm
.PARAM Wmin=45nm
.PARAM Wp={2*Wmin}
.global vdd gnd
.subckt inverter in out
MP1 out in vdd vdd pmos w={Wmin} L={Lmin}
Mn1 out in 0 0 NMOS W={Wmin} L={Lmin}
.ends inverter
.subckt
* Calling inverter subcircuit
* NMOS and PMOS connections
nmos w={Wmin} L={Lmin}
pmos w={Wmin} L={Lmin}
.ends