projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d2af7
)
ses_lines_same_components()
author
yu.dongliang
<18588496441@163.com>
Mon, 30 Oct 2023 13:59:37 +0000
(21:59 +0800)
committer
yu.dongliang
<18588496441@163.com>
Mon, 30 Oct 2023 13:59:37 +0000
(21:59 +0800)
ses_layout.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_layout.c
b/ses_layout.c
index c9d2b6b15cdb5c6d2fcac49e286319d3c4ff5702..b0f4c9a6dc751f7ee1924159f5435d1b287875f3 100644
(file)
--- a/
ses_layout.c
+++ b/
ses_layout.c
@@
-430,12
+430,16
@@
int ses_lines_same_components(ScfEfunction* f)
N_PINS = el0->n_pins;
}
- for (n = 0; n < 5; n++) {
+ scf_loge("N_PINS: %ld\n", N_PINS);
+
+ N_PINS = N_PINS < 8 ? 8 : N_PINS;
+
+ for (n = 0; n < N_PINS / 2 - 2; n++) {
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
- if (el0->n_pins >
4
)
+ if (el0->n_pins >
N_PINS / 2 - n
)
continue;
for (j = i + 1; j < f->n_elines; j++)
@@
-487,8
+491,6
@@
int ses_lines_same_components(ScfEfunction* f)
}
// printf("\n");
}
-
- scf_loge("N_PINS: %ld\n", N_PINS);
#endif
return 0;