_dc_transistor_handler()
authoryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 06:46:54 +0000 (14:46 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 06:46:54 +0000 (14:46 +0800)
ses_step_dc_transistor.c

index 92fb61efe4903127e918f2ec8eb1c58cb6aa79b1..ccf5863be54591ad5b414aff6c3af3dd59fc14c7 100644 (file)
@@ -33,6 +33,13 @@ static int _dc_transistor_handler(ScfEfunction* f, int64_t ns, int64_t count, se
                lb = f->elines[pb->lid];
                le = f->elines[pe->lid];
 
+               if (__ses_path_neg(f, lb) && !__ses_path_pos(f, lb)) {
+                       c->status = SCF_EDA_Status_OFF;
+
+                       scf_loge("NPN c%ld, status: %d\n", c->id, c->status);
+                       continue;
+               }
+
                if (lb->v < SCF_EDA_V_MIN) {
 
                        if (le->v < SCF_EDA_V_MIN)