&& SCF_EDA_Status_OFF == c->status)
continue;
+ cairo_set_line_width(cr, 2);
+
uint8_t text[64];
snprintf(text, sizeof(text) - 1, "%ld", c->id);
if (np->vflag)
continue;
+ if (SCF_EDA_Transistor == rc->type && SCF_EDA_Transistor_E != np->id)
+ continue;
+
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];
return 0;
}
+static int _topo_print(scf_vector_t* paths)
+{
+ ses_path_t* path;
+
+ int i;
+ 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");
+ }
+}
+
static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t* ctx)
{
ses_path_t* path;
}
}
+// _topo_print(ctx->paths);
+
int ret = _topo_layers(ctx->paths, B);
if (ret < 0)
return ret;
-#if 1
- for (i = 0; i < ctx->paths->size; i++) {
- path = ctx->paths->data[i];
-
- scf_logi("i: %ld, path->type: %d\n", i, path->type);
-
- ses_path_print(path);
-
- printf("\n");
- }
-#endif
+ _topo_print(ctx->paths);
return 0;
}