add device informations

This commit is contained in:
dwarning 2025-09-22 14:30:10 +02:00
parent 8caa85f6f0
commit 1adcec9c7d
3 changed files with 6 additions and 1 deletions

View File

@ -64,13 +64,16 @@ DIOask (CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
case DIO_CURRENT:
value->rValue = *(ckt->CKTstate0+here->DIOcurrent);
if (here->DIOqpNode > 0)
value->rValue += *(ckt->CKTstate0+here->DIOcqcsr);
value->rValue += *(ckt->CKTstate0+here->DIOcqcsr) *
(1 - here->DIOsoftRevRecParam) / here->DIOtTransitTime;
return(OK);
case DIO_CAP:
value->rValue = here->DIOcap;
return(OK);
case DIO_CHARGE:
value->rValue = *(ckt->CKTstate0+here->DIOcapCharge);
if (here->DIOqpNode > 0)
value->rValue += *(ckt->CKTstate0+here->DIOqp);
return(OK);
case DIO_CAPCUR:
value->rValue = *(ckt->CKTstate0+here->DIOcapCurrent);

View File

@ -151,6 +151,7 @@ typedef struct sDIOinstance {
double DIOjunctionSWCap; /* geometry adjusted junction sidewall capacitance */
double DIOtRecSatCur; /* temperature adjusted recombination saturation current */
double DIOtRecSatCur_dT; /* temperature adjusted recombination saturation current */
double DIOsoftRevRecParam; /* Soft reverse recovery parameter */
double DIOdIth_dVrs;
double DIOdIth_dVdio;

View File

@ -377,6 +377,7 @@ DIOsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
if(error) return(error);
here->DIOqpNode = tmp->number;
}
here->DIOsoftRevRecParam = model->DIOsoftRevRecParam;
} else {
here->DIOqpNode = 0;
}