From: yu.dongliang <18588496441@163.com> Date: Mon, 6 Nov 2023 07:12:54 +0000 (+0800) Subject: __ses_layout_cx() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=65407a39c2961dcfe4cdfe516922ae39b40d89b9;p=ses.git __ses_layout_cx() --- diff --git a/ses_layout.c b/ses_layout.c index 6a3f33e..20db5a5 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -1094,9 +1094,10 @@ static inline void __ses_xchg_cx2(ScfEcomponent* c0, ScfEcomponent* c1) int cx0 = c0->x; int cx1 = c1->x; + scf_logw("c%ld <--> c%ld, color: %ld, %ld, cx: %d, %d\n", c0->id, c1->id, c0->color, c1->color, c0->x, c1->x); SCF_XCHG(c0->x, c1->x); - scf_logw("c%ld <--> c%ld\n", c0->id, c1->id); + scf_loge("c%ld <--> c%ld, color: %ld, %ld, cx: %d, %d\n", c0->id, c1->id, c0->color, c1->color, c0->x, c1->x); for (i = 0; i < c0->n_pins; i++) { p = c0->pins[i]; @@ -1213,7 +1214,7 @@ static void __ses_layout_cx(ScfEfunction* f, int d) } } - c->x = c2->x + d / 2; + c->x = c2->x + d; _set_px: for (k = 0; k < c->n_pins; k++) { @@ -1303,11 +1304,11 @@ int ses_layout_function(ScfEfunction* f, int d) return ret; __ses_setc_xy(f, d); + __ses_layout_cx(f, d); + __ses_xchg_cx(f, d); __ses_xchg_ce(f, d); - __ses_layout_cx(f, d); - int tx0 = INT_MAX; int tx1 = 0;