From 77857b562e40ca6046f414d5077cd9b4440a4bc7 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 13 Jul 2023 15:59:01 +0800 Subject: [PATCH] tmp --- ses_layout.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index fd1c468..cbed9b7 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -232,13 +232,6 @@ int ses_lines_same_components(ScfEfunction* f) qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp); - for (i = 0; i < f->n_elines; i++) { - el0 = f->elines[i]; - - scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", i, el0->id, el0->n_conns, el0->n_pins, el0->flags); - } - printf("\n\n"); - if (f->n_elines <= 2) return 0; @@ -339,12 +332,12 @@ int ses_lines_same_components(ScfEfunction* f) el0->n_lines = 0; - scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", i, el0->id, el0->n_conns, el0->n_pins, el0->flags); + scf_loge("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\n", j, ec->lid, ec->n_cids); + scf_logi("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]); } printf("\n"); } @@ -377,7 +370,7 @@ int __ses_layout_function2(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d l = malloc(sizeof(ScfLine)); if (!l) return -ENOMEM; - +#if 0 if ((SCF_EDA_PIN_NEG | SCF_EDA_PIN_POS) & el->flags) l->x0 = bx; @@ -385,7 +378,8 @@ int __ses_layout_function2(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d l->x0 = bx + d; else l->x0 = bx + 1 * d; - +#endif + l->x0 = bx; l->y0 = by + (n + j) * d; l->y1 = l->y0; -- 2.25.1