** Example Input File

 

****************************************************************

** Set temperature

 

.TEMP 25                   * set operating temperature to 25C

 

*********************************************************************

***** set options (for HSpice simulator, set results post-processing)

 

.OPTIONS POST              * options post

 

****************************************************************

** Set input stimuli - Input voltage PWL (between nodes IN and 0)

 

Vin  IN 0  PWL(0mS,0V 1mS,0V 1.01mS,1V)

 

****************************************************************

** Define netlist

 

R1  IN  1  1k     * Resistor R1, value 1kohm (between nodes IN and 1)

L1  1   2  1uH    * Inductor L1, value 1uH (between nodes 1 and 2)

C1  2   0  1uF    * Capacitor C1, value 1uF (between nodes 2 and 0)

 

****************************************************************

** Set Analysis - Run a transient analysis for 10mS,

 

.tran 1mS 10mS

 

****************************************************************

* End of Spice File

 

.end