Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.step command in hspice

412 views
Skip to first unread message

SCHUSTER

unread,
Sep 13, 2001, 9:33:46 PM9/13/01
to
hi,

is there a command like .STEP (in PSPICE) with which it is possible to
analyze a circuit with different values for a source, as to step through
the different parameter values?
It would be nice for the homework to get the I-V curves in one run

uli

a

unread,
Sep 13, 2001, 10:43:21 PM9/13/01
to
.DC

Ulrich Schuster

unread,
Sep 14, 2001, 5:46:44 PM9/14/01
to
Hi,

> Here's how to use the .DC command for a sweep...
>
> .DC +node -node start_voltage stop_voltage step_size
>
> Hope this helps!

I'm sorry this is not what I'm looking for. Is there a command that lets you
do multiple analysis in one plot - e.g. for different values of Vgs?

uli


Joshua Garrett

unread,
Sep 14, 2001, 6:55:55 PM9/14/01
to
Uli,
Parametric analysis can be done using the .ALTER command (page 3-37 in the
HSPICE manual). If there is a value that you want to step (such as Vgs), you
would first define a parameter to represent that value (say, 2 gigavolts):
.PARAM vgs=2000x
You can then define a voltage source (e.g. VG) with dc value equal to the
parameter:
VG vg 0 'vgs'
Instead of ending your netlist with .END, use .ALTER, then add a new line
redefining the parameter with a different value. Repeat these two statements
for as many different values as you want to step. Finally, end the netlist
with the .END command. When you compile the netlist, hspice will run a
simulation, change the netlist with the information following the .ALTER
statements, and simulate again. In AWAVES you will then be able to access
simulations (such as DC sweeps) for different stepped values.

josh

0 new messages