SPICE Example
UNIVERSITY of
PENNSYLVANIA
DEPARTMENT OF ELECTRICAL ENGINEERING
HSPICE Example: DC Sweep, and Thevenin Equivalent Circuit
This is the same example as the previous one but written for HSpice.
The inputs can be the same for both PSpice and HSpice. However, HSpice allows you to name nodes instead of numbering
the nodes. To illustrate this we will call the input node
"input" and output node "output".
We are interested in finding the following characteristics of the circuit given below:
1. Node voltages v12, v2 and current i4 when vin=10V
2. Thevenin equivalent voltage and resistance, seen at the output terminals v(3,0)
3. Sweep the input from 0 to 20V in steps of 2V and plot the voltages v12, v2, vo and the current i4.
INPUT FILE
- Example of an HSpice: Thevenin Eq. ciruit and DC Sweep
- VIN input 0 DC 10
- F1 0 output VMEAS 0.5
- VMEAS 4 0 DC 0
- *VMEAS is a 0V source to measure i4
- R1 input 2 1K
- R2 2 output 10K
- R3 input output 15K
- R4 2 4 40K
- R5 output 0 50K
- .OP
- .TF V(output,0) VIN
- .DC VIN 0 20 2
- .option post
- .END
Back to Spice Guidelines
Jan Van der Spiegel; jan@ee.upenn.eduCreated Oct. 29, 1995; Updated Oct. 29, 1995