ScfEcomponent* c0 = f->components[p0->cid];
ScfEcomponent* c1 = f->components[p1->cid];
- if (SCF_EDA_Transistor == c1->type && SCF_EDA_Transistor_E == p1->id && cp1 != p1)
- p1 = path->pins->data[j - 1];
+ if (SCF_EDA_Transistor == c1->type) {
+
+ if (SCF_EDA_Transistor_E == p1->id) {
+ if (cp1 != p1)
+ p1 = path->pins->data[j - 1];
+ } else
+ p1 = path->pins->data[j - 1];
+ }
if (SCF_EDA_Transistor == c0->type) {
if (i > 0) {
__ses_path_pr(f, path, i, j, NULL, &r, &jr);
+ scf_logd("c%ldp%ld--c%ldp%ld, r: %lg\n", p0->cid, p0->id, p1->cid, p1->id, r);
+
int k;
for (k = 0; k < path->childs->size; k++) {
child = path->childs->data[k];
ses_ui_r(&p->dr, &p->jdr, v, jv, p->a, p->ja);
- scf_logd("c%ldp%ld, v: %lg, r: %lg, p->a: %lg, p->dr: %lg\n", p->cid, p->id, v, r, p->a, p->dr);
+ scf_logw("c%ldp%ld, v: %lg, r: %lg, p1->sr: %lg, p0->sr: %lg, p->a: %lg, p->dr: %lg\n",
+ p->cid, p->id, v, r, p1->sr, p0->sr, p->a, p->dr);
p->dr -= r;
p->jdr -= jr;
p0->ja = el->ja;
}
+ scf_logi("i: %d, c%ldp%ld-c%ldp%ld, pc->v: %lg, pc->a: %lg, p->a: %lg\n",
+ i, p0->cid, p0->id, pc->cid, pc->id, pc->v, pc->a, p->a);
+
__ses_path_dr(p, p1, pc);
scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg, pc->v: %lg, pc->a: %lg, pr: %lg, sr: %lg, pc->dr: %lg\n",