From 8cb9ad4148356d26e0c085dbd309e57ab94f19ef Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 23 Oct 2023 13:39:51 +0800 Subject: [PATCH] __ses_path_split_v() --- ses_step_va.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ses_step_va.c b/ses_step_va.c index 70e6c19..1905e27 100644 --- a/ses_step_va.c +++ b/ses_step_va.c @@ -91,13 +91,15 @@ static int __ses_path_split_v(ScfEfunction* f, ses_path_t* path, ScfEpin* p0, in if (SCF_EDA_NPN == c->type) { - if (SCF_EDA_NPN_B == p->id || SCF_EDA_NPN_C == p->id) { + if (SCF_EDA_NPN_E != p->id) { - r = p->sr - (p->r + p->dr ) - p0->sr; - jr = p->jsr - (p->jr + p->jdr) - p0->jsr; - - scf_logi("c%ldp%ld-c%ldp%ld, p->sr: %lg, p->r: %lg, p->dr: %lg, p0->sr: %lg\n", - p0->cid, p0->id, p->cid, p->id, p->sr, p->r, p->dr, p0->sr); + if (p != p0) { + r = p->sr - (p->r + p->dr ) - p0->sr; + jr = p->jsr - (p->jr + p->jdr) - p0->jsr; + } else { + r = 0; + jr = 0; + } } else if (i >= 1) { p2 = path->pins->data[i - 1]; @@ -122,7 +124,7 @@ static int __ses_path_split_v(ScfEfunction* f, ses_path_t* path, ScfEpin* p0, in p->v = p0->v - v; p->jv = p0->jv - jv; - scf_logi("c%ldp%ld, c%ldp%ld, a: %lg, r: %lg, v: %lg\n", p0->cid, p0->id, p->cid, p->id, a, r, v); + scf_logd("c%ldp%ld, c%ldp%ld, a: %lg, r: %lg, v: %lg\n", p0->cid, p0->id, p->cid, p->id, a, r, v); return 0; } -- 2.25.1