}
}
-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;
__ses_xchg_cx(f, d);
__ses_xchg_ce(f, d);
-// __ses_mov_pos(f, d);
__ses_layout_cx(f, d);
int tx0 = INT_MAX;