NMOS IV Characteristics * To plot results in AvanWaves * Open nmos_iv.sp * Select DC: NMOS IV Characteristics * Apply the drain voltage to the X-Axis * single click Types:Voltages * single click Curves:drain * single click Current X-Axis:Apply * Apply the m1 drain current to the Y-Axis * single click Types:Current 1 * double click i1(m1) .options post .include ami05.md * There's only a single MOSFET in the netlist m1 drain gate Gnd Gnd CMOSN l=0.5u w=2u * Voltage sources on the gate and drain initially set to 0 Vgate gate Gnd 0 Vdrain drain Gnd 0 * perform a nested voltage sweep * inner sweep: Vdrain from 0 to 5 by .1 * outer sweep: Vgate from 0 to 5 by 1 .DC Vdrain 0 5 .1 Vgate 0 5 1 * printing MOS currents: I1-drain, I2-gate, I3-source .print dc I1(m1) .end