From ea33501f9ece9641fe3a658ddd4b6a43639a0765 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Wed, 27 Sep 2023 19:09:51 +0800 Subject: [PATCH] tmp --- ses_step_dc_diode.c | 2 +- ses_step_va_diode.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ses_step_dc_diode.c b/ses_step_dc_diode.c index 98ea754..8afef4e 100644 --- a/ses_step_dc_diode.c +++ b/ses_step_dc_diode.c @@ -18,7 +18,7 @@ static int _dc_diode_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx for (i = 0; i < f->n_elines; i++) { el = f->elines[i]; - if (!(SCF_EDA_PIN_IN & el->flags)) + if (!el->vconst) continue; for (j = 0; j + 1 < el->n_pins; j += 2) { diff --git a/ses_step_va_diode.c b/ses_step_va_diode.c index 90f521f..b951489 100644 --- a/ses_step_va_diode.c +++ b/ses_step_va_diode.c @@ -146,7 +146,7 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path) __ses_path_dr(p, p1, p2); - scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg + j%lg, p->v: %lg + j%lg, p->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, p2->dr: %lg + j%lg\n", + scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg + j%lg, p->v: %lg + j%lg, p->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, p2->dr: %lg + j%lg\n\n", i, p->cid, p->id, p1->cid, p1->id, v, jv, p->v, p->jv, p->a, p->ja, pr, jpr, sr, jsr, p2->dr, p2->jdr); } else { @@ -184,7 +184,7 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path) p0->a = p->a; p0->ja = p->ja; - scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg + j%lg, p->v: %lg + j%lg, p->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, p->dr: %lg + j%lg\n", + scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg + j%lg, p->v: %lg + j%lg, p->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, p->dr: %lg + j%lg\n\n", i, p0->cid, p0->id, p->cid, p->id, v, jv, p->v, p->jv, p->a, p->ja, pr, jpr, sr, jsr, p->dr, p->jdr); } } -- 2.25.1