fix: __ses_path_sr()
authoryu.dongliang <18588496441@163.com>
Sat, 21 Oct 2023 09:43:42 +0000 (17:43 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 21 Oct 2023 09:43:42 +0000 (17:43 +0800)
ses_step_jr.c
ses_steps.c

index 2547a4d7531cb43681168c15962730aab8950ec9..f6ad8cf87efbed819cfc5030969c5ae433be2fd2 100644 (file)
@@ -27,8 +27,8 @@ void __ses_path_sr(ScfEfunction* f, ses_path_t* path, int i, int j, ScfEpin* cp1
                if (i > 0) {
                        p0 = path->pins->data[i - 1];
 
-                       *r  = p1->sr  - p0->sr;
-                       *jr = p1->jsr - p0->jsr;
+                       *r  = p1->sr  - p0->pr;
+                       *jr = p1->jsr - p0->jpr;
                } else {
                        *r  = p1->sr;
                        *jr = p1->jsr;
index fc2bcec625f41a7cf7a59795257952a9cbec533e..38aef663f13041014be4a58ae4cfc511eabf3066 100644 (file)
@@ -41,7 +41,7 @@ static ses_step_t*  ses_steps_1[] =
 
        &ses_step_va_diode,
        &ses_step_va_transistor,
-#if 0
+#if 1
        &ses_step_jr,
        &ses_step_va,
        &ses_step_va_balance,