tmp
authoryu.dongliang <18588496441@163.com>
Sun, 5 Nov 2023 08:16:29 +0000 (16:16 +0800)
committeryu.dongliang <18588496441@163.com>
Sun, 5 Nov 2023 08:16:29 +0000 (16:16 +0800)
ses_layout.c

index 572488fe0cdbf664825d440ecd1712159d0335ed..dab4a9ab93d2178228d06a3bb149fcc5e8101925 100644 (file)
@@ -999,6 +999,8 @@ static int __ses_de_cross(ScfEfunction* f, int d)
 
                qsort_r(el->pins, el->n_pins / 2, sizeof(uint64_t) * 2, epin_cmp_color, f);
 
+               el->lines[0]->x1 = el->lines[0]->x0 + d;
+
                for (j = 0; j + 1 < el->n_pins; j += 2) {
 
                        c  = f->components[el->pins[j]];
@@ -1009,6 +1011,8 @@ static int __ses_de_cross(ScfEfunction* f, int d)
 
                        while (el->n_lines <= k) {
 
+                               scf_logw("el->n_lines: %ld, k: %ld\n", el->n_lines, k);
+
                                l0 = el->lines[el->n_lines - 1];
 
                                l = malloc(sizeof(ScfLine));
@@ -1027,11 +1031,7 @@ static int __ses_de_cross(ScfEfunction* f, int d)
                        }
 
                        l     = el->lines[k];
-
-                       if (0 == m)
-                               p->x = l->x0 + d;
-                       else
-                               p->x = l->x1 + d;
+                       p->x  = l->x1 + d;
                        l->x1 = p->x;
                }
        }