56 *(ckt->CKTrhsOld+here->
B2bNode) -
59 *(ckt->CKTrhsOld+here->
B2gNode) -
66 vgdo = *(ckt->CKTstate0 + here->B2vgs) -
67 *(ckt->CKTstate0 + here->B2vds);
68 delvbs = vbs - *(ckt->CKTstate0 + here->B2vbs);
69 delvbd = vbd - *(ckt->CKTstate0 + here->B2vbd);
70 delvgs = vgs - *(ckt->CKTstate0 + here->B2vgs);
71 delvds = vds - *(ckt->CKTstate0 + here->B2vds);
76 *(ckt->CKTstate0 + here->B2cd) -
77 *(ckt->CKTstate0 + here->B2gbd) * delvbd +
78 *(ckt->CKTstate0 + here->B2gmbs) * delvbs +
79 *(ckt->CKTstate0 + here->B2gm) * delvgs +
80 *(ckt->CKTstate0 + here->B2gds) * delvds ;
83 *(ckt->CKTstate0 + here->B2cd) -
84 ( *(ckt->CKTstate0 + here->B2gbd) -
85 *(ckt->CKTstate0 + here->B2gmbs)) * delvbd -
86 *(ckt->CKTstate0 + here->B2gm) * delvgd +
87 *(ckt->CKTstate0 + here->B2gds) * delvds;
90 *(ckt->CKTstate0 + here->B2cbs) +
91 *(ckt->CKTstate0 + here->B2cbd) +
92 *(ckt->CKTstate0 + here->B2gbd) * delvbd +
93 *(ckt->CKTstate0 + here->B2gbs) * delvbs ;
95 cd = *(ckt->CKTstate0 + here->B2cd);
96 cbs = *(ckt->CKTstate0 + here->B2cbs);
97 cbd = *(ckt->CKTstate0 + here->B2cbd);
103 tol=ckt->CKTreltol*
MAX(
FABS(cdhat),
FABS(cd))+ckt->CKTabstol;
104 if (
FABS(cdhat-cd) >= tol) {
111 if (
FABS(cbhat-(cbs+cbd)) > tol) {
struct sBSIM2instance * B2nextInstance
struct sBSIM2model * B2nextModel
int B2convTest(GENmodel *inModel, CKTcircuit *ckt)