tmp
authoryu.dongliang <18588496441@163.com>
Mon, 10 Jul 2023 14:10:03 +0000 (22:10 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 10 Jul 2023 14:10:03 +0000 (22:10 +0800)
ses_layout.c

index 6381934c30f9d44900893874d52524fd92da4033..0d50a4ce60752f3c230e8c67f851ff01a5eb28f1 100644 (file)
@@ -101,6 +101,7 @@ int ses_pins_same_line(ScfEfunction* f)
                                        else {
                                                if (scf_eline__add_pin(el, p->cid, p->id) < 0)
                                                        return -ENOMEM;
+                                               p->lid = el->id;
 
                                                goto next;
                                        }
@@ -119,6 +120,7 @@ int ses_pins_same_line(ScfEfunction* f)
 
                        if (scf_eline__add_pin(el, p->cid, p->id) < 0)
                                return -ENOMEM;
+                       p->lid = el->id;
 next:
                        p = NULL;
                }
@@ -305,17 +307,6 @@ int __ses_layout_function(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d,
                                if (ret < 0)
                                        return ret;
 
-                               if (j == el->n_conns / 2
-                                               && el ->n_lines > 0
-                                               && el2->n_lines > 0) {
-
-                                       uint32_t tmp      = el ->lines[0]->y0;
-                                       el ->lines[0]->y0 = el2->lines[0]->y0;
-                                       el2->lines[0]->y0 = tmp;
-
-                                       el ->lines[0]->y1 = el ->lines[0]->y0;
-                                       el2->lines[0]->y1 = el2->lines[0]->y0;
-                               }
                                break;
                        }
                }