The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 19th, 2024, 2:15pm
Pages: 1
Send Topic Print
Supply parameter value using shell commands (Read 1126 times)
AA
Junior Member
**
Offline



Posts: 21

Supply parameter value using shell commands
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?
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.