bring current summation inline with rhs
This commit is contained in:
parent
d9247cc322
commit
d2f9da64bc
|
|
@ -144,14 +144,14 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
|
|
||||||
if (here->VDMOSmode >= 0) {
|
if (here->VDMOSmode >= 0) {
|
||||||
cdhat =
|
cdhat =
|
||||||
here->VDMOScd -
|
here->VDMOScd
|
||||||
here->VDMOSgm * delvgs +
|
+ here->VDMOSgm * delvgs
|
||||||
here->VDMOSgds * delvds;
|
+ here->VDMOSgds * delvds;
|
||||||
} else {
|
} else {
|
||||||
cdhat =
|
cdhat =
|
||||||
here->VDMOScd -
|
here->VDMOScd
|
||||||
here->VDMOSgm * delvgd +
|
- here->VDMOSgm * delvgd
|
||||||
here->VDMOSgds * delvds;
|
+ here->VDMOSgds * delvds;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NOBYPASS
|
#ifndef NOBYPASS
|
||||||
|
|
@ -507,7 +507,7 @@ bypass :
|
||||||
*(ckt->CKTrhs + here->VDMOSgNodePrime) -=
|
*(ckt->CKTrhs + here->VDMOSgNodePrime) -=
|
||||||
(model->VDMOStype * (ceqgs + ceqgd));
|
(model->VDMOStype * (ceqgs + ceqgd));
|
||||||
*(ckt->CKTrhs + here->VDMOSdNodePrime) +=
|
*(ckt->CKTrhs + here->VDMOSdNodePrime) +=
|
||||||
(- cdreq + model->VDMOStype * ceqgd);
|
(-cdreq + model->VDMOStype * ceqgd);
|
||||||
*(ckt->CKTrhs + here->VDMOSsNodePrime) +=
|
*(ckt->CKTrhs + here->VDMOSsNodePrime) +=
|
||||||
cdreq + model->VDMOStype * ceqgs;
|
cdreq + model->VDMOStype * ceqgs;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue