** * PMOS example * * Input listing ** * Specify the MOSFET parameters * .Model pfet pmos +VTO=-0.8 KP=4e-4 GAMMA=0.8 LAMBDA=0.00 PHI=0.7 * * KP is twice the K_P defined in the textbook * Similarly, KN is twice the K_N in the Neamen's text * * * Specify circuit * * D G S B * Drain, Gate, Source, Bulk M1 3 1 2 2 pfet L=1.6e-6 W=1.6e-6 * Vdd 2 0 dc 5.0 R1 2 1 50e3 R2 1 0 50e3 RD 3 0 2e3 C1 4 1 5uF Vin 4 0 sin(0 2m 60) .Tran 0.41675ms 66.68ms 16.67ms .width out=80 .print tran V(3) V(1) .plot tran V(3) V(1) .END