From 704c5a6ee63f11dbd53cc67cdecd2aaa9e39e530 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Wed, 15 Nov 2023 20:30:01 +0800 Subject: [PATCH] flow->pos_pins, flow->neg_pins --- ses_utils.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ses_utils.c b/ses_utils.c index 6927d42..d14f539 100644 --- a/ses_utils.c +++ b/ses_utils.c @@ -199,6 +199,9 @@ void ses_flow_jr(ses_flow_t* flow) if (!flow) return; + flow->pos_pins = 0; + flow->neg_pins = 0; + flow->pos_r = 0; flow->pos_jr = 0; @@ -222,6 +225,8 @@ void ses_flow_jr(ses_flow_t* flow) for (j = 0; j < path->pins->size; j++) { p = path->pins->data[j]; + ++flow->pos_pins; + if (p->lid == vip->lid) { vip = path->pins->data[0]; @@ -251,6 +256,8 @@ void ses_flow_jr(ses_flow_t* flow) continue; } + ++flow->neg_pins; + if (p->sr != p->pr) { flow->neg_r += p->sr - p0->pr; @@ -276,7 +283,8 @@ void ses_flow_jr(ses_flow_t* flow) flow->neg_r, vip->cid, vip->id, vip->sr, p0->cid, p0->id, p0->pr); } - scf_loge("flow->pos_r: %lg, flow->neg_r: %lg, flow->vip: c%ldp%ld\n", flow->pos_r, flow->neg_r, flow->vip->cid, flow->vip->id); + scf_loge("flow pos_pins: %d, neg_pins: %d, pos_r: %lg, neg_r: %lg, vip: c%ldp%ld\n", + flow->pos_pins, flow->neg_pins, flow->pos_r, flow->neg_r, flow->vip->cid, flow->vip->id); } void ses_flow_print(ses_flow_t* flow) -- 2.25.1