projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64affd3
)
topo_epin_cmp()
author
yu.dongliang
<18588496441@163.com>
Fri, 20 Oct 2023 04:08:48 +0000
(12:08 +0800)
committer
yu.dongliang
<18588496441@163.com>
Fri, 20 Oct 2023 04:08:48 +0000
(12:08 +0800)
ses_step_topo.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_step_topo.c
b/ses_step_topo.c
index d4700dcbc88ded5b21ad2de1aa271632a6982ba7..66e9c57669940d7614488c17455a2234f23ad1de 100644
(file)
--- 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;