.TRAN

53 views
Skip to first unread message

Roshni Uppala

unread,
Jun 3, 2014, 10:46:34 AM6/3/14
to xyce-...@googlegroups.com
Can .TRAN have parameter references ?
For example :

.GLOBAL_PARAM time_step=1ns
.GLOBAL_PARAM sim_time=100ns

.TRAN {time_step} {sim_time}

This does not seem to work though. .TRAN works when I give in direct values. I have also tried other alternatives such as : no braces, declaring as .PARAM , and many more. Nothing works. Am I missing something?
Also the reference guide says .GLOBAL_PARAM is not doesnot take time-dependent paramenters. I have also tried the following, but doesnot work :

.GLOBAL_PARAM time_step=1
.GLOBAL_PARAM sim_time=100

.TRAN {time_step}ns {sim_time}ns

xyce-users

unread,
Jun 3, 2014, 1:41:22 PM6/3/14
to xyce-...@googlegroups.com


On Tuesday, June 3, 2014 8:46:34 AM UTC-6, Roshni Uppala wrote:
Can .TRAN have parameter references ?

No, it cannot.

Use of expressions (including use of parameters defined in .PARAM statements) is only legal in certain contexts, and .TRAN is  not one of them.

There is an open enhancement request to change this, but at the moment the only places where expressions are legal are in device instance lines, model cards, .param and .global_param lines, and on .print lines.  For what it's worth, this is mentioned in the "Known defects and workarounds" section of the release notes, as it is a common request that expressions be usable everywhere any number can be used, but one we have not risen in priority above our other requirements.

Roshni Uppala

unread,
Jun 3, 2014, 1:44:04 PM6/3/14
to xyce-users
Ok. Thank you.


--
You received this message because you are subscribed to a topic in the Google Groups "xyce-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xyce-users/2FXdSqjR-VI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xyce-users+...@googlegroups.com.
To post to this group, send email to xyce-...@googlegroups.com.
Visit this group at http://groups.google.com/group/xyce-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages