From: yu.dongliang <18588496441@163.com> Date: Sat, 4 Nov 2023 07:35:26 +0000 (+0800) Subject: __ses_layout_lines3() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=28f3c0e8d12f728d3fa64e47020e268e656c6c83;p=ses.git __ses_layout_lines3() --- diff --git a/ses_layout.c b/ses_layout.c index c89235d..7891926 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -362,6 +362,9 @@ int ses_lines_diff_components(ScfEfunction* f, ses_graph_t* graph) for (i = 0; i + 1 < f->n_elines; i++) { el0 = f->elines[i]; + if (el0->n_pins <= 4) + continue; + v0 = ses_vertex_add(graph, el0); if (!v0) return -ENOMEM; @@ -369,6 +372,9 @@ int ses_lines_diff_components(ScfEfunction* f, ses_graph_t* graph) for (j = i + 1; j < f->n_elines; j++) { el1 = f->elines[j]; + if (el1->n_pins <= 4) + continue; + for (k = 0; k < el0->n_conns; k++) { ec = el0->conns[k]; @@ -465,11 +471,17 @@ static int __ses_layout_lines3(ScfEfunction* f) printf("\n"); } - for (i = 0; i < graph->size; i++) { - v = graph->data[i]; + for (j = 0; j < colors->size; j++) { - el = v->data; - scf_logi("j: %ld, i: %ld, l%ld->color: %ld\n", j, i, el->id, el->color); + for (i = 0; i < graph->size; i++) { + v = graph->data[i]; + + el = v->data; + + if (j == el->color) + scf_logi("j: %ld, l%ld->color: %ld\n", j, el->id, el->color); + } + printf("\n"); } scf_vector_clear(graph, ( void (*)(void*) )ses_vertex_free);