__ses_path_va_diode()
authoryu.dongliang <18588496441@163.com>
Wed, 27 Sep 2023 14:50:58 +0000 (22:50 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 27 Sep 2023 14:50:58 +0000 (22:50 +0800)
ses_step_va_diode.c

index d859acb56e366928934d892c6b8438afd955b849..1ce0aa2d9ed5cc5f3e27a0526c4d31e1cc114c16 100644 (file)
@@ -114,6 +114,9 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path)
                        break;
        }
 
+       if (SCF_EDA_Transistor == c->type)
+               return 0;
+
        for (j = path->pins->size - 1; j >= i; j--) {
                pj = path->pins->data[j];
 
@@ -130,6 +133,9 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path)
                        break;
        }
 
+       if (SCF_EDA_Transistor == c->type)
+               return 0;
+
        if (j <= i) {
                scf_loge("all components are Diode\n");
                return -1;