56 *(ckt->CKTrhsOld+here->
B1bNode) -
59 *(ckt->CKTrhsOld+here->
B1gNode) -
66 vgdo = *(ckt->CKTstate0 + here->B1vgs) -
67 *(ckt->CKTstate0 + here->B1vds);
68 delvbs = vbs - *(ckt->CKTstate0 + here->B1vbs);
69 delvbd = vbd - *(ckt->CKTstate0 + here->B1vbd);
70 delvgs = vgs - *(ckt->CKTstate0 + here->B1vgs);
71 delvds = vds - *(ckt->CKTstate0 + here->B1vds);
76 *(ckt->CKTstate0 + here->B1cd) -
77 *(ckt->CKTstate0 + here->B1gbd) * delvbd +
78 *(ckt->CKTstate0 + here->B1gmbs) * delvbs +
79 *(ckt->CKTstate0 + here->B1gm) * delvgs +
80 *(ckt->CKTstate0 + here->B1gds) * delvds ;
83 *(ckt->CKTstate0 + here->B1cd) -
84 ( *(ckt->CKTstate0 + here->B1gbd) -
85 *(ckt->CKTstate0 + here->B1gmbs)) * delvbd -
86 *(ckt->CKTstate0 + here->B1gm) * delvgd +
87 *(ckt->CKTstate0 + here->B1gds) * delvds;
90 *(ckt->CKTstate0 + here->B1cbs) +
91 *(ckt->CKTstate0 + here->B1cbd) +
92 *(ckt->CKTstate0 + here->B1gbd) * delvbd +
93 *(ckt->CKTstate0 + here->B1gbs) * delvbs ;
95 cd = *(ckt->CKTstate0 + here->B1cd);
96 cbs = *(ckt->CKTstate0 + here->B1cbs);
97 cbd = *(ckt->CKTstate0 + here->B1cbd);
103 tol=ckt->CKTreltol*
MAX(
FABS(cdhat),
FABS(cd))+ckt->CKTabstol;
104 if (
FABS(cdhat-cd) >= tol) {
111 if (
FABS(cbhat-(cbs+cbd)) > tol) {
int B1convTest(GENmodel *inModel, CKTcircuit *ckt)
struct sBSIM1model * B1nextModel
struct sBSIM1instance * B1nextInstance