mark end of struct GENmodel overlay

This commit is contained in:
Henrik Forsten 2013-06-22 18:40:48 +02:00 committed by rlar
parent 66281cad4e
commit 3794c1eb20
57 changed files with 162 additions and 0 deletions

View File

@ -93,6 +93,8 @@ typedef struct sMIFmodel {
MIFinstance *MIFinstances; /* pointer to list of instances that have this model */
IFuid MIFmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int num_param; /* number of parameters on the code model */
Mif_Param_Data_t **param; /* array of structs for each parameter */

View File

@ -23,6 +23,9 @@ typedef struct sGENnumModel { /* model structure for a numerical device */
struct sGENnumModel *GENnextModel; /* pointer to next model in list */
GENinstance *GENinstances; /* pointer to list of instances */
IFuid GENmodName; /* pointer to string naming this model */
/* --- end of generic struct GENmodel --- */
/* Everything below here is numerical-device-specific */
MESHcard *GENxMeshes; /* list of xmesh cards */
MESHcard *GENyMeshes; /* list of ymesh cards */

View File

@ -270,6 +270,8 @@ typedef struct s$(module)model { /* model structure */
$(module)instance * $(module)instances; /* pointer to list of instances that have this model */
IFuid $(module)modName; /* pointer to the name of this model */
/* --- end of generic struct GENmodel --- */
/* model parameters */
<admst:for-each select="variable[parametertype='model' and input='yes']">
<admst:value-of select="name"/>

View File

@ -56,6 +56,9 @@ typedef struct sASRCmodel { /* model structure for a source */
ASRCinstance * ASRCinstances; /* pointer to list of instances
* that have this model */
IFuid ASRCmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} ASRCmodel;
/* device parameters */

View File

@ -329,6 +329,9 @@ typedef struct sBJTmodel { /* model structure for a bjt */
BJTinstance * BJTinstances; /* pointer to list of instances
* that have this model */
IFuid BJTmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int BJTtype;
int BJTsubs;

View File

@ -321,6 +321,9 @@ typedef struct sBSIM1model { /* model structure for a resistor */
B1instance * B1instances; /* pointer to list of instances
* that have this model */
IFuid B1modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int B1type; /* device type : 1 = nmos, -1 = pmos */
double B1vfb0;

View File

@ -243,6 +243,9 @@ typedef struct sBSIM2model { /* model structure for a resistor */
B2instance * B2instances; /* pointer to list of instances
* that have this model */
IFuid B2modName; /* pointer to the name of this model */
/* --- end of generic struct GENmodel --- */
int B2type; /* device type: 1 = nmos, -1 = pmos */
int pad;

View File

@ -403,6 +403,9 @@ typedef struct sBSIM3model
struct sBSIM3model *BSIM3nextModel;
BSIM3instance *BSIM3instances;
IFuid BSIM3modName;
/* --- end of generic struct GENmodel --- */
int BSIM3type;
int BSIM3mobMod;

View File

@ -598,6 +598,9 @@ typedef struct sB3SOIDDmodel
struct sB3SOIDDmodel *B3SOIDDnextModel;
B3SOIDDinstance *B3SOIDDinstances;
IFuid B3SOIDDmodName;
/* --- end of generic struct GENmodel --- */
int B3SOIDDtype;
int B3SOIDDmobMod;

View File

@ -598,6 +598,9 @@ typedef struct sB3SOIFDmodel
struct sB3SOIFDmodel *B3SOIFDnextModel;
B3SOIFDinstance *B3SOIFDinstances;
IFuid B3SOIFDmodName;
/* --- end of generic struct GENmodel --- */
int B3SOIFDtype;
int B3SOIFDmobMod;

View File

@ -588,6 +588,9 @@ typedef struct sB3SOIPDmodel
struct sB3SOIPDmodel *B3SOIPDnextModel;
B3SOIPDinstance *B3SOIPDinstances;
IFuid B3SOIPDmodName;
/* --- end of generic struct GENmodel --- */
int B3SOIPDtype;
int B3SOIPDmobMod;

View File

@ -322,6 +322,9 @@ typedef struct sBSIM3v0model
struct sBSIM3v0model *BSIM3v0nextModel;
BSIM3v0instance *BSIM3v0instances;
IFuid BSIM3v0modName;
/* --- end of generic struct GENmodel --- */
int BSIM3v0type;
int BSIM3v0mobMod;

View File

@ -324,6 +324,9 @@ typedef struct sBSIM3v1model
struct sBSIM3v1model *BSIM3v1nextModel;
BSIM3v1instance *BSIM3v1instances;
IFuid BSIM3v1modName;
/* --- end of generic struct GENmodel --- */
int BSIM3v1type;
int BSIM3v1mobMod;

View File

@ -358,6 +358,9 @@ typedef struct sBSIM3v32model
struct sBSIM3v32model *BSIM3v32nextModel;
BSIM3v32instance *BSIM3v32instances;
IFuid BSIM3v32modName;
/* --- end of generic struct GENmodel --- */
int BSIM3v32type;
int BSIM3v32mobMod;

View File

@ -815,6 +815,9 @@ typedef struct sBSIM4model
struct sBSIM4model *BSIM4nextModel;
BSIM4instance *BSIM4instances;
IFuid BSIM4modName;
/* --- end of generic struct GENmodel --- */
int BSIM4type;
int BSIM4mobMod;

View File

@ -634,6 +634,9 @@ typedef struct sBSIM4v4model
struct sBSIM4v4model *BSIM4v4nextModel;
BSIM4v4instance *BSIM4v4instances;
IFuid BSIM4v4modName;
/* --- end of generic struct GENmodel --- */
int BSIM4v4type;
int BSIM4v4mobMod;

View File

@ -659,6 +659,9 @@ typedef struct sBSIM4v5model
struct sBSIM4v5model *BSIM4v5nextModel;
BSIM4v5instance *BSIM4v5instances;
IFuid BSIM4v5modName;
/* --- end of generic struct GENmodel --- */
int BSIM4v5type;
int BSIM4v5mobMod;

View File

@ -799,6 +799,9 @@ typedef struct sBSIM4v6model
struct sBSIM4v6model *BSIM4v6nextModel;
BSIM4v6instance *BSIM4v6instances;
IFuid BSIM4v6modName;
/* --- end of generic struct GENmodel --- */
int BSIM4v6type;
int BSIM4v6mobMod;

View File

@ -1081,6 +1081,9 @@ typedef struct sB4SOImodel
struct sB4SOImodel *B4SOInextModel;
B4SOIinstance *B4SOIinstances;
IFuid B4SOImodName;
/* --- end of generic struct GENmodel --- */
int B4SOItype;
int B4SOImobMod;

View File

@ -80,6 +80,8 @@ typedef struct sCAPmodel { /* model structure for a capacitor */
* model */
IFuid CAPmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double CAPtnom; /* temperature at which capacitance measured */
double CAPtempCoeff1; /* linear temperature coefficient */
double CAPtempCoeff2; /* quadratic temperature coefficient */

View File

@ -53,6 +53,9 @@ typedef struct sCCCSmodel { /* model structure for a source */
CCCSinstance * CCCSinstances; /* pointer to list of instances
that have this model */
IFuid CCCSmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} CCCSmodel;
/* device parameters */

View File

@ -57,6 +57,9 @@ typedef struct sCCVSmodel { /* model structure for a CCVsource */
CCVSinstance * CCVSinstances; /* pointer to list of instances
that have this model */
IFuid CCVSmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} CCVSmodel;
/* device parameters */

View File

@ -70,6 +70,8 @@ typedef struct sCPLmodel { /* model structure for a cpl */
* model */
IFuid CPLmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double *Rm;
int Rm_counter;
double *Gm;

View File

@ -64,6 +64,8 @@ typedef struct sCSWmodel { /* model structure for a switch */
* model */
IFuid CSWmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double CSWonResistance; /* switch "on" resistance */
double CSWoffResistance; /* switch "off" resistance */
double CSWiThreshold; /* switching threshold current */

View File

@ -169,6 +169,8 @@ typedef struct sDIOmodel { /* model structure for a diode */
* that have this model */
IFuid DIOmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
unsigned DIOlevelGiven : 1;
unsigned DIOsatCurGiven : 1;
unsigned DIOsatSWCurGiven : 1;

View File

@ -132,6 +132,9 @@ typedef struct sHFETAmodel {
struct sHFETAmodel *HFETAnextModel;
HFETAinstance *HFETAinstances;
IFuid HFETAmodName;
/* --- end of generic struct GENmodel --- */
int HFETAtype;
int HFETAgatemod;

View File

@ -89,6 +89,9 @@ typedef struct sHFET2model {
int HFET2modType;
struct sHFET2model *HFET2nextModel;
HFET2instance * HFET2instances;
/* --- end of generic struct GENmodel --- */
IFuid HFET2modName;
int HFET2type;

View File

@ -596,6 +596,9 @@ typedef struct sHSM2model { /* model structure for a resistor */
HSM2instance * HSM2instances; /* pointer to list of instances
that have this model */
IFuid HSM2modName; /* pointer to the name of this model */
/* --- end of generic struct GENmodel --- */
int HSM2_type; /* device type: 1 = nmos, -1 = pmos */
int HSM2_level; /* level */
int HSM2_info; /* information */

View File

@ -915,6 +915,9 @@ typedef struct sHSMHVmodel { /* model structure for a resistor */
HSMHVinstance * HSMHVinstances; /* pointer to list of instances
that have this model */
IFuid HSMHVmodName; /* pointer to the name of this model */
/* --- end of generic struct GENmodel --- */
int HSMHV_type; /* device type: 1 = nmos, -1 = pmos */
int HSMHV_level; /* level */
int HSMHV_info; /* information */

View File

@ -82,6 +82,8 @@ typedef struct sINDmodel { /* model structure for an inductor */
* model */
IFuid INDmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double INDmInd; /* Model inductance */
double INDtnom; /* temperature at which inductance measured */
double INDtempCoeff1; /* first temperature coefficient */
@ -142,6 +144,9 @@ struct sMUTmodel *MUTnextModel; /* pointer to next possible model in
MUTinstance * MUTinstances; /* pointer to list of instances that have this
* model */
IFuid MUTmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} MUTmodel;
#endif /*MUTUAL*/

View File

@ -78,6 +78,9 @@ typedef struct sISRCmodel {
ISRCinstance * ISRCinstances; /* pointer to list of instances
* that have this model */
IFuid ISRCmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} ISRCmodel;

View File

@ -174,6 +174,9 @@ typedef struct sJFETmodel { /* model structure for a jfet */
JFETinstance * JFETinstances; /* pointer to list of instances
* that have this model */
IFuid JFETmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int JFETtype;
double JFETthreshold;

View File

@ -186,6 +186,9 @@ typedef struct sJFET2model { /* model structure for a jfet */
JFET2instance * JFET2instances; /* pointer to list of instances
* that have this model */
IFuid JFET2modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int JFET2type;
#define PARAM(code,id,flag,ref,default,descrip) double ref;

View File

@ -80,6 +80,8 @@ typedef struct sLTRAmodel { /* model structure for a transmission lines */
* model */
IFuid LTRAmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double LTRAh1dashFirstVal; /* first needed value of h1dasg at
current timepoint */
double LTRAh2FirstVal; /* first needed value of h2 at current

View File

@ -167,6 +167,9 @@ typedef struct sMESmodel { /* model structure for a mesfet */
MESinstance * MESinstances; /* pointer to list of instances
* that have this model */
IFuid MESmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MEStype;
double MESthreshold;

View File

@ -220,6 +220,9 @@ typedef struct sMESAmodel { /* model structure for a MESAfet */
MESAinstance * MESAinstances; /* pointer to list of instances
* that have this model */
IFuid MESAmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MESAtype;
double MESAthreshold;

View File

@ -318,6 +318,9 @@ typedef struct sMOS1model { /* model structure for a resistor */
MOS1instance * MOS1instances; /* pointer to list of instances
* that have this model */
IFuid MOS1modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MOS1type; /* device type : 1 = nmos, -1 = pmos */
double MOS1tnom; /* temperature at which parameters measured */
double MOS1latDiff;

View File

@ -326,6 +326,9 @@ typedef struct sMOS2model { /* model structure for a resistor */
MOS2instance * MOS2instances; /* pointer to list of instances
* that have this model */
IFuid MOS2modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MOS2type; /* device type : 1 = nmos, -1 = pmos */
int MOS2gateType;

View File

@ -322,6 +322,9 @@ typedef struct sMOS3model { /* model structure for a resistor */
MOS3instance * MOS3instances; /* pointer to list of instances
* that have this model */
IFuid MOS3modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MOS3type; /* device type : 1 = nmos, -1 = pmos */
double MOS3tnom; /* temperature at which parameters measured */
double MOS3latDiff;

View File

@ -249,6 +249,9 @@ typedef struct sMOS6model { /* model structure for a resistor */
MOS6instance * MOS6instances; /* pointer to list of instances
* that have this model */
IFuid MOS6modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MOS6type; /* device type : 1 = nmos, -1 = pmos */
double MOS6tnom; /* temperature at which parameters measured */
double MOS6latDiff;

View File

@ -324,6 +324,9 @@ typedef struct sMOS9model { /* model structure for a resistor */
MOS9instance * MOS9instances; /* pointer to list of instances
* that have this model */
IFuid MOS9modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int MOS9type; /* device type : 1 = nmos, -1 = pmos */
double MOS9tnom; /* temperature at which parameters measured */
double MOS9latDiff;

View File

@ -92,6 +92,9 @@ typedef struct sNBJTmodel { /* model structure for a bjt */
* linked list */
NBJTinstance *NBJTinstances; /* pointer to list of instances that have
* this model */
/* --- end of generic struct GENmodel --- */
IFuid NBJTmodName; /* pointer to character string naming this
* model */
/* Everything below here is numerical-device-specific */

View File

@ -96,6 +96,9 @@ typedef struct sNBJT2model { /* model structure for a bjt */
* this model */
IFuid NBJT2modName; /* pointer to character string naming this
* model */
/* --- end of generic struct GENmodel --- */
/* Everything below here is numerical-device-specific */
MESHcard *NBJT2xMeshes; /* list of xmesh cards */
MESHcard *NBJT2yMeshes; /* list of ymesh cards */

View File

@ -49,6 +49,9 @@ typedef struct sNDEVmodel { /* model structure for a diode */
struct sNDEVmodel *NDEVnextModel; /* pointer to next possible model in linked list */
NDEVinstance *NDEVinstances; /* pointer to list of instances that have this model */
IFuid NDEVmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
/* here can be freely defined as your wish*/
char * NDEVmodelfile;

View File

@ -75,6 +75,9 @@ typedef struct sNUMDmodel { /* model structure for a diode */
* this model */
IFuid NUMDmodName; /* pointer to character string naming this
* model */
/* --- end of generic struct GENmodel --- */
/* Everything below here is numerical-device-specific */
MESHcard *NUMDxMeshes; /* list of xmesh cards */
MESHcard *NUMDyMeshes; /* list of ymesh cards */

View File

@ -77,6 +77,9 @@ typedef struct sNUMD2model { /* model structure for a diode */
* this model */
IFuid NUMD2modName; /* pointer to character string naming this
* model */
/* --- end of generic struct GENmodel --- */
/* Everything below here is numerical-device-specific */
MESHcard *NUMD2xMeshes; /* list of xmesh cards */
MESHcard *NUMD2yMeshes; /* list of ymesh cards */

View File

@ -122,6 +122,9 @@ typedef struct sNUMOSmodel { /* model structure for a numerical device */
struct sNUMOSmodel *NUMOSnextModel; /* pointer to next model in list */
NUMOSinstance *NUMOSinstances;/* pointer to list of instances */
IFuid NUMOSmodName; /* pointer to string naming this model */
/* --- end of generic struct GENmodel --- */
/* Everything below here is numerical-device-specific */
MESHcard *NUMOSxMeshes; /* list of xmesh cards */
MESHcard *NUMOSyMeshes; /* list of ymesh cards */

View File

@ -96,6 +96,8 @@ typedef struct sRESmodel { /* model structure for a resistor */
* model */
IFuid RESmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double REStnom; /* temperature at which resistance measured */
double REStempCoeff1; /* first temperature coefficient of resistors */
double REStempCoeff2; /* second temperature coefficient of resistors */

View File

@ -422,6 +422,9 @@ typedef struct sSOI3model { /* model structure for an SOI3 MOSFET */
SOI3instance * SOI3instances; /* pointer to list of instances
* that have this model */
IFuid SOI3modName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
int SOI3type; /* device type : 1 = nsoi, -1 = psoi */
double SOI3tnom; /* temperature at which parameters measured */
double SOI3latDiff;

View File

@ -63,6 +63,8 @@ typedef struct sSWmodel { /* model structure for a switch */
* model */
IFuid SWmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double SWonResistance; /* switch "on" resistance */
double SWoffResistance; /* switch "off" resistance */
double SWvThreshold; /* switching threshold voltage */

View File

@ -92,6 +92,9 @@ typedef struct sTRAmodel { /* model structure for a transmission lines */
TRAinstance * TRAinstances; /* pointer to list of instances that have this
* model */
IFuid TRAmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} TRAmodel;
/* device parameters */

View File

@ -62,6 +62,8 @@ typedef struct sTXLmodel { /* model structure for a txl */
* model */
IFuid TXLmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double R;
double L;
double G;

View File

@ -44,6 +44,8 @@ typedef struct sURCmodel { /* model structure for a resistor */
* model */
IFuid URCmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
double URCk; /* propagation constant for URC */
double URCfmax; /* max frequence of interest */
double URCrPerL; /* resistance per unit length */

View File

@ -357,6 +357,9 @@ typedef struct sVBICmodel { /* model structure for a vbic */
this model */
IFuid VBICmodName; /* pointer to character string naming
this model */
/* --- end of generic struct GENmodel --- */
int VBICtype;
double VBICtnom;

View File

@ -61,6 +61,9 @@ typedef struct sVCCSmodel { /* model structure for a source */
VCCSinstance * VCCSinstances; /* pointer to list of instances
* that have this model */
IFuid VCCSmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} VCCSmodel;
/* device parameters */

View File

@ -65,6 +65,9 @@ typedef struct sVCVSmodel { /* model structure for a source */
VCVSinstance * VCVSinstances; /* pointer to list of instances
* that have this model */
IFuid VCVSmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} VCVSmodel;
/* device parameters */

View File

@ -87,6 +87,9 @@ typedef struct sVSRCmodel {
VSRCinstance * VSRCinstances; /* pointer to list of instances
* that have this model */
IFuid VSRCmodName; /* pointer to character string naming this model */
/* --- end of generic struct GENmodel --- */
} VSRCmodel;
/* source function types (shared with current sources) */