From 2bfeaba7ad9370bff142129618d803e86bf2a5ae Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sun, 16 Jul 2023 15:20:52 +0800 Subject: [PATCH] tmp --- ses_layout.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 85b416f..b4853bb 100644 --- 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); -- 2.25.1