fix reverse recovery model for pch vdmos
This commit is contained in:
parent
e590b456a8
commit
6a912f081e
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue