fix reverse recovery model for pch vdmos

This commit is contained in:
dwarning 2026-03-22 16:05:39 +01:00
parent e590b456a8
commit 6a912f081e
2 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ VDMOSask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
case VDMOS_QDIO:
value->rValue = *(ckt->CKTstate0+here->VDIOcapCharge);
if ((here->VDIOqpNode > 0) && (here->VDIOtTransitTime!=0))
value->rValue += *(ckt->CKTstate0 + here->VDIOsrcapCharge);
value->rValue += here->VDIOqpGain * *(ckt->CKTstate0 + here->VDIOsrcapCharge);
return(OK);
case VDMOS_CG :
if (ckt->CKTcurrentAnalysis & DOING_AC) {

View File

@ -767,7 +767,7 @@ bypass:
#endif /* PREDICTOR */
vd = model->VDMOStype * (*(ckt->CKTrhsOld + here->VDIOposPrimeNode) -
*(ckt->CKTrhsOld + here->VDMOSdNode));
vqp = *(ckt->CKTrhsOld+here->VDIOqpNode);
vqp = model->VDMOStype * *(ckt->CKTrhsOld+here->VDIOqpNode);
#ifndef PREDICTOR
}
#endif /* PREDICTOR */
@ -1031,7 +1031,7 @@ load:
double dcrrdvd = fac*gdres;
double ceqrr = -fac*cdres + cqcsr + dcrrdvd*vd - gqcsr*vqp;
double grr = 1/model->VDIOsoftRevRecParam;
*(ckt->CKTrhs + here->VDIOqpNode) -= ceqrr;
*(ckt->CKTrhs + here->VDIOqpNode) -= model->VDMOStype * ceqrr;
*(here->VDIOqpQpPtr) += grr + gqcsr;
*(here->VDIOqpPosPrimePtr) += -dcrrdvd;
*(here->VDIOqpNegPtr) += dcrrdvd;