f->elines[n]->vflag = 1;
eline_mov_before(f, __n, n);
- }
-#if 0
- c = f->components[p->cid];
+#if 1
+ c = f->components[p->cid];
- if (SCF_EDA_NPN == c->type && SCF_EDA_NPN_C == p->id) {
- pe = c->pins[SCF_EDA_NPN_E];
- pb = c->pins[SCF_EDA_NPN_B];
+ if (SCF_EDA_NPN == c->type && SCF_EDA_NPN_C == p->id) {
+ pe = c->pins[SCF_EDA_NPN_E];
+ pb = c->pins[SCF_EDA_NPN_B];
- intptr_t ie = __ses_find_eline_index(f, pe->lid);
- intptr_t ib = __ses_find_eline_index(f, pb->lid);
+ intptr_t ie = __ses_find_eline_index(f, pe->lid);
+ intptr_t ib = __ses_find_eline_index(f, pb->lid);
- eline_mov_after(f, __n, ib);
+ if (!f->elines[ib]->vflag) {
+ f->elines[ib]->vflag = 1;
- ie = __ses_find_eline_index(f, pe->lid);
- ib = __ses_find_eline_index(f, pb->lid);
- n = __ses_find_eline_index(f, p->lid);
+ eline_mov_after(f, __n, ib);
- scf_loge("**************** c%ldp%ld, ic: %ld, ib: %ld, ie: %ld\n", p->cid, p->id, n, ib, ie);
- }
+ ie = __ses_find_eline_index(f, pe->lid);
+ ib = __ses_find_eline_index(f, pb->lid);
+ n = __ses_find_eline_index(f, p->lid);
+
+ scf_loge("**************** c%ldp%ld, ic: %ld, ib: %ld, ie: %ld\n", p->cid, p->id, n, ib, ie);
+ }
+ }
#endif
+ }
}
// printf("\n");
}