count level=3 model poly and metal capacitance in charge calculation normal operation

This commit is contained in:
dwarning 2025-09-23 18:19:01 +02:00
parent 6d1a54523f
commit 94871f92a3
2 changed files with 1 additions and 2 deletions

View File

@ -79,7 +79,6 @@ DIOacLoad(GENmodel *inModel, CKTcircuit *ckt)
xceq = *(ckt->CKTstate0 + here->DIOsrcapCurrent) * ckt->CKTomega;
*(here->DIOqpQpPtr + 1) += xceq;
}
}
}

View File

@ -484,7 +484,7 @@ next1:
/* no soft recovery model (default model allows TT=0, removes diffusion charge) */
diffcharge = here->DIOtTransitTime*cd;
*(ckt->CKTstate0 + here->DIOcapCharge) =
diffcharge + deplcharge + deplchargeSW;
diffcharge + deplcharge + deplchargeSW + (here->DIOcmetal + here->DIOcpoly)*vd;
diffcap = here->DIOtTransitTime*gd;
capd = diffcap + deplcap + deplcapSW + here->DIOcmetal + here->DIOcpoly;