scf_logw("path: %d, __n: %ld, l%ld\n", path->index, __n, f->elines[__n]->id);
- for (j = path->pins->size - 1; j > 0; j -= 2) {
+ for (j = path->pins->size - 1; j >= 0; j--) {
p = path->pins->data[j];
scf_logi("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id);
eline_mov_before(f, __n, n);
}
}
-
- p = path->pins->data[0];
-
- scf_logi("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id);
-
- for (k = base->pins->size - 1; k >= 0; k--) {
- bp = base->pins->data[k];
-
- if (p->lid == bp->lid) {
- __n = __ses_find_eline_index(f, bp->lid);
-
- scf_logw("__n: %ld, l%ld\n", __n, f->elines[__n]->id);
- break;
- }
- }
-
- if (k < 0) {
- n = __ses_find_eline_index(f, p->lid);
-
- if (SCF_EDA_NPN == p->cid && SCF_EDA_NPN_B == p->id) {
- c = f->components[p->cid];
- pc = c->pins[SCF_EDA_NPN_C];
- pe = c->pins[SCF_EDA_NPN_E];
-
- intptr_t ic = __ses_find_eline_index(f, pc->lid);
- intptr_t ie = __ses_find_eline_index(f, pe->lid);
- if (ic > ie)
- __n = ic;
- else
- __n = ie;
- scf_loge("c%ldp%ld, ic: %ld, ie: %ld\n", p->cid, p->id, ic, ie);
- }
-
- eline_mov_before(f, __n, n);
- }
printf("\n");
}