From 87ea9d65ba5b4ab2ff26da76e60b9f7b9918b162 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 19 Oct 2023 21:26:31 +0800 Subject: [PATCH] __ses_path_va_transistor() --- ses_step_va_transistor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ses_step_va_transistor.c b/ses_step_va_transistor.c index 57b7912..2c4ec99 100644 --- a/ses_step_va_transistor.c +++ b/ses_step_va_transistor.c @@ -24,7 +24,9 @@ void __ses_path_dr_transistor(ScfEfunction* f, ses_path_t* path, int i, int j) static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) { + ses_path_t* parent = path->parent; ses_path_t* child; + ScfEcomponent* c; ScfEcomponent* B; ScfEline* el; @@ -46,6 +48,11 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) Bp = B->pins[SCF_EDA_Battery_POS]; Bn = B->pins[SCF_EDA_Battery_NEG]; + if (path->parent) { + Bp = parent->pins->data[0]; + Bn = parent->pins->data[parent->pins->size - 1]; + } + p0 = path->pins->data[0]; p1 = path->pins->data[path->pins->size - 1]; -- 2.25.1