p1 = path->pins->data[j - 1];
} else if (j > 0) {
- p1 = path->pins->data[j - 1];
- c1 = f->components[p1->cid];
-
- if (SCF_EDA_NPN == c1->type && SCF_EDA_NPN_E == p1->id) {
- p1 = path->pins->data[j];
- r1 = p1->r + p1->dr;
- jr1 = p1->jr + p1->jdr;
- }
+ r1 = p1->r + p1->dr;
+ jr1 = p1->jr + p1->jdr;
} else {
*r = 0;
*jr = 0;
*jr = p1->jsr;
}
} else {
- *r = p1->sr - p0->sr;
- *jr = p1->jsr - p0->jsr;
+ *r = p1->sr - r1 - p0->sr;
+ *jr = p1->jsr - jr1 - p0->jsr;
}
scf_logd("c%ldp%ld-c%ldp%ld, r: %lg, p0->sr: %lg, p0->pr: %lg, p1->sr: %lg, p1->pr: %lg\n",