ses_lines_same_components()
authoryu.dongliang <18588496441@163.com>
Mon, 30 Oct 2023 13:59:37 +0000 (21:59 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 30 Oct 2023 13:59:37 +0000 (21:59 +0800)
ses_layout.c

index c9d2b6b15cdb5c6d2fcac49e286319d3c4ff5702..b0f4c9a6dc751f7ee1924159f5435d1b287875f3 100644 (file)
@@ -430,12 +430,16 @@ int ses_lines_same_components(ScfEfunction* f)
                        N_PINS = el0->n_pins;
        }
 
-       for (n = 0; n < 5; n++) {
+       scf_loge("N_PINS: %ld\n", N_PINS);
+
+       N_PINS = N_PINS < 8 ? 8 : N_PINS;
+
+       for (n = 0; n < N_PINS / 2 - 2; n++) {
 
                for (i = 0; i < f->n_elines; i++) {
                        el0       = f->elines[i];
 
-                       if (el0->n_pins > 4)
+                       if (el0->n_pins > N_PINS / 2 - n)
                                continue;
 
                        for (j = i + 1; j < f->n_elines; j++)
@@ -487,8 +491,6 @@ int ses_lines_same_components(ScfEfunction* f)
                }
 //             printf("\n");
        }
-
-       scf_loge("N_PINS: %ld\n", N_PINS);
 #endif
 
        return 0;