From: yu.dongliang <18588496441@163.com> Date: Sat, 22 Jul 2023 05:13:03 +0000 (+0800) Subject: el->c_pins = el->n_pins X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=2da1877e6ae027cf864753dab27e7e679acafae2;p=ses.git el->c_pins = el->n_pins --- 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; }