How_to_use_HSPICE_for_ECE222
How_to_use_HSPICE_for_ECE222
Note that “%” is the command prompt in Linux, and I assume you are using C Shell, which is the
default shell on ECE Linux workstations and servers.
Then specify the HSPICE installation directory
% source $HSP_DIR/hspice/bin/cshrc.meta
% hspice your_spice_netlist_filename
Some text outputs from HSPICE will be displayed in the shell window. You can also re-direct these
text outputs to an output file. The alternative command to run HSPICE is:
1
ECE222
Then you can open this text file to view the outputs.
HSPICE can also generate graphic outputs, which will be saved in separate data files in the current
design directory. See the lecture notes for the file suffix to locate them.
You can automate this step by adding this line to your .cshrc script file in your home directory (see
Section IV below).
To start WaveView,
% wv &
A graphic window will show up. You can load the data from the graphic files and plot them like in
the following example:
2
ECE222
% source ~/.cshrc
Next time after you login, the .cshrc script will be executed automatically and the environment will
be set up without the need to manually run the commands or the .cshrc script again.
3
ECE222