if (SCF_EDA_NPN != rc->type || SCF_EDA_NPN_E != rp->id)
rp->vflag = 1;
- scf_logd("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", rp->cid, rp->id, rp->lid, rp->vflag, rp->pflag);
+ scf_logi("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", rp->cid, rp->id, rp->lid, rp->vflag, rp->pflag);
int ret = 0;
if (SCF_EDA_NPN == rc->type && SCF_EDA_NPN_E != np->id)
continue;
- scf_logd("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", np->cid, np->id, np->lid, np->vflag, np->pflag);
+ scf_logi("c%ld_p%ld, l%ld, vflag: %d, pflag: %d\n", np->cid, np->id, np->lid, np->vflag, np->pflag);
el = f->elines[np->lid];
if (SCF_EDA_PIN_POS & el->flags) {
- scf_logd("pos l%ld\n\n", el->id);
+ scf_loge("pos l%ld\n\n", el->id);
ret = SCF_EDA_Path_OFF;
continue;
np->vflag = 1;
if (SCF_EDA_PIN_NEG & el->flags) {
- scf_logd("neg l%ld\n\n", el->id);
+ scf_loge("neg l%ld\n\n", el->id);
if (scf_vector_add(__paths, *ppath) < 0)
return -ENOMEM;
p = c->pins [el->pins[j + 1]];
if (p->pflag && p != np && *ppath) {
- scf_logd("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id);
+ scf_loge("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id);
if ((*ppath)->pins->size > 0) {
if (scf_vector_add(__paths, *ppath) < 0)
if (SCF_EDA_Path_OFF == ret) {
rp->vflag = 0;
- scf_logd("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid);
+ scf_logw("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid);
} else if (SCF_EDA_Status_OFF == ret)
- scf_logd("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid);
+ scf_loge("off: c%ld_p%ld, l%ld\n", rp->cid, rp->id, rp->lid);
}
return ret;
for (i = 0; i < path->bridges->size; i++) {
sp0 = path->bridges->data[i];
- scf_logd("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index);
+ scf_loge("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index);
}
if (path->bridges->size <= 0) {
for (i = 0; i < paths->size; i++) {
path = paths->data[i];
+ scf_logi("i: %d, path->type: %d\n", i, path->type);
+
ses_path_print(path);
+
printf("\n");
}
}
if (c == B)
continue;
- scf_logd("i: %ld\n", i);
+ scf_logw("i: %ld\n", i);
int ret = __dfs_path(f, c, p, ctx->paths, &path);
if (ret < 0)
return ret;
-// printf("ret: %d\n\n", ret);
+ printf("ret: %d\n\n", ret);
if (!path)
continue;