From 48bb23fdb291ead0ed8c2c3380608179296eb727 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 22 Sep 2023 15:24:21 +0800 Subject: [PATCH] ses_path_print() --- ses_step_topo.c | 2 ++ ses_steps.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ses_step_topo.c b/ses_step_topo.c index 2e3919b..980ac09 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -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; } } diff --git a/ses_steps.c b/ses_steps.c index 6895bf1..0df4d78 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -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"); -- 2.25.1