From: yu.dongliang <18588496441@163.com> Date: Wed, 12 Jul 2023 17:52:04 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=4a8c6c088577601dd1e468c9f963cf2a3cb40858;p=ses.git tmp --- diff --git a/ses_layout.c b/ses_layout.c index 519bc59..8a4343e 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -251,7 +251,7 @@ int __ses_layout_function2(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d { ScfLine* l; - uint32_t w = el->n_pins * d; + uint32_t w = (el->n_pins - 2) * d + 10; size_t m = (w + bw - 1) / bw; size_t n = *pn; uint32_t h = (n + m) * d; @@ -278,7 +278,7 @@ int __ses_layout_function2(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d else if ((SCF_EDA_PIN_IN | SCF_EDA_PIN_OUT) & el->flags) l->x0 = bx + d; else - l->x0 = bx + 2 * d; + l->x0 = bx + 1 * d; l->y0 = by + (n + j) * d; l->y1 = l->y0;