tmp
authoryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 07:59:01 +0000 (15:59 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 07:59:01 +0000 (15:59 +0800)
ses_layout.c

index fd1c468d55ba098dcea56a5651a9ca94014623ee..cbed9b72e45ddcb9a650ad068f8251f21c9b57bd 100644 (file)
@@ -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;