__ses_path_va_diode()
authoryu.dongliang <18588496441@163.com>
Sat, 28 Oct 2023 14:59:35 +0000 (22:59 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 28 Oct 2023 14:59:35 +0000 (22:59 +0800)
ses_step_va_diode.c
ses_steps.c

index 877bb194875125f1ba9f96b2a35f6b7acdbe7960..5af246920f0b0f6edc133a7ff31db96e7542456a 100644 (file)
@@ -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;
        }
index 177965dcd478abae2fe3064b7215dedaeae59780..bf53f4d546ab8a452c7fdfc5c0f0fae386e4be42 100644 (file)
@@ -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);