From: yu.dongliang <18588496441@163.com> Date: Wed, 1 Nov 2023 17:12:28 +0000 (+0800) Subject: __ses_path_va_diode() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=3c2e9c083004c216bbcea9faf142be970c025e67;p=ses.git __ses_path_va_diode() --- diff --git a/ses_layout.c b/ses_layout.c index 020eaf6..5d26ede 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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; diff --git a/ses_step_va_diode.c b/ses_step_va_diode.c index 5af2469..fef78f8 100644 --- a/ses_step_va_diode.c +++ b/ses_step_va_diode.c @@ -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);