p->dr -= p->r;
p->jdr -= p->jr;
- scf_logw("c%ldp%ld, v: %lg, r: %lg, a: %lg, dr: %lg, n_diodes: %d\n", p->cid, p->id, v, p->r, a, p->dr, n_diodes);
-
p1 = c->pins[SCF_EDA_NPN_C];
p1->a = p1->hfe * a;
p1->ja = p1->hfe * ja;
p1->aconst = 1;
+ scf_logw("c%ldp%ld, v: %lg, r: %lg, a: %lg, dr: %lg, n_diodes: %d, c%ldp%ld->a: %lg\n",
+ p->cid, p->id, v, p->r, a, p->dr, n_diodes, p1->cid, p1->id, p1->a);
+
p1 = c->pins[SCF_EDA_NPN_E];
p1->a = (1 + p1->hfe) * a;
p1->ja = (1 + p1->hfe) * ja;