__ses_path_va_transistor()
authoryu.dongliang <18588496441@163.com>
Thu, 19 Oct 2023 09:43:01 +0000 (17:43 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 19 Oct 2023 09:43:01 +0000 (17:43 +0800)
ses_step_va_transistor.c

index 4409be63a9a881b6bab6e991ada4fc2ad9db7cc5..da3ecd77c899a0cdff49d9448d2995262ec42ba1 100644 (file)
@@ -57,7 +57,7 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
        p1->v  = el->v;
        p1->jv = el->jv;
 
-       for (i = 1; i < path->pins->size - 1; i++) {
+       for (i = 0; i < path->pins->size - 1; i++) {
                pc =        path->pins->data[i];
 
                el = f->elines    [pc->lid];
@@ -72,8 +72,6 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
                if (!pc->aconst)
                        continue;
 
-               p = path->pins->data[i - 1];
-
                double v;
                double jv;
 
@@ -116,6 +114,8 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
                el->a  = pc->a;
                el->ja = pc->ja;
 #if 0
+               p = path->pins->data[i - 1];
+
                p->v   = el->v;
                p->jv  = el->jv;
                p->a   = el->a;
@@ -164,9 +164,6 @@ static int ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
        p0 = path->pins->data[0];
        p1 = path->pins->data[path->pins->size - 1];
 
-       if (p0->lid != Bp->lid || p1->lid != Bn->lid)
-               return 0;
-
        int ret = __ses_path_va_transistor(f, path);
        if (ret < 0)
                return ret;