CMOSTest
* created by AmiSPICEed!
C3 1 0 0.01pF
X1 3 2 1 CMOSNOR
X0 2 3 4 CMOSNAND
V2 3 0 PWL( 0s 0V 49ns 0V 51ns 5V 74ns 5V 76ns 0V 124ns 0V 126ns 5V)
V1 2 0 PWL( 0s 0V 99ns 0V 101ns 5V)
C4 4 0 0.01pF
.subckt CMOSNAND 1 2 3
M1 3 1 5 5 PMOSenh l=1u w=1u
M2 3 2 5 5 PMOSenh l=1u w=1u
M3 3 1 4 0 NMOSenh l=1u w=2u
M4 4 2 0 0 NMOSenh l=1u w=2u
V0 5 0 DC 5V
.Model NMOSenh NMOS
+ LEVEL=1 VT0=0.7V
.Model PMOSenh PMOS
+ LEVEL=1 VT0=-0.7V
.ends
.subckt CMOSNOR 1 2 3
M1 4 1 5 5 PMOSenh l=1u w=2u
M2 3 2 4 5 PMOSenh l=1u w=2u
M3 3 1 0 0 NMOSenh l=1u w=1u
M4 3 2 0 0 NMOSenh l=1u w=1u
V0 5 0 DC 5V
.Model NMOSenh NMOS
+ LEVEL=1 VT0=0.7V
.Model PMOSenh PMOS
+ LEVEL=1 VT0=-0.7V
.ends
.TRAN 1ns 200ns  
.save V(1) V(2) V(3) V(4)
.END
