topo_epin_cmp()
authoryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 04:08:48 +0000 (12:08 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 04:08:48 +0000 (12:08 +0800)
ses_step_topo.c

index d4700dcbc88ded5b21ad2de1aa271632a6982ba7..66e9c57669940d7614488c17455a2234f23ad1de 100644 (file)
@@ -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;