From 88646c080b756e258728d8a927798c264a0e46be Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sun, 10 Sep 2023 21:10:29 +0800 Subject: [PATCH] __ses_path_jr() --- ses_step_jr.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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; -- 2.25.1