The functions in this section provide an interface to the extraction system. This interface is by no means complete, but it allows many common operations to be performed and allows traversal and information retrieval.
The third argument is a string, consisting of characters from the table below, which set the mode of the command. These are analogous to the check boxes that appear with the Dump Phys Netlist command. If a character does not appear in the string, that option is turned off. If it appears in lower case, the option is turned on, and if it appears in upper case, the option will be set by the present value of the corresponding !set variable. The characters can appear in any order.
character | option | corresponding variable |
n | net | PnetNet |
d | devs | PnetDevs |
s | spice | PnetSpice |
b | list bottom-up | PnetBottomUp |
g | show geometry | PnetShowGeometry |
c | include wire cap | PnetIncludeWireCap |
a | list all cells | PnetListAll |
l | ignore labels | PnetNoLabels |
The final argument, if not null or empty, contains a space-separated list of physical format names, each of which must match a PnetFormat name in the format library file, or option names from the table above. The names that contain white space should be double-quoted.
For each cell, a field in the output is generated for each format choice implicit in the modestring or given in the names. In most cases, only one format is probably wanted. The option text in the table above can also be included in the names, which is equivalent to giving the corresponding lower-case letter in the modestring. The modestring setting will have precedence if there is a conflict. If both the modestring and the names string are empty or null, an effective mode string consisting of all of the upper-case option letters is used.
Example: print a SPICE file
DumpPhysNetlist("myfile.cir", "a", "s", 0)
or
DumpPhysNetlist("myfile.cir", "a", 0, "spice")
If the function succeeds, 1 is returned, otherwise 0 is returned.
The third argument is a string, consisting of characters from the table below, which set the mode of the command. These are analogous to the check boxes that appear with the Dump Elec Netlist command. If a character does not appear in the string, that option is turned off. If it appears in lower case, the option is turned on, and if it appears in upper case, the option will be set by the present value of the corresponding !set variable. The characters can appear in any order.
character | option | corresponding variable |
n | net | EnetNet |
s | spice | EnetSpice |
b | list bottom-up | EnetBottomUp |
The final argument, if not null or empty, contains a space-separated list of electrical format names, each of which must match an EnetFormat name in the format library file, or option names from the table above. The names that contain white space should be double quoted.
For each cell, a field in the output is generated for each format choice implicit in the modestring or given in the names. In most cases, only one format is probably wanted. The option text in the table above can also be included in the names, which is equivalent to giving the corresponding lower-case letter in the modestring. The modestring setting will have precedence if there is a conflict. If both the modestring and the names string are empty or null, an effective mode string consisting of all of the upper-case option letters is used.
If the function succeeds, 1 is returned, otherwise 0 is returned.
The final argument is a string, consisting of characters from the table below, which set the mode of the command. These are analogous to the check boxes that appear with the Source SPICE command. If a character does not appear in the string, that option is turned off. If it appears in lower case, the option is turned on, and if it appears in upper case, the option will be set by the present value of the corresponding !set variable. The characters can appear in any order. If the string is empty or null, all options will be set by the corresponding variables.
character | option | corresponding variable |
a | all devs | SourceAllDevs |
r | create | SourceCreate |
l | clear | SourceClear |
If the operation succeeds, 1 is returned, otherwise 0 is returned.
The final argument is a string, consisting of characters from the table below, which set the mode of the command. These are analogous to the check boxes that appear with the Source Physical command. If a character does not appear in the string, that option is turned off. If it appears in lower case, the option is turned on, and if it appears in upper case, the option will be set by the present value of the corresponding !set variable. The characters can appear in any order. If the string is empty or null, all options will be set by the corresponding variables.
character | option | corresponding variable |
a | all devs | NoExsetAllDevs |
r | create | NoExsetCreate |
l | clear | ExsetClear |
c | include wire cap | ExsetIncludeWireCap |
n | ignore labels | ExsetNoLabels |
If the operation succeeds, 1 is returned, otherwise 0 is returned. This function does not redraw the windows.
The return value is a handle to a list of object copies, or 0 if no objects are found.
The function will fail (halt the script) on a major error. If the group number is out of range, or a ``minor'' error occurs, the function will return a scalar 0, and an error message should be available from GetError.
Otherwise, the return value is a handle to a list of object copies, or the list may be empty if the group has no physical objects.