From: yu.dongliang <18588496441@163.com> Date: Sun, 10 Sep 2023 13:10:29 +0000 (+0800) Subject: __ses_path_jr() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=88646c080b756e258728d8a927798c264a0e46be;p=ses.git __ses_path_jr() --- diff --git a/ses_step_jr.c b/ses_step_jr.c index d7d5866..b8587d1 100644 --- a/ses_step_jr.c +++ b/ses_step_jr.c @@ -97,8 +97,17 @@ static int __ses_path_jr(ScfEfunction* f, ses_path_t* path) double _r = child->r / R; double _jr = -child->jr / R; - r = p1->pr - p0->pr; - jr = p1->jpr - p0->jpr; + c = f->components[p1->cid]; + + if (SCF_EDA_Transistor == c->type && SCF_EDA_Transistor_E == p1->id) { + p = path->pins->data[j - 1]; + + r = p->pr - p0->pr; + jr = p->jpr - p0->jpr; + } else { + r = p1->pr - p0->pr; + jr = p1->jpr - p0->jpr; + } R = r * r + jr * jr; r = r / R;