@@ -208,7 +208,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
208208 const t_clb_to_clb_directs* clb_to_clb_directs,
209209 bool is_global_graph,
210210 const enum e_clock_modeling clock_modeling,
211- bool is_flat);
211+ bool is_flat,
212+ const int route_verbosity);
212213
213214static void alloc_and_load_intra_cluster_rr_graph (RRGraphBuilder& rr_graph_builder,
214215 const DeviceGrid& grid,
@@ -682,7 +683,8 @@ static void build_rr_graph(const t_graph_type graph_type,
682683 const int num_directs,
683684 int * wire_to_rr_ipin_switch,
684685 bool is_flat,
685- int * Warnings);
686+ int * Warnings,
687+ const int route_verbosity);
686688
687689static void build_intra_cluster_rr_graph (const t_graph_type graph_type,
688690 const DeviceGrid& grid,
@@ -785,7 +787,8 @@ void create_rr_graph(const t_graph_type graph_type,
785787 directs, num_directs,
786788 &det_routing_arch->wire_to_rr_ipin_switch ,
787789 is_flat,
788- Warnings);
790+ Warnings,
791+ router_opts.route_verbosity );
789792 }
790793 }
791794
@@ -1011,7 +1014,8 @@ static void build_rr_graph(const t_graph_type graph_type,
10111014 const int num_directs,
10121015 int * wire_to_rr_ipin_switch,
10131016 bool is_flat,
1014- int * Warnings) {
1017+ int * Warnings,
1018+ const int route_verbosity) {
10151019 vtr::ScopedStartFinishTimer timer (" Build routing resource graph" );
10161020
10171021 /* Reset warning flag */
@@ -1410,7 +1414,8 @@ static void build_rr_graph(const t_graph_type graph_type,
14101414 directs, num_directs, clb_to_clb_directs,
14111415 is_global_graph,
14121416 clock_modeling,
1413- is_flat);
1417+ is_flat,
1418+ route_verbosity);
14141419
14151420 // Verify no incremental node allocation.
14161421 // AA: Note that in the case of dedicated networks, we are currently underestimating the additional node count due to the clock networks.
@@ -2093,7 +2098,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
20932098 const t_clb_to_clb_directs* clb_to_clb_directs,
20942099 bool is_global_graph,
20952100 const enum e_clock_modeling clock_modeling,
2096- bool /* is_flat*/ ) {
2101+ bool /* is_flat*/ ,
2102+ const int route_verbosity) {
20972103 // We take special care when creating RR graph edges (there are typically many more
20982104 // edges than nodes in an RR graph).
20992105 //
@@ -2161,7 +2167,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
21612167 }
21622168 }
21632169
2164- VTR_LOG ( " SOURCE->OPIN and IPIN->SINK edge count:%d\n " , num_edges);
2170+ VTR_LOGV (route_verbosity > 1 , " SOURCE->OPIN and IPIN->SINK edge count:%d\n " , num_edges);
21652171 num_edges = 0 ;
21662172 /* Build opins */
21672173 int rr_edges_before_directs = 0 ;
@@ -2198,8 +2204,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
21982204 }
21992205 }
22002206
2201- VTR_LOG ( " OPIN->CHANX/CHANY edge count before creating direct connections: %d\n " , rr_edges_before_directs);
2202- VTR_LOG ( " OPIN->CHANX/CHANY edge count after creating direct connections: %d\n " , num_edges);
2207+ VTR_LOGV (route_verbosity > 1 , " OPIN->CHANX/CHANY edge count before creating direct connections: %d\n " , rr_edges_before_directs);
2208+ VTR_LOGV (route_verbosity > 1 , " OPIN->CHANX/CHANY edge count after creating direct connections: %d\n " , num_edges);
22032209
22042210 num_edges = 0 ;
22052211 /* Build channels */
@@ -2286,7 +2292,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
22862292 }
22872293
22882294
2289- VTR_LOG (" CHAN->CHAN type edge count:%d\n " , num_edges);
2295+ VTR_LOGV (route_verbosity > 1 ," CHAN->CHAN type edge count:%d\n " , num_edges);
2296+
22902297 num_edges = 0 ;
22912298 std::function<void (t_chan_width*)> update_chan_width = [](t_chan_width*) noexcept {};
22922299 if (clock_modeling == DEDICATED_NETWORK) {
0 commit comments