From 6f2712976c6b629fdb99cb1dc0cd246c6e0804ff Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 17 Jul 2023 22:24:27 +0800 Subject: [PATCH] tmp --- ses_layout.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 7b4c5b7..c1f8d1e 100644 --- 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++) { -- 2.25.1