Skip to content

Commit 95e5f35

Browse files
committed
[vpr][rr_graph] pass route verbosity to rr_graph writer
1 parent 618fcee commit 95e5f35

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

libs/librrgraph/src/io/rr_graph_writer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ void write_rr_graph(RRGraphBuilder* rr_graph_builder,
3838
const char* file_name,
3939
bool echo_enabled,
4040
const char* echo_file_name,
41+
const int route_verbosity,
4142
bool is_flat) {
4243

4344
unsigned long schema_file_id = 0;
4445
#ifdef VTR_ENABLE_CAPNPROTO
4546
::capnp::Schema schema = ::capnp::Schema::from<ucap::RrGraph>();
4647
schema_file_id = schema.getProto().getScopeId();
47-
VTR_LOG("Schema file ID: 0x%016lx\n", schema_file_id);
48+
VTR_LOGV(route_verbosity > 1, "Schema file ID: 0x%016lx\n", schema_file_id);
4849
#endif
4950

5051
RrGraphSerializer reader(

libs/librrgraph/src/io/rr_graph_writer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ void write_rr_graph(RRGraphBuilder* rr_graph_builder,
2323
const char* file_name,
2424
bool echo_enabled,
2525
const char* echo_file_name,
26+
const int route_verbosity,
2627
bool is_flat);

utils/fasm/test/test_fasm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ TEST_CASE("fasm_integration_test", "[fasm]") {
295295
kRrGraphFile,
296296
echo_enabled,
297297
echo_file_name,
298+
vpr_setup.RouterOpts.route_verbosity,
298299
is_flat);
299300
vpr_free_all(arch, vpr_setup);
300301
}

vpr/src/route/rr_graph_generation/rr_graph.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ void create_rr_graph(e_graph_type graph_type,
587587
det_routing_arch.write_rr_graph_filename.c_str(),
588588
echo_enabled,
589589
echo_file_name,
590+
router_opts.route_verbosity,
590591
is_flat);
591592
}
592593
}

vpr/test/test_vpr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ TEST_CASE("read_rr_graph_metadata", "[vpr]") {
168168
kRrGraphFile,
169169
echo_enabled,
170170
echo_file_name,
171+
vpr_setup.RouterOpts.route_verbosity,
171172
false);
172173
vpr_free_all(arch, vpr_setup);
173174
}
@@ -290,6 +291,7 @@ TEST_CASE("read_rr_edge_override", "[vpr]") {
290291
rr_graph_filename.c_str(),
291292
echo_enabled,
292293
echo_file_name,
294+
vpr_setup.RouterOpts.route_verbosity,
293295
false);
294296

295297
vpr_free_all(arch, vpr_setup);
@@ -334,6 +336,7 @@ TEST_CASE("read_rr_edge_override", "[vpr]") {
334336
overridden_rr_graph_filename.c_str(),
335337
echo_enabled,
336338
echo_file_name,
339+
vpr_setup.RouterOpts.route_verbosity,
337340
false);
338341

339342
vpr_free_all(arch, vpr_setup);

0 commit comments

Comments
 (0)