Skip to content

Commit 45e2b13

Browse files
committed
[Router] Fixed a Bug in the Connection Router After Changing Some APIs
After changing the API of `evaluate_timing_driven_node_costs`, there was a typo (or bug) left inside an ifdef block. This commit fixed the bug and changed the typo to the correct variable name.
1 parent e459f93 commit 45e2b13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/route/connection_router.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ void ConnectionRouter<Heap>::set_rcv_enabled(bool enable) {
685685
}
686686
}
687687

688-
//Calculates the cost of reaching to_node
688+
//Calculates the cost of reaching to_node (i.e., to->index)
689689
template<typename Heap>
690690
void ConnectionRouter<Heap>::evaluate_timing_driven_node_costs(RTExploredNode* to,
691691
const t_conn_cost_params& cost_params,
@@ -700,7 +700,7 @@ void ConnectionRouter<Heap>::evaluate_timing_driven_node_costs(RTExploredNode* t
700700
* new_costs.R_upstream: is the upstream resistance at the end of this node
701701
*/
702702

703-
//Info for the switch connecting from_node to_node
703+
//Info for the switch connecting from_node to_node (i.e., to->index)
704704
int iswitch = rr_nodes_.edge_switch(to->prev_edge);
705705
bool switch_buffered = rr_switch_inf_[iswitch].buffered();
706706
bool reached_configurably = rr_switch_inf_[iswitch].configurable();
@@ -753,7 +753,7 @@ void ConnectionRouter<Heap>::evaluate_timing_driven_node_costs(RTExploredNode* t
753753
//Reached by a non-configurable edge.
754754
//Therefore the from_node and to_node are part of the same non-configurable node set.
755755
#ifdef VTR_ASSERT_SAFE_ENABLED
756-
VTR_ASSERT_SAFE_MSG(same_non_config_node_set(from_node, to_node),
756+
VTR_ASSERT_SAFE_MSG(same_non_config_node_set(from_node, to->index),
757757
"Non-configurably connected edges should be part of the same node set");
758758
#endif
759759

0 commit comments

Comments
 (0)