****example: Inverter Transient Analysis .include t5bk_params.inc * constant voltage source: vxx node1 node2 type voltage Vdd vdd 0 dc 3.3 * here's the inverter netlist declaration * mosfet: mxx drain gate source substrate model length width m1 out in vdd vdd cmosp l=0.6u w=2.4u m2 out in 0 0 cmosn l=0.6u w=2.4u * here's the load capacitor on the inverter output * capacitor: cxx node1 node2 capacitance Cl out 0 300f * pulsed voltage source: * vxx node1 node2 PULSE params * params = vlow vhigh delay rise fall pulse_width period vin in 0 pulse 0 3.3 10ns 1ps 1ps 10ns 20ns * enable post-processing by AvanWaves .op .options list post * transient analysis: step size = 0.2 nsec, duration = 50 nsec .TRAN 0.2ns 50ns * specify nodes to print (hspice will print them all, anyway) .print tran v(in) v(out) .end