__ses_path_va_diode()
authoryu.dongliang <18588496441@163.com>
Wed, 1 Nov 2023 17:12:28 +0000 (01:12 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 1 Nov 2023 17:12:28 +0000 (01:12 +0800)
ses_layout.c
ses_step_va_diode.c

index 020eaf6a5068fa5fbe9290ba5ce0c9ce506c9bca..5d26ede7aa2be6ae9d492e598b11296a9eabd808 100644 (file)
@@ -1659,7 +1659,7 @@ int ses_layout_board(ScfEboard* b)
                        return ret;
                }
 
-//             ses_steps_analyse(f, 5, 1);
+               ses_steps_analyse(f, 5, 1);
 
                x = f->x;
                y = f->y;
index 5af246920f0b0f6edc133a7ff31db96e7542456a..fef78f8d26654066e00f152562fd0b883804ce07 100644 (file)
@@ -220,6 +220,9 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path)
                return -1;
        }
 
+       if (path->n_diodes <= 0)
+               return 0;
+
        p0 = path->pins->data[0];
        p1 = path->pins->data[path->pins->size - 1];
 
@@ -263,13 +266,16 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path)
                i = info->j;
        }
 
+       scf_logd("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg\n", p0->cid, p0->id, p1->cid, p1->id, r, v);
+
        if (i  < path->pins->size - 1) {
                pi = path->pins->data[i];
 
                r  += p1->sr  - p1->r  - pi->pr;
                jr += p1->jsr - p1->jr - pi->jpr;
 
-               scf_logi("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg\n", pi->cid, pi->id, p1->cid, p1->id, r, v);
+               scf_logd("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg, pi->pr: %lg, p1->sr: %lg, p1->r: %lg\n",
+                               pi->cid, pi->id, p1->cid, p1->id, r, v, pi->pr, p1->sr, p1->r);
        }
 
        ses_ur_i(&a, &ja, v, jv, r, jr);