Use better name for some parameters, cosmetics
This commit is contained in:
parent
4ac7a641ec
commit
bfec119e5b
|
|
@ -319,7 +319,6 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
|
||||||
/* bulk diode */
|
/* bulk diode */
|
||||||
double VDIOjunctionCap; /* input - use tCj */
|
double VDIOjunctionCap; /* input - use tCj */
|
||||||
double VDIOjunctionPot; /* input - use tBulkPot */
|
double VDIOjunctionPot; /* input - use tBulkPot */
|
||||||
double VDMOSbulkJctBotGradingCoeff;
|
|
||||||
double VDIOdepletionCapCoeff;
|
double VDIOdepletionCapCoeff;
|
||||||
double VDIOjctSatCur; /* input - use tSatCur */
|
double VDIOjctSatCur; /* input - use tSatCur */
|
||||||
double VDMOSDbv;
|
double VDMOSDbv;
|
||||||
|
|
@ -335,6 +334,7 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
|
||||||
double VDIOtranTimeTemp2;
|
double VDIOtranTimeTemp2;
|
||||||
double VDMOSDeg;
|
double VDMOSDeg;
|
||||||
double VDMOSDxti;
|
double VDMOSDxti;
|
||||||
|
double VDIOgradCoeff;
|
||||||
double VDIOgradCoeffTemp1;
|
double VDIOgradCoeffTemp1;
|
||||||
double VDIOgradCoeffTemp2;
|
double VDIOgradCoeffTemp2;
|
||||||
|
|
||||||
|
|
@ -345,7 +345,7 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
|
||||||
unsigned VDMOSgateResistanceGiven :1;
|
unsigned VDMOSgateResistanceGiven :1;
|
||||||
unsigned VDMOStransconductanceGiven :1;
|
unsigned VDMOStransconductanceGiven :1;
|
||||||
unsigned VDMOSvt0Given :1;
|
unsigned VDMOSvt0Given :1;
|
||||||
unsigned VDMOSbulkJctBotGradingCoeffGiven :1;
|
unsigned VDIOgradCoeffGiven :1;
|
||||||
unsigned VDIOdepletionCapCoeffGiven :1;
|
unsigned VDIOdepletionCapCoeffGiven :1;
|
||||||
unsigned VDMOSphiGiven :1;
|
unsigned VDMOSphiGiven :1;
|
||||||
unsigned VDMOSlambdaGiven :1;
|
unsigned VDMOSlambdaGiven :1;
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ VDMOSmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
|
||||||
value->rValue = model->VDIOjunctionCap;
|
value->rValue = model->VDIOjunctionCap;
|
||||||
return(OK);
|
return(OK);
|
||||||
case VDMOS_MOD_MJ:
|
case VDMOS_MOD_MJ:
|
||||||
value->rValue = model->VDMOSbulkJctBotGradingCoeff;
|
value->rValue = model->VDIOgradCoeff;
|
||||||
return(OK);
|
return(OK);
|
||||||
case VDMOS_MOD_BV:
|
case VDMOS_MOD_BV:
|
||||||
value->rValue = model->VDMOSDbv;
|
value->rValue = model->VDMOSDbv;
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@ VDMOSmParam(int param, IFvalue *value, GENmodel *inModel)
|
||||||
model->VDIOjunctionCapGiven = TRUE;
|
model->VDIOjunctionCapGiven = TRUE;
|
||||||
break;
|
break;
|
||||||
case VDMOS_MOD_MJ:
|
case VDMOS_MOD_MJ:
|
||||||
model->VDMOSbulkJctBotGradingCoeff = value->rValue;
|
model->VDIOgradCoeff = value->rValue;
|
||||||
model->VDMOSbulkJctBotGradingCoeffGiven = TRUE;
|
model->VDIOgradCoeffGiven = TRUE;
|
||||||
model->VDIOgradCoeffTemp1 = 0;
|
model->VDIOgradCoeffTemp1 = 0;
|
||||||
model->VDIOgradCoeffTemp2 = 0;
|
model->VDIOgradCoeffTemp2 = 0;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
|
||||||
if (!model->VDIOjunctionPotGiven) {
|
if (!model->VDIOjunctionPotGiven) {
|
||||||
model->VDIOjunctionPot = .8;
|
model->VDIOjunctionPot = .8;
|
||||||
}
|
}
|
||||||
if (!model->VDMOSbulkJctBotGradingCoeffGiven) {
|
if (!model->VDIOgradCoeffGiven) {
|
||||||
model->VDMOSbulkJctBotGradingCoeff = .5;
|
model->VDIOgradCoeff = .5;
|
||||||
}
|
}
|
||||||
if (!model->VDIOdepletionCapCoeffGiven) {
|
if (!model->VDIOdepletionCapCoeffGiven) {
|
||||||
model->VDIOdepletionCapCoeff = .5;
|
model->VDIOdepletionCapCoeff = .5;
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ VDMOStemp(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
/* Junction grading temperature adjust */
|
/* Junction grading temperature adjust */
|
||||||
factor = 1.0 + (model->VDIOgradCoeffTemp1 * dt)
|
factor = 1.0 + (model->VDIOgradCoeffTemp1 * dt)
|
||||||
+ (model->VDIOgradCoeffTemp2 * dt * dt);
|
+ (model->VDIOgradCoeffTemp2 * dt * dt);
|
||||||
here->VDIOtGradingCoeff = model->VDMOSbulkJctBotGradingCoeff * factor;
|
here->VDIOtGradingCoeff = model->VDIOgradCoeff * factor;
|
||||||
|
|
||||||
vt = CONSTKoverQ * here->VDMOStemp;
|
vt = CONSTKoverQ * here->VDMOStemp;
|
||||||
/* this part gets really ugly - I won't even try to
|
/* this part gets really ugly - I won't even try to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue