tmp
authoryu.dongliang <18588496441@163.com>
Thu, 19 Oct 2023 08:32:30 +0000 (16:32 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 19 Oct 2023 08:32:30 +0000 (16:32 +0800)
ses_step_va_transistor.c

index 7b5d1e47be110f859a20b334f453260bcfba95a6..f1ee3e0c85f48eca8c5f63f66eca5abc4c097817 100644 (file)
@@ -50,14 +50,6 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
        p1->v  = el->v;
        p1->jv = el->jv;
 
-       double v;
-       double jv;
-
-       double pr;
-       double jpr;
-       double sr;
-       double jsr;
-
        for (i = 1; i < path->pins->size - 1; i++) {
                pc =        path->pins->data[i];
 
@@ -75,12 +67,15 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
 
                p   = path->pins->data[i - 1];
 
+               double v;
+               double jv;
+
+               double pr;
+               double jpr;
+
                pr  = p->pr  - p0->pr;
                jpr = p->jpr - p0->jpr;
 
-               sr  = p->sr  - p0->sr;
-               jsr = p->jsr - p0->jsr;
-
                ses_ir_u(&v, &jv, pc->a, pc->ja, pr, jpr);
 
                pc->v  = p0->v  - v;
@@ -123,8 +118,8 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
 
                __ses_path_dr_transistor(f, path, i, path->pins->size - 1);
 
-               scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg, pc->v: %lg, pc->a: %lg, pr: %lg, sr: %lg, pc->dr: %lg\n",
-                               i, p0->cid, p0->id, pc->cid, pc->id, v, pc->v, pc->a, pr, sr, pc->dr);
+               scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg, pc->v: %lg, pc->a: %lg, pr: %lg, pc->dr: %lg\n",
+                               i, p0->cid, p0->id, pc->cid, pc->id, v, pc->v, pc->a, pr, pc->dr);
        }
 
        return 0;