When a line is entered, it is interpreted as one of several things. First, it may be an alias, in which case the line is replaced with the result after alias substitution, and the line is re-parsed. Second, it may be the name of a codeblock, which is a user-defined command obtained from a script file, in which case the codeblock is executed. Third, it may be a pre-defined command, in which case it is executed. Fourth, it may be an assignment statement, which consists of a vector name, an `=' symbol, and an expression, in which case it is executed as if it were preceded by the word ``let''. Fifth, it may be the name of a circuit file, in which case it is loaded as if with a source command, or it may be the name of a command script - WRspice searches the current sourcepath (search path) for the file and executes it when it is found. The effect of this is identical to the effect of ``source file'', except that the variables argc and argv are set. Finally, it may be a UNIX command, in which case if the variable unixcom is set, it is executed as though it were typed to the operating system shell.
The following table lists all built-in commands understood by WRspice.
Control Structures | |
cdump | Dump control structures for debugging |
---|---|
strcmp | Compare strings |
User Interface Setup Commands | |
mapkey | Create keyboard mapping |
passwd | Set update access password |
setcase | Check/set case sensitivity for name classes |
setfont | Set graphical interface fonts |
setrdb | Set X resources |
update | Save tool window configuration |
wrupdate | Download/install program updates |
Shell Commands | |
alias | Create alias |
cd | Change directory |
echo | Print string |
echof | Print string to file |
history | Print command history |
pause | Pause script execution |
rehash | Update command database |
set | Set a variable |
shell | Execute operating system commands |
shift | Shift argument list |
unalias | Destroy alias |
unset | Unset a variable |
usrset | Print list of internally used variables |
Input and Output Commands | |
codeblock | Manipulate codeblocks |
dumpnodes | Print node voltages and branch currents |
edit | Edit text file |
listing | List current circuit |
load | Read plot data from file |
Print vectors | |
sced | Bring up Xic schematic editor |
source | Read circuit or script input file |
write | Write data to rawfile |
xeditor | Edit text file |
Simulation Commands | |
ac | Perform ac analysis |
alter | Change circuit parameter |
aspice | Initiate asynchronous run |
cache | Manipulate subcircuit/model cache |
check | Initiate range analysis |
dc | Initiate dc analysis |
delete | Delete watchpoint |
destroy | Delete plot |
devload | Load device module |
devls | List available devices |
devmod | Change device model levels |
disto | Initiate distortion analysis |
dump | Print circuit matrix |
free | Delete circuits and/or plots |
jobs | Check asynchronous jobs |
loop | Perform analysis over range |
noise | Initiate noise analysis |
op | Compute operating point |
pz | Initiate pole-zero analysis |
reset | Reset simulator |
resume | Resume run in progress |
rhost | Identify remote SPICE host |
rspice | Initiate remote SPICE run |
run | Initiate simulation |
save | List vectors to save during run |
sens | Initiate sensitivity analysis |
setcirc | Set current circuit |
show | List parameters |
state | Print circuit state |
status | Print trace status |
step | Advance simulator |
stop | Specify stop condition |
tf | Initiate transfer function analysis |
trace | Set trace |
tran | Initiate transient analysis |
where | Print nonconvergence information |
Data Manipulation Commands | |
compose | Create vector |
cross | Vector cross operation |
define | Define a macro function |
deftype | Define a data type |
diff | Compare plots and vectors |
display | Print vector list |
fourier | Perform spectral analysis |
let | Create or assign vectors |
linearize | Linearize vector data |
pick | Create vector from reduced data |
seed | Seed random number generator |
setplot | Set current plot |
setscale | Assign scale to vector |
settype | Assign type to vector |
spec | Perform spectral analysis |
undefine | Undefine macro function |
unlet | Undefine vector |
Graphical Output Commands | |
asciiplot | Generate line printer plot |
combine | Combine plots |
hardcopy | Send plot to printer |
iplot | Plot during simulation |
mplot | Plot range analysis output |
plot | Plot simulation results |
xgraph | Plot simulation results using xgraph |
Miscellaneous Commands | |
bug | Submit bug report |
help | Enter help system |
helpreset | Clear help system cache |
qhelp | Print command summaries |
quit | Exit program |
rusage | Print resource usage |
version | Print program version |