From: yu.dongliang <18588496441@163.com> Date: Fri, 20 Oct 2023 04:08:48 +0000 (+0800) Subject: topo_epin_cmp() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=5b503479df7e451ff6d83f4ed31d145c196741b0;p=ses.git topo_epin_cmp() --- 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;