@@ -208,7 +208,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
208
208
const t_clb_to_clb_directs* clb_to_clb_directs,
209
209
bool is_global_graph,
210
210
const enum e_clock_modeling clock_modeling,
211
- bool is_flat);
211
+ bool is_flat,
212
+ const int route_verbosity);
212
213
213
214
static void alloc_and_load_intra_cluster_rr_graph (RRGraphBuilder& rr_graph_builder,
214
215
const DeviceGrid& grid,
@@ -682,7 +683,8 @@ static void build_rr_graph(const t_graph_type graph_type,
682
683
const int num_directs,
683
684
int * wire_to_rr_ipin_switch,
684
685
bool is_flat,
685
- int * Warnings);
686
+ int * Warnings,
687
+ const int route_verbosity);
686
688
687
689
static void build_intra_cluster_rr_graph (const t_graph_type graph_type,
688
690
const DeviceGrid& grid,
@@ -785,7 +787,8 @@ void create_rr_graph(const t_graph_type graph_type,
785
787
directs, num_directs,
786
788
&det_routing_arch->wire_to_rr_ipin_switch ,
787
789
is_flat,
788
- Warnings);
790
+ Warnings,
791
+ router_opts.route_verbosity );
789
792
}
790
793
}
791
794
@@ -1011,7 +1014,8 @@ static void build_rr_graph(const t_graph_type graph_type,
1011
1014
const int num_directs,
1012
1015
int * wire_to_rr_ipin_switch,
1013
1016
bool is_flat,
1014
- int * Warnings) {
1017
+ int * Warnings,
1018
+ const int route_verbosity) {
1015
1019
vtr::ScopedStartFinishTimer timer (" Build routing resource graph" );
1016
1020
1017
1021
/* Reset warning flag */
@@ -1410,7 +1414,8 @@ static void build_rr_graph(const t_graph_type graph_type,
1410
1414
directs, num_directs, clb_to_clb_directs,
1411
1415
is_global_graph,
1412
1416
clock_modeling,
1413
- is_flat);
1417
+ is_flat,
1418
+ route_verbosity);
1414
1419
1415
1420
// Verify no incremental node allocation.
1416
1421
// 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
2093
2098
const t_clb_to_clb_directs* clb_to_clb_directs,
2094
2099
bool is_global_graph,
2095
2100
const enum e_clock_modeling clock_modeling,
2096
- bool /* is_flat*/ ) {
2101
+ bool /* is_flat*/ ,
2102
+ const int route_verbosity) {
2097
2103
// We take special care when creating RR graph edges (there are typically many more
2098
2104
// edges than nodes in an RR graph).
2099
2105
//
@@ -2161,7 +2167,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
2161
2167
}
2162
2168
}
2163
2169
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);
2165
2171
num_edges = 0 ;
2166
2172
/* Build opins */
2167
2173
int rr_edges_before_directs = 0 ;
@@ -2198,8 +2204,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
2198
2204
}
2199
2205
}
2200
2206
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);
2203
2209
2204
2210
num_edges = 0 ;
2205
2211
/* Build channels */
@@ -2286,7 +2292,8 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
2286
2292
}
2287
2293
2288
2294
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
+
2290
2297
num_edges = 0 ;
2291
2298
std::function<void (t_chan_width*)> update_chan_width = [](t_chan_width*) noexcept {};
2292
2299
if (clock_modeling == DEDICATED_NETWORK) {
0 commit comments