Internal Routines

In the example MOS3 implementation, the interface routines in CMImos3.c also call the following internal routines:

CMImos3GetIpar.c

get instance parameter index

CMImos3SetIpar.c

set instance parameter

CMImos3GetMpar.c

get model parameter index

CMImos3SetMpar.c

set model parameter

CMImos3eval.c

evaluate model equations

CMImos3set.c

setup a model

CMImos3temp.c

setup an instance including temperature-effect

Hierarchy of Interface and Internal Routines illustrates the hierarchical relationship between the interface routines and internal routines.


NOTE: For the automatic script to work, the name of the interface variable and all routine files must follow the naming convention, as follows:

pCMI_xxxdef
CMIxxx.c CMIxxxGetIpar.c
CMIxxxSetIpar.c CMIxxxGetMpar.c
CMIxxxSetMpar.c CMIxxxeval.c

where xxx is the model name.

 

Figure 23-2: Hierarchy of Interface and Internal Routines
Star-Hspice Manual - Release 2001.2 - June 2001