DVM - Design Verification Module
|
In both SIMetrix and SIMPLIS mode, the GlobalVar() function allows you change parameter values. When you place a GlobalVar() function in a testplan, the variable statement is automatically written to the simulator command (F11) window.
IMPORTANT! The GlobalVar() function parametrizes at all levels of the hierarchy. While this feature of the function is convenient, it can be dangerous. Global variables take precedence over any variables defined locally at the hierarchical component level. If you use the GlobalVar() function, make certain the variables being defined are not overwriting any local variables.
In this Topic Hide
The GlobalVar() function has the following syntax:
GLOBALVAR(variable_name, value)
The Var(), GlobalVar(), Change() and Temp() functions behave differently depending on whether they are used inline or in a header row.
For example, the following testplan with a header row ...
1 | *?@ Var(MAX_Q,1n) | GlobalVar(VIN,12) | Change(U1.U3.GAIN,1) |
2 | 2n | ||
3 | 5.0 | ||
4 | 0.5 |
© 2015 simplistechnologies.com | All Rights Reserved