I'm using HSpice simulator with the following example netlist:
Code:* simple cut
.param res_val = 100k
.param cap_val = agauss(1u,50n,3)
v1 n1 0 2 dc
r1 n1 n2 res_val
c1 n2 0 cap_val
.tran 0.1n 100n sweep monte=15
.option post abstol=1e-9 reltol=1e-9
.end
I want to specify the value of the parameter res_val from the command-line, something like the following
Code:hspice simple.sp -param res_val=1k
(Please note: this syntax does not work, but I'm giving it as an example of what I'm looking for)
This way, I don't have to open the editor each time I need to run the simulation for a different resistance. But unfortunately, I looked this up in the documentation, and I was unable to find a way to supply params from the command line as in the above example.
Maybe someone has an idea, hopefully?