From 2da1877e6ae027cf864753dab27e7e679acafae2 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 22 Jul 2023 13:13:03 +0800 Subject: [PATCH] el->c_pins = el->n_pins --- ses_layout.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 57fa758..461d709 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -118,6 +118,7 @@ int ses_pins_same_line(ScfEfunction* f) return -ENOMEM; p ->lid = el->id; + p ->c_lid = el->id; el->flags |= p->flags; goto next; } @@ -138,16 +139,19 @@ int ses_pins_same_line(ScfEfunction* f) return -ENOMEM; p ->lid = el->id; + p ->c_lid = el->id; el->flags |= p->flags; next: p = NULL; } } -#if 1 - for (i = 0; i < f->n_elines; i++) { - el = f->elines[i]; + for (i = 0; i < f->n_elines; i++) { + el = f->elines[i]; + + el->c_pins = el->n_pins; +#if 1 scf_logw("line i: %ld, %p, el->flags: %#lx\n", i, el, el->flags); for (j = 0; j + 1 < el->n_pins; j += 2) @@ -155,8 +159,9 @@ next: scf_logi("pin j: %ld, cid: %ld, pid: %ld\n", j, el->pins[j], el->pins[j + 1]); printf("\n"); - } #endif + } + return 0; } -- 2.25.1