next up previous contents index
Next: The !exset Command: Extract Up: Extraction Previous: Extraction   Contents   Index


The !source Command: Source SPICE File

Syntax: !source [-[n]a] [-[n]c] [-[n]f] spice_file
This command is the prompt-line equivalent of the Source SPICE button in the Extract Menu. It enables a schematic to be created or updated from a SPICE file.

Node name mapping is turned on after the operation completes. Since a schematic produced in this way has every node name defined by a terminal, using the defined names, which correspond to the original SPICE file, is convenient.

There are three internal mode switches: all devs, create, and clear. These correspond to the three check boxes in the pop-up from the Source SPICE command.

all devs
If set, all devices in the cell which match a name in the SPICE file will be updated. If not set, only the devices that have names that were set explicitly by the user (by applying a name property) are updated.
create
If set, devices specified in the SPICE file that are not found in the schematic are created. If not set, only the properties of existing devices are updated.
clear
If set, the electrical part of a cell is cleared before reading the SPICE input. This implies create.

The default behavior of the command can be changed by setting the following boolean variables with the !set command. These determine the states of the buttons in the Source SPICE pop-up.

SourceAllDevs
SourceCreate
SourceClear

The options in the command line can be used to override the mode set by the current state of these variables.

-a all devs on -c create on -f clear on
-na all devs off -nc create off -nf clear off


next up previous contents index
Next: The !exset Command: Extract Up: Extraction Previous: Extraction   Contents   Index
Stephen R. Whiteley 2006-10-23