Using a parameter as TSTOP for a transient simulation

37 views
Skip to first unread message

Leo Filippini

unread,
Apr 10, 2018, 11:33:05 AM4/10/18
to xyce-users
Hello Everyone,

Reading this post on the user group I tried to use a parameter to define the stop time of a tran analysis.
In my understanding, .PARAM statements evaluate at parse time, so it should be possible to use them to specify the TSTOP.
A minimum example is something like this:

Title
.PARAM stopme=1n

V1 1 0 DC 3

.TRAN 0.01n {stopme}

.PRINT tran V(1)

.END

Running this netlist I get the error "Netlist error: Cannot convert '{stopme}' to double for expression TSTOP".
The same thing happens if I don't put stopme between {}.

Am I doing something wrong, or is this use not supported?

xyce-users

unread,
Apr 10, 2018, 12:11:07 PM4/10/18
to xyce-users
Unfortunately, while you are absolutely correct that it *should* be possible for Xyce to support this usage, in fact the Xyce parser and analysis code are not set up to handle it.  At this time, only numbers may be used for the parameters of an analysis line (.tran, .dc, .hb, etc.).

We have an open bug in the internal Xyce issue tracker, but have not yet had the resources to devote to addressing this issue.
Reply all
Reply to author
Forward
0 new messages