The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Supply parameter value using shell commands
https://designers-guide.org/forum/YaBB.pl?num=1463942550

Message started by AA on May 22nd, 2016, 11:42am

Title: Supply parameter value using shell commands
Post by AA on May 22nd, 2016, 11:42am

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?

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.