ses_path_print()
authoryu.dongliang <18588496441@163.com>
Fri, 22 Sep 2023 07:24:21 +0000 (15:24 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 22 Sep 2023 07:24:21 +0000 (15:24 +0800)
ses_step_topo.c
ses_steps.c

index 2e3919b777e6580a1b647532ca71d3291192b4e3..980ac09c276a587137c8b493f6ab9f0e80f5c6d2 100644 (file)
@@ -328,6 +328,8 @@ static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t*
                        if ((SCF_EDA_Diode      == c->type && SCF_EDA_Diode_NEG    == p->id)
                         || (SCF_EDA_Transistor == c->type && SCF_EDA_Transistor_B == p->id))
                                path->n_diodes++;
+
+                       p->n_diodes = path->n_diodes;
                }
        }
 
index 6895bf1338d8047f48e4ca8d6197ba2fd1969d5d..0df4d78869e6468ada01136c3000b1b8ea1c35e5 100644 (file)
@@ -256,7 +256,7 @@ void ses_path_print(ses_path_t* path)
        for (i = 0; i < path->pins->size; i++) {
                p  =        path->pins->data[i];
 
-               printf("c%ldp%ld ", p->cid, p->id);
+               printf("c%ldp%ldd%d ", p->cid, p->id, p->n_diodes);
        }
        printf("\n");