Step1: enter ECE 482 working directory
Before working on ECE 482, always run the command ece482 on the Engineering Workstations. This will change to a work directory with additional disk space and set up the environment for HSPICE and Cadence.
Step2: Run HSPICE using a given example
Please download the models25.txt file to your current working directory if you want to use the TSMC 250nm process technology. Download the models18.txt file if you want to use the 180nm process technology.
Open up a text editor and copy down the sample CMOS inverter code from the Quick HSPICE overview. Save the file as inverter.cir
Run HSPICE simulation by typing hspice inverter.cir > inverter.out, where inverter.cir is the name of the SPICE stack file and the output is redirected to a file called inverter.out.
Step3: View simulation results using CosmosScope
Type cscope , and go to File > Open > PlotFiles to load the results.
Congratulations! You are now ready to learn more about HSPICE!