From c11715404fd1293750d46aad499e23f4200e547e Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Wed, 8 Nov 2023 13:28:03 +0800 Subject: [PATCH] __ses_layout_path2() --- ses_layout.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 5456032..1254be6 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -577,7 +577,7 @@ static void __ses_layout_path2(ScfEfunction* f, ses_path_t* path, ses_path_t* ba scf_logw("path: %d, __n: %ld, l%ld\n", path->index, __n, f->elines[__n]->id); - for (j = path->pins->size - 1; j > 0; j -= 2) { + for (j = path->pins->size - 1; j >= 0; j--) { p = path->pins->data[j]; scf_logi("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id); @@ -615,41 +615,6 @@ static void __ses_layout_path2(ScfEfunction* f, ses_path_t* path, ses_path_t* ba eline_mov_before(f, __n, n); } } - - p = path->pins->data[0]; - - scf_logi("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id); - - for (k = base->pins->size - 1; k >= 0; k--) { - bp = base->pins->data[k]; - - if (p->lid == bp->lid) { - __n = __ses_find_eline_index(f, bp->lid); - - scf_logw("__n: %ld, l%ld\n", __n, f->elines[__n]->id); - break; - } - } - - if (k < 0) { - n = __ses_find_eline_index(f, p->lid); - - if (SCF_EDA_NPN == p->cid && SCF_EDA_NPN_B == p->id) { - c = f->components[p->cid]; - pc = c->pins[SCF_EDA_NPN_C]; - pe = c->pins[SCF_EDA_NPN_E]; - - intptr_t ic = __ses_find_eline_index(f, pc->lid); - intptr_t ie = __ses_find_eline_index(f, pe->lid); - if (ic > ie) - __n = ic; - else - __n = ie; - scf_loge("c%ldp%ld, ic: %ld, ie: %ld\n", p->cid, p->id, ic, ie); - } - - eline_mov_before(f, __n, n); - } printf("\n"); } -- 2.25.1