delete __ses_mov_pos()
authoryu.dongliang <18588496441@163.com>
Mon, 6 Nov 2023 05:19:06 +0000 (13:19 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 6 Nov 2023 05:19:06 +0000 (13:19 +0800)
ses_layout.c

index e80bdec63666b2920e60d6cdb55dd153d08a7b1e..82393580aaf37fb579268afed4f28cc4f3a879e1 100644 (file)
@@ -1249,65 +1249,6 @@ static void __ses_xchg_ce(ScfEfunction* f, int d)
        }
 }
 
-static void __ses_mov_pos(ScfEfunction* f, int d)
-{
-       ScfEcomponent* c;
-       ScfEpin*       p;
-
-       size_t i;
-       size_t j;
-
-       int mx = 0;
-       int nx = INT_MIN;
-       int px = INT_MAX;
-
-       for (i = 0; i < f->n_components; i++) {
-               c  =        f->components[i];
-
-               for (j = 0; j < c->n_pins; j++) {
-                       p  =        c->pins[j];
-
-                       if (p->x < 0) {
-                               if (mx > p->x)
-                                       mx = p->x;
-
-                               if (nx < p->x)
-                                       nx = p->x;
-
-                       } else {
-                               if (px > p->x)
-                                       px = p->x;
-                       }
-               }
-       }
-
-       if (INT_MIN == nx)
-               nx = 0;
-
-       if (INT_MAX == px)
-               px = 0;
-
-       scf_loge("mx: %d, nx: %d, px: %d\n", mx, nx, px);
-
-       for (i = 0; i < f->n_components; i++) {
-               c  =        f->components[i];
-
-               for (j = 0; j < c->n_pins; j++) {
-                       p  =        c->pins[j];
-
-                       if (p->x > 0)
-                               p->x -= px - nx - d;
-
-                       p->x -= mx - d;
-               }
-
-               if (c->x > 0)
-                       c->x -= px - nx - d;
-
-               c->x -= mx - d;
-       }
-}
-
 int ses_layout_function(ScfEfunction* f, int d)
 {
        ScfEcomponent* c;
@@ -1345,7 +1286,6 @@ int ses_layout_function(ScfEfunction* f, int d)
        __ses_xchg_cx(f, d);
        __ses_xchg_ce(f, d);
 
-//     __ses_mov_pos(f, d);
        __ses_layout_cx(f, d);
 
        int tx0 = INT_MAX;