From: yu.dongliang <18588496441@163.com> Date: Sun, 16 Jul 2023 07:20:52 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=2bfeaba7ad9370bff142129618d803e86bf2a5ae;p=ses.git tmp --- 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);