From: yu.dongliang <18588496441@163.com> Date: Wed, 15 Nov 2023 12:30:01 +0000 (+0800) Subject: flow->pos_pins, flow->neg_pins X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=704c5a6ee63f11dbd53cc67cdecd2aaa9e39e530;p=ses.git flow->pos_pins, flow->neg_pins --- 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)