projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce58381
)
tmp
author
yu.dongliang
<18588496441@163.com>
Sun, 16 Jul 2023 07:20:52 +0000
(15:20 +0800)
committer
yu.dongliang
<18588496441@163.com>
Sun, 16 Jul 2023 07:20:52 +0000
(15:20 +0800)
ses_layout.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_layout.c
b/ses_layout.c
index 85b416fbf3d31186d7316622304d7f1cc919e9d0..b4853bbde52b68b12db453fad12062b2f2a57d91 100644
(file)
--- a/
ses_layout.c
+++ b/
ses_layout.c
@@
-542,7
+542,7
@@
int ses_layout_function(ScfEfunction* f, int d)
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
- el0->lines[0]->x1 -= mx;
+ el0->lines[0]->x1 -= mx
- d
;
for (m = 0; m + 3 < el0->n_pins; m += 2) {
@@
-588,7
+588,7
@@
int ses_layout_function(ScfEfunction* f, int d)
for (j = 0; j < c0->n_pins; j++) {
p0 = c0->pins[j];
- p0->x -= mx;
+ p0->x -= mx
- d
;
cx += p0->x;
cy += p0->y;
@@
-598,8
+598,7
@@
int ses_layout_function(ScfEfunction* f, int d)
c0->y = cy / c0->n_pins;
}
- f->w -= mx;
- f->w += d;
+ f->w -= mx - d * 2;
f->h += d;
scf_loge("f->x: %d, y: %d, w: %d, h: %d, mx: %d\n", f->x, f->y, f->w, f->h, mx);