__ses_path_va_transistor()
authoryu.dongliang <18588496441@163.com>
Wed, 15 Nov 2023 07:56:28 +0000 (15:56 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 15 Nov 2023 07:56:28 +0000 (15:56 +0800)
ses_step_va_transistor.c

index fc54c2a4cf2ac1396fa0c27d92f316ecd031becd..0e36938ee09cd031a3682722c9e185e7e3d3a02e 100644 (file)
@@ -245,11 +245,11 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
                        pr   += path->parent_r0;
                        jpr  += path->parent_jr0;
 
-                       v     = Bp->v  - pj->v;
-                       jv    = Bp->jv - pj->jv;
+                       v     = Bp->v  - Bn->v;
+                       jv    = Bp->jv - Bn->jv;
 
-                       _pr   = pc->pr  + path->parent_r0;
-                       _jpr  = pc->jpr + path->parent_jr0;
+                       _pr   = pc->pr  + path->parent_r0  + path->parent_r1;
+                       _jpr  = pc->jpr + path->parent_jr0 + path->parent_jr1;
 
                        ses_ur_i(&pc->a, &pc->ja, v, jv, _pr, _jpr);