From d1d5e6bd6b27e2bbd5f94b72878955d372e0a21a Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 30 Oct 2023 21:05:31 +0800 Subject: [PATCH] __ses_xchg_npn_ce() --- ses_layout.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 05d2933..000f5f3 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -478,14 +478,14 @@ int ses_lines_same_components(ScfEfunction* f) el0->n_lines = 0; - scf_logw("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags); + scf_logd("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags); for (j = 0; j < el0->n_conns; j++) { ec = el0->conns[j]; - scf_logi("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]); + scf_logd("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]); } - printf("\n"); +// printf("\n"); } scf_loge("N_PINS: %ld\n", N_PINS); @@ -1032,6 +1032,12 @@ static void __ses_xchg_npn_ce(ScfEfunction* f, int d) if ((c->x < 0 && pc->x > pe->x) || (c->x > 0 && pc->x < pe->x)) SCF_XCHG(pc->x, pe->x); + + } else if ((pc->y > pb->y && pb->y > pe->y) || (pc->y < pb->y && pb->y < pe->y)) { + + if ((c->x > 0 && pc->x < pb->x) || (c->x < 0 && pc->x > pb->x)) { + SCF_XCHG(pc->x, pe->x); + } } } } -- 2.25.1