__ses_layout_path2()
authoryu.dongliang <18588496441@163.com>
Wed, 8 Nov 2023 05:28:03 +0000 (13:28 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 8 Nov 2023 05:28:03 +0000 (13:28 +0800)
ses_layout.c

index 54560323b7d946f8785fd0c23ce872817edb4475..1254be62c6100c063ac4f43e9a726be610f77f5a 100644 (file)
@@ -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");
 }