NMOS Inverter OUTPUT CHARACTERISTICS .OPTIONS NODE NOPAGE .width out=80 VDS 3 0 5 VGS 2 0 DC 0 pulse(0 5 0 0.1ns 0.1ns 10ns 20ns) M1 1 2 0 0 MOD1 L=4U W=10U M2 1 3 3 0 MOD1 L=4U W=4U CL 1 0 0.01pF .MODEL MOD1 NMOS VTO=1 NSUB=1.0E15 UO=550 * VIDS MEASURES ID, WE COULD HAVE USED VDS, BUT ID WOULD BE NEGATIVE *VIDS 3 1 .control *DC VGS 0 5 0.1 tran 0.01ns 30ns * Commands for Spice3 destroy all let wn=5 while wn<51 alter @M1[w]=wn*1u run *print V(1) *plot V(1) let wn=wn+5 end *plot dc1.V(1) dc2.V(1) dc3.V(1) dc4.V(1) dc5.V(1) dc6.V(1) dc7.V(1) *dc8.V(1) dc9.V(1) dc10.V(1) plot tran1.V(2) tran1.V(1) tran2.V(1) tran3.V(1) tran4.V(1) tran5.V(1) tran6.V(1) tran7.V(1) tran8.V(1) tran9.V(1) tran10.V(1) .endc .END