From: yu.dongliang <18588496441@163.com> Date: Sat, 28 Oct 2023 14:59:35 +0000 (+0800) Subject: __ses_path_va_diode() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=05bc7040607026acc2d39ed5029ac0b2df479a75;p=ses.git __ses_path_va_diode() --- diff --git a/ses_step_va_diode.c b/ses_step_va_diode.c index 877bb19..5af2469 100644 --- a/ses_step_va_diode.c +++ b/ses_step_va_diode.c @@ -250,10 +250,15 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path) v -= info->n_diodes * SCF_EDA_V_Diode_ON; v -= info->n_NPNs * SCF_EDA_V_NPN_ON; - r += pj->pr - pj->r - pi->pr; - jr += pj->jpr - pj->jr - pi->jpr; + double _r; + double _jr; - scf_logi("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg\n", pi->cid, pi->id, pj->cid, pj->id, r, v); + __ses_path_pr(f, path, i, info->i, NULL, &_r, &_jr); + + r += _r; + jr += _jr; + + scf_logi("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg, _r: %lg\n", pi->cid, pi->id, pj->cid, pj->id, r, v, _r); i = info->j; } diff --git a/ses_steps.c b/ses_steps.c index 177965d..bf53f4d 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -141,7 +141,7 @@ int ses_steps_analyse(ScfEfunction* f, int64_t ns, int64_t count) return ret; int j; - for (j = 0; j < 1; j++) { + for (j = 0; j < 3; j++) { printf("\n\033[33m%s(), %d(), j: %d\033[0m\n", __func__, __LINE__, j); ret = __ses_steps_analyse(f, ns, i, ctx);