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);
104 if (
FABS(cdhat-cd) >= tol) {
111 if (
FABS(cbhat-(cbs+cbd)) > tol) {
struct sBSIM2instance * B2nextInstance
GENinstance * CKTtroubleElt
struct sBSIM2model * B2nextModel