__ses_layout_lines3()
authoryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 07:35:26 +0000 (15:35 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 07:35:26 +0000 (15:35 +0800)
ses_layout.c

index c89235da5c6fc263fa9f4446094bd7a3ea70a9c9..7891926968534efa4340af8c5824476ae48e376b 100644 (file)
@@ -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);