From: yu.dongliang <18588496441@163.com> Date: Thu, 19 Oct 2023 13:26:31 +0000 (+0800) Subject: __ses_path_va_transistor() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=87ea9d65ba5b4ab2ff26da76e60b9f7b9918b162;p=ses.git __ses_path_va_transistor() --- 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];