From 5b503479df7e451ff6d83f4ed31d145c196741b0 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 20 Oct 2023 12:08:48 +0800 Subject: [PATCH] topo_epin_cmp() --- ses_step_topo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ses_step_topo.c b/ses_step_topo.c index d4700dc..66e9c57 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -264,6 +264,12 @@ static int topo_epin_cmp(const void* v0, const void* v1, void* arg) ScfEcomponent* c0 = f->components[p0[0]]; ScfEcomponent* c1 = f->components[p1[0]]; + if (SCF_EDA_NPN == c0->type && SCF_EDA_NPN_C == p0[1]) + return -1; + + if (SCF_EDA_NPN == c1->type && SCF_EDA_NPN_C == p1[1]) + return 1; + if (SCF_EDA_Diode == c0->type || (SCF_EDA_NPN == c0->type && SCF_EDA_NPN_B == p0[1])) return -1; -- 2.25.1