create_constant_form()
Creates a new constant form and stores the form in the dictionary for the current simulator type. Constant forms are used to describe one or more constant values. A parameter using constant form displays a list of values from which to choose, rather than a field for typing in the value. This is used by components with parameters whose allowable values are a list of constants. Returns: none.
Syntax:
create_constant_form(name, label, attribute, netlistFormat, displayFormat);
where
name is a string representing the form name.
label is a descriptive label for the form.
attribute is an integer and is normally set to 0. For discrete valued parts this value is set to 68, which is the sum of the FORM_DISCRETE attribute (value = 64) and the FORM_TUNABLE attribute (value = 4). For more information about discrete valued parts, see Discrete Valued Parts Required AEL Definitions.
netlistFormat is the format string to netlist the parameter value as. Refer to Format Strings.
displayFormat is the format string to display in a schematic. Refer to Format Strings.
Example:
This example creates forms for a parameter that has either yes or no values. Yes is netlisted as a 1 and no as a 0, but the strings yes and no are displayed in the schematic and the dialog box. The forms are combined into a single formset with the create_form_set() function.
create_constant_form("y_n1", "YES", 0, "1", "yes"); create_constant_form("y_n0", "NO", 0, "0", "no"); create_form_set("yes1_no0", "y_n1", "y_n0");
Where Used:
Schematic
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()