From: yu.dongliang <18588496441@163.com> Date: Sun, 5 Nov 2023 08:16:29 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=471eec171082cb1bae2a8608f12f4f289326acd2;p=ses.git tmp --- diff --git a/ses_layout.c b/ses_layout.c index 572488f..dab4a9a 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -999,6 +999,8 @@ static int __ses_de_cross(ScfEfunction* f, int d) qsort_r(el->pins, el->n_pins / 2, sizeof(uint64_t) * 2, epin_cmp_color, f); + el->lines[0]->x1 = el->lines[0]->x0 + d; + for (j = 0; j + 1 < el->n_pins; j += 2) { c = f->components[el->pins[j]]; @@ -1009,6 +1011,8 @@ static int __ses_de_cross(ScfEfunction* f, int d) while (el->n_lines <= k) { + scf_logw("el->n_lines: %ld, k: %ld\n", el->n_lines, k); + l0 = el->lines[el->n_lines - 1]; l = malloc(sizeof(ScfLine)); @@ -1027,11 +1031,7 @@ static int __ses_de_cross(ScfEfunction* f, int d) } l = el->lines[k]; - - if (0 == m) - p->x = l->x0 + d; - else - p->x = l->x1 + d; + p->x = l->x1 + d; l->x1 = p->x; } }