Use better name for some parameters, cosmetics

This commit is contained in:
Holger Vogt 2018-04-07 17:58:38 +02:00 committed by rlar
parent 4ac7a641ec
commit bfec119e5b
5 changed files with 8 additions and 8 deletions

View File

@ -319,7 +319,6 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
/* bulk diode */
double VDIOjunctionCap; /* input - use tCj */
double VDIOjunctionPot; /* input - use tBulkPot */
double VDMOSbulkJctBotGradingCoeff;
double VDIOdepletionCapCoeff;
double VDIOjctSatCur; /* input - use tSatCur */
double VDMOSDbv;
@ -335,6 +334,7 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
double VDIOtranTimeTemp2;
double VDMOSDeg;
double VDMOSDxti;
double VDIOgradCoeff;
double VDIOgradCoeffTemp1;
double VDIOgradCoeffTemp2;
@ -345,7 +345,7 @@ typedef struct sVDMOSmodel { /* model structure for a resistor */
unsigned VDMOSgateResistanceGiven :1;
unsigned VDMOStransconductanceGiven :1;
unsigned VDMOSvt0Given :1;
unsigned VDMOSbulkJctBotGradingCoeffGiven :1;
unsigned VDIOgradCoeffGiven :1;
unsigned VDIOdepletionCapCoeffGiven :1;
unsigned VDMOSphiGiven :1;
unsigned VDMOSlambdaGiven :1;

View File

@ -81,7 +81,7 @@ VDMOSmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
value->rValue = model->VDIOjunctionCap;
return(OK);
case VDMOS_MOD_MJ:
value->rValue = model->VDMOSbulkJctBotGradingCoeff;
value->rValue = model->VDIOgradCoeff;
return(OK);
case VDMOS_MOD_BV:
value->rValue = model->VDMOSDbv;

View File

@ -66,8 +66,8 @@ VDMOSmParam(int param, IFvalue *value, GENmodel *inModel)
model->VDIOjunctionCapGiven = TRUE;
break;
case VDMOS_MOD_MJ:
model->VDMOSbulkJctBotGradingCoeff = value->rValue;
model->VDMOSbulkJctBotGradingCoeffGiven = TRUE;
model->VDIOgradCoeff = value->rValue;
model->VDIOgradCoeffGiven = TRUE;
model->VDIOgradCoeffTemp1 = 0;
model->VDIOgradCoeffTemp2 = 0;
break;

View File

@ -42,8 +42,8 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
if (!model->VDIOjunctionPotGiven) {
model->VDIOjunctionPot = .8;
}
if (!model->VDMOSbulkJctBotGradingCoeffGiven) {
model->VDMOSbulkJctBotGradingCoeff = .5;
if (!model->VDIOgradCoeffGiven) {
model->VDIOgradCoeff = .5;
}
if (!model->VDIOdepletionCapCoeffGiven) {
model->VDIOdepletionCapCoeff = .5;

View File

@ -179,7 +179,7 @@ VDMOStemp(GENmodel *inModel, CKTcircuit *ckt)
/* Junction grading temperature adjust */
factor = 1.0 + (model->VDIOgradCoeffTemp1 * dt)
+ (model->VDIOgradCoeffTemp2 * dt * dt);
here->VDIOtGradingCoeff = model->VDMOSbulkJctBotGradingCoeff * factor;
here->VDIOtGradingCoeff = model->VDIOgradCoeff * factor;
vt = CONSTKoverQ * here->VDMOStemp;
/* this part gets really ugly - I won't even try to