Skip to content

Commit a2b7e9d

Browse files
committed
vpr: Fix potential incorrect heap init when re-trying with larger bounding box
1 parent aed3e08 commit a2b7e9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vpr/src/route/connection_router.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ t_heap* ConnectionRouter<Heap>::timing_driven_route_connection_common_setup(
9191
//make it back into the heap.
9292
reset_path_costs();
9393
modified_rr_node_inf_.clear();
94+
heap_.empty_heap();
9495

9596
//Re-initialize the heap since it was emptied by the previous call to
9697
//timing_driven_route_connection_from_heap()
9798
add_route_tree_to_heap(rt_root, sink_node, cost_params);
99+
heap_.build_heap(); // via sifting down everything
98100

99101
//Try finding the path again with the relaxed bounding box
100102
cheapest = timing_driven_route_connection_from_heap(sink_node,

0 commit comments

Comments
 (0)