@@ -26,15 +26,15 @@ static bool relevant_node_to_target(const RRGraphView* rr_graph,
26
26
RRNodeId target_node);
27
27
28
28
#ifdef VTR_ENABLE_DEBUG_LOGGING
29
- static void update_router_stats (const RRGraphView* rr_graph ,
30
- RouterStats* router_stats ,
31
- RRNodeId rr_node_id,
32
- bool is_push );
29
+ static void update_router_stats (RouterStats* router_stats ,
30
+ bool is_push ,
31
+ RRNodeId rr_node_id,
32
+ const RRGraphView* rr_graph );
33
33
#else
34
- static void update_router_stats (const RRGraphView* /* rr_graph */ ,
35
- RouterStats* router_stats ,
36
- RRNodeId /* rr_node_id*/ ,
37
- bool is_push );
34
+ static void update_router_stats (RouterStats* router_stats ,
35
+ bool is_push ,
36
+ RRNodeId /* rr_node_id*/ ,
37
+ const RRGraphView* /* rr_graph */ );
38
38
#endif
39
39
40
40
/* * return tuple <found_path, retry_with_full_bb, cheapest> */
@@ -220,10 +220,10 @@ t_heap* ConnectionRouter<Heap>::timing_driven_route_connection_from_heap(RRNodeI
220
220
while (!heap_.is_empty_heap ()) {
221
221
// cheapest t_heap in current route tree to be expanded on
222
222
cheapest = heap_.get_heap_head ();
223
- update_router_stats (rr_graph_ ,
224
- router_stats_ ,
223
+ update_router_stats (router_stats_ ,
224
+ false ,
225
225
cheapest->index ,
226
- false );
226
+ rr_graph_ );
227
227
228
228
RRNodeId inode = cheapest->index ;
229
229
VTR_LOGV_DEBUG (router_debug_, " Popping node %d (cost: %g)\n " ,
@@ -309,10 +309,10 @@ vtr::vector<RRNodeId, t_heap> ConnectionRouter<Heap>::timing_driven_find_all_sho
309
309
while (!heap_.is_empty_heap ()) {
310
310
// cheapest t_heap in current route tree to be expanded on
311
311
t_heap* cheapest = heap_.get_heap_head ();
312
- update_router_stats (rr_graph_ ,
313
- router_stats_ ,
312
+ update_router_stats (router_stats_ ,
313
+ false ,
314
314
cheapest->index ,
315
- false );
315
+ rr_graph_ );
316
316
317
317
RRNodeId inode = cheapest->index ;
318
318
VTR_LOGV_DEBUG (router_debug_, " Popping node %d (cost: %g)\n " ,
@@ -617,10 +617,10 @@ void ConnectionRouter<Heap>::timing_driven_add_to_heap(const t_conn_cost_params
617
617
}
618
618
619
619
heap_.add_to_heap (next_ptr);
620
- update_router_stats (rr_graph_ ,
621
- router_stats_ ,
620
+ update_router_stats (router_stats_ ,
621
+ true ,
622
622
to_node,
623
- true );
623
+ rr_graph_ );
624
624
625
625
} else {
626
626
VTR_LOGV_DEBUG (router_debug_, " Didn't expand to %d (%s)\n " , to_node, describe_rr_node (device_ctx.rr_graph , device_ctx.grid , device_ctx.rr_indexed_data , to_node, is_flat_).c_str ());
@@ -930,10 +930,10 @@ void ConnectionRouter<Heap>::add_route_tree_node_to_heap(
930
930
backward_path_cost, R_upstream, rt_node.Tdel , &rcv_path_manager);
931
931
}
932
932
933
- update_router_stats (rr_graph_ ,
934
- router_stats_ ,
933
+ update_router_stats (router_stats_ ,
934
+ true ,
935
935
inode,
936
- true );
936
+ rr_graph_ );
937
937
938
938
#ifdef VTR_ENABLE_DEBUG_LOGGING
939
939
router_stats_->rt_node_pushes [rr_graph_->node_type (inode)]++;
@@ -1101,15 +1101,15 @@ static inline bool relevant_node_to_target(const RRGraphView* rr_graph,
1101
1101
}
1102
1102
1103
1103
#ifdef VTR_ENABLE_DEBUG_LOGGING
1104
- static inline void update_router_stats (const RRGraphView* rr_graph ,
1105
- RouterStats* router_stats ,
1104
+ static inline void update_router_stats (RouterStats* router_stats ,
1105
+ bool is_push ,
1106
1106
RRNodeId rr_node_id,
1107
- bool is_push ) {
1107
+ const RRGraphView* rr_graph, ) {
1108
1108
#else
1109
- static inline void update_router_stats (const RRGraphView* /* rr_graph */ ,
1110
- RouterStats* router_stats ,
1109
+ static inline void update_router_stats (RouterStats* router_stats ,
1110
+ bool is_push ,
1111
1111
RRNodeId /* rr_node_id*/ ,
1112
- bool is_push ) {
1112
+ const RRGraphView* /* rr_graph */ ) {
1113
1113
#endif
1114
1114
if (is_push) {
1115
1115
router_stats->heap_pushes ++;
0 commit comments