Cadence Tutorial

Spice Simulation with Spectre - from Command Line

 Author: Meenatchi Jagasivamani, Carrie Aust


    Though Cadence Spectre can be used for SPICE simulation, it is generally not as accurate as we would like - and not as feature-rich in terms of measurement statements.  For these reasons, we usually use another SPICE simulator --  Hspice.  Please go to HSpice Simulation page to use HSPICE. However, in case we need to use Spectre, here we go.


This tutorial shows Spice simulation of a CMOS inverter. At this point, you should have set up the environment. Otherwise, refer to Setting Up Your Unix Environment.
 


inv.scs
SPICE model d25.m

Study the netlist. The source file performs a DC analysis.
If you wish to make a transient analysis, comment out the lines under
"For DC analysis only," and remove "*" for the lines under
"For Transient analysis only."


spectre inv.scs


awd -dataDir inv.raw

Four windows appear.
Activate "Result Browser" window.


Yellow node numbers show up on the right end of the hierarchy.


"Waveform Window" displays the waveform.


A windows appears.


 

Additional Info:
For details of Spice and Spectre, refer to the online manuals. They can be opened as:

cdsdoc &
Choose the following menus in the sequence.
IC Tools -> Analog and Mixed Signal Simulation
-> For SPICE choose "HSPICE/SPICE Interface ..."
-> For Spectre choose "Spectre User Guide."

Example Files for Comparator

Another inverter example, but this is in Spectre's own syntax. Note that since most people are more familiar with SPICE syntax, perhaps that should be used. Also, this new example makes different simulations from the first one.


Run Cadence setup script first. For example, with the NCSU kit, the command would be "source NCSU_setup.csh"
To simulate:        spectre compar.scs
To view results:    awd -dataDir compar.raw &

IMPORTANT:
There must be one blank line at end of file.  Spectre is case-sensitive.


Have fun!