Skip to content

Commit e760d17

Browse files
committed
router lookahead: fix criticality multiplication bug
1 parent a7cd8f9 commit e760d17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

comparison_output.xlsx

39.3 KB
Binary file not shown.

vpr/src/route/router_lookahead_map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ std::pair<float, float> MapLookahead::get_expected_delay_and_cong(RRNodeId from_
326326
wire_cost_entry = get_wire_cost_entry(reachable_wire_inf.wire_rr_type, reachable_wire_inf.wire_seg_index, delta_x, delta_y);
327327
}
328328

329-
float this_delay_cost = (1. - params.criticality) * (reachable_wire_inf.delay + wire_cost_entry.delay);
330-
float this_cong_cost = (params.criticality) * (reachable_wire_inf.congestion + wire_cost_entry.congestion);
329+
float this_delay_cost = (params.criticality) * (reachable_wire_inf.delay + wire_cost_entry.delay);
330+
float this_cong_cost = (1. - params.criticality) * (reachable_wire_inf.congestion + wire_cost_entry.congestion);
331331

332332
expected_delay_cost = std::min(expected_delay_cost, this_delay_cost);
333333
expected_cong_cost = std::min(expected_cong_cost, this_cong_cost);

0 commit comments

Comments
 (0)