flow->pos_pins, flow->neg_pins
authoryu.dongliang <18588496441@163.com>
Wed, 15 Nov 2023 12:30:01 +0000 (20:30 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 15 Nov 2023 12:30:01 +0000 (20:30 +0800)
ses_utils.c

index 6927d42c4df87684030ea919cf3cecbd32273fa1..d14f539b769e3e46efbc9b1228667986f12c57b7 100644 (file)
@@ -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)