__ses_path_sr()
authoryu.dongliang <18588496441@163.com>
Mon, 13 Nov 2023 09:35:26 +0000 (17:35 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 13 Nov 2023 09:35:26 +0000 (17:35 +0800)
ses_step_jr.c

index b7399282b8f1dcd60b19ab40af81d117e182d2d8..9dc1e9868d28bc1ed0208cc4c76ddc1e0e38412c 100644 (file)
@@ -30,6 +30,10 @@ void __ses_path_sr(ScfEfunction* f, ses_path_t* path, int i, int j, ScfEpin* cp1
        if (SCF_EDA_NPN == c0->type) {
                if (i > 0) {
                        p0 = path->pins->data[i - 1];
+                       c0 = f->components[p0->cid];
+
+                       if (SCF_EDA_NPN == c0->type && SCF_EDA_NPN_E == p0->id)
+                               p0 = path->pins->data[i - 2];
 
                        *r  = p1->sr  - r1  - p0->pr;
                        *jr = p1->jsr - jr1 - p0->jpr;