Skip to content

Commit 91e62d5

Browse files
committed
[vpr] bypass 0-fan-in node in power estimator
1 parent ec85a46 commit 91e62d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vpr/src/power/power.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,9 @@ static void power_usage_routing(t_power_usage* power_usage,
924924
int seg_index = device_ctx.rr_indexed_data[rr_graph.node_cost_index(rr_id)].seg_index;
925925
C_wire = wire_length * rr_graph.rr_segments(RRSegmentId(seg_index)).Cmetal;
926926
//(double)power_ctx.commonly_used->tile_length);
927+
if (node_fan_in == 0) {
928+
continue; // Bypass some nodes with 0 fan-in
929+
}
927930
VTR_ASSERT(node_power->selected_input < node_fan_in);
928931

929932
/* Multiplexor */

0 commit comments

Comments
 (0)