I used to use .step in cadence PSPICE to make any variable value.
an example in PSPICE (simple voltage divider):
vin 1 0 10
r1 1 2 {rval1}
r2 2 0 {rval2}
.param rval1 10k
.param rval2 10k
.step param rval1 1k 10k 1k
.dc param rval2 1k 10k 1k
.probe
.print dc V(2)
.end
the problem now that I can't use it and I can't find the command to use in HSPICE, any solution.
(How can I add any variable parameter (resistor, capacitor, current or voltage source, or frequency) in HSPICE?)