Testing CMI Models

After creating the shared library, you may test the new model by running Star-Hspice on a sample input file mos3.sp under the subdirectory test . This file contains a simple CMOS inverter using MOS LEVEL-3 models. Modify transistor sizes and model cards as necessary.

%hspice mos3.sp >mos3.lis

Avanwaves can now be used to inspect the I-V and C-V characteristics at different biasing conditions.

Use AvanWaves to carefully check the following aspects:

Refer to the AvanWaves User Guide for more information.

To verify the CMI integration of your new model, run a DC sweep analysis and transient analysis on the test netlist.


NOTE: LEVELs from 100 to 200 are reserved for CMI customer models. Please choose levels from this range so there will be no conflicts with existing Star-Hspice model levels. Also, please add a special prefix or suffix for some of the auxiliary functions used in CMI, especially those from the public domain, such as the function called modchk or dc3p1 from Berkeley Spice3. This will ensure that the function names are different from those used in the Star-Hspice core code.

After testing, if you are satisfied with your CMI library, put it in the default CMI library directory, $installdir/$ARCH/lib/models, where $ARCH is sun4 , sol4 , or pa , depending on the platform on which you compiled your CMI library.

The model interface routines accept input parameters from CMI. For each set of input conditions, the model routines are required to return transistor characteristics to CMI.

Star-Hspice Manual - Release 2001.2 - June 2001