projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ed2d47
)
tmp
author
yu.dongliang
<18588496441@163.com>
Mon, 17 Jul 2023 14:24:27 +0000
(22:24 +0800)
committer
yu.dongliang
<18588496441@163.com>
Mon, 17 Jul 2023 14:24:27 +0000
(22:24 +0800)
ses_layout.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_layout.c
b/ses_layout.c
index 7b4c5b7ba73927959bf5d999391bf3aa9ab545ca..c1f8d1efbe44ad7db4000df0bf6a53042605c05f 100644
(file)
--- a/
ses_layout.c
+++ b/
ses_layout.c
@@
-653,17
+653,17
@@
next:
p0->x -= mx - d;
- cx += p0->x;
- cy += p0->y;
+ if (j < 2) {
+ cx += p0->x;
+ cy += p0->y;
+ }
}
- c0->x = cx /
c0->n_pins
;
- c0->y = cy /
c0->n_pins
;
+ c0->x = cx /
2
;
+ c0->y = cy /
2
;
- if (2 == c0->n_pins) {
- c0->pins[0]->x = c0->x;
- c0->pins[1]->x = c0->x;
- }
+ c0->pins[0]->x = c0->x;
+ c0->pins[1]->x = c0->x;
}
for (i = 0; i < f->n_elines; i++) {