From: yu.dongliang <18588496441@163.com> Date: Wed, 8 Nov 2023 06:23:02 +0000 (+0800) Subject: __ses_layout_path2() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=09674ac46bd9801e544a28ce636aeac08dc233ba;p=ses.git __ses_layout_path2() --- diff --git a/ses_layout.c b/ses_layout.c index d0049a3..10907bb 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -614,8 +614,12 @@ static void __ses_layout_path2(ScfEfunction* f, ses_path_t* path, ses_path_t* ba n = __ses_find_eline_index(f, p->lid); - eline_mov_before(f, __n, n); + if (!f->elines[n]->vflag) { + f->elines[n]->vflag = 1; + eline_mov_before(f, __n, n); + } +#if 0 c = f->components[p->cid]; if (SCF_EDA_NPN == c->type && SCF_EDA_NPN_C == p->id) { @@ -633,6 +637,7 @@ static void __ses_layout_path2(ScfEfunction* f, ses_path_t* path, ses_path_t* ba scf_loge("**************** c%ldp%ld, ic: %ld, ib: %ld, ie: %ld\n", p->cid, p->id, n, ib, ie); } +#endif } printf("\n"); } @@ -718,6 +723,9 @@ static int __ses_layout_lines4(ScfEfunction* f) n = __ses_find_eline_index(f, p->lid); SCF_XCHG(f->elines[n], f->elines[j / 2 + 1]); + for (i = 0; i < f->n_elines; i++) + f->elines[i]->vflag = 0; + __ses_layout_path(f, base, base); for (i = 0; i < paths->size; i++) {