el->c_pins = el->n_pins
authoryu.dongliang <18588496441@163.com>
Sat, 22 Jul 2023 05:13:03 +0000 (13:13 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 22 Jul 2023 05:13:03 +0000 (13:13 +0800)
ses_layout.c

index 57fa7584fed305247c64e158dfac1afcdc886e06..461d70934543c84bb1b3b82462283b21c2c2c0fe 100644 (file)
@@ -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;
 }