SCF_EDA_Components_NB,
};
-#define SCF_EDA_PIN_NONE 0
-#define SCF_EDA_PIN_IN 1
-#define SCF_EDA_PIN_OUT 2
-#define SCF_EDA_PIN_POS 4
-#define SCF_EDA_PIN_NEG 8
-#define SCF_EDA_PIN_CF 16
+#define SCF_EDA_PIN_NONE 0
+#define SCF_EDA_PIN_IN 1
+#define SCF_EDA_PIN_OUT 2
+#define SCF_EDA_PIN_POS 4
+#define SCF_EDA_PIN_NEG 8
+#define SCF_EDA_PIN_CF 16
+#define SCF_EDA_PIN_BORDER 32
#define SCF_EDA_V_INIT -10001001.0
#define SCF_EDA_V_MIN -10000000.0
for (i = 0; i < f->n_elines; i++) {
el = f->elines[i];
- scf_logw("el: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el->id, el->n_conns, el->n_pins, el->flags);
+ scf_logd("el: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el->id, el->n_conns, el->n_pins, el->flags);
}
scf_vector_clear(graph, ( void (*)(void*) )ses_vertex_free);
el0 = f->elines[i];
el0->n_lines = 0;
+
+ if (0 == i || i + 1 == f->n_elines)
+ el0->flags |= SCF_EDA_PIN_BORDER;
}
#if 0
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
- scf_logw("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags);
+ scf_logd("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags);
for (j = 0; j < el0->n_conns; j++) {
ec = el0->conns[j];
- scf_logi("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]);
+ scf_logd("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]);
}
printf("\n");
}
scf_vector_qsort(crosses, ses_vertex_cmp_edges);
-#if 1
+#if 0
for (i = 0; i < crosses->size; i++) {
edge0 = crosses->data[i];
c0 = edge0->data;
cairo_stroke(cr);
if (prev) {
- cairo_set_line_width(cr, 1);
+ if (!(el->flags & SCF_EDA_PIN_BORDER))
+ cairo_set_line_width(cr, 1);
cairo_move_to(cr, prev->x0, prev->y0);
cairo_line_to(cr, l->x0, l->y0);