Skip to content

Commit 8d4e7e1

Browse files
committed
added route verbosity feature
1 parent b69fa0e commit 8d4e7e1

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

doc/src/vpr/command_line_usage.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,13 @@ VPR uses a negotiated congestion algorithm (based on Pathfinder) to perform rout
12921292
* `swns` - setup Worst Negative Slack (sWNS) [ns]
12931293
* `stns` - Setup Total Negative Slack (sTNS) [ns]
12941294

1295+
.. option:: --route_verbosity <int>
1296+
1297+
Controls the verbosity of routing output.
1298+
High values produce more detailed output, which can be useful for debugging or understanding the routing process.
1299+
1300+
**Default**: ``1``
1301+
12951302
.. _timing_driven_router_options:
12961303

12971304
Timing-Driven Router Options

vpr/src/base/SetupVPR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
435435
RouterOpts->pres_fac_mult = Options.pres_fac_mult;
436436
RouterOpts->max_pres_fac = Options.max_pres_fac;
437437
RouterOpts->route_type = Options.RouteType;
438+
RouterOpts->route_verbosity = Options.route_verbosity;
438439

439440
RouterOpts->full_stats = Options.full_stats;
440441

vpr/src/base/read_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ struct t_options {
218218
argparse::ArgValue<int> reorder_rr_graph_nodes_seed;
219219
argparse::ArgValue<bool> flat_routing;
220220
argparse::ArgValue<bool> has_choking_spot;
221+
argparse::ArgValue<int> route_verbosity;
221222

222223
/* Timing-driven router options only */
223224
argparse::ArgValue<float> astar_fac;

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ struct t_router_opts {
13871387
int router_debug_iteration;
13881388
e_router_lookahead lookahead_type;
13891389
int max_convergence_count;
1390+
int route_verbosity;
13901391
float reconvergence_cpd_threshold;
13911392
e_router_initial_timing initial_timing;
13921393
bool update_lower_bound_delays;

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
22072207
}
22082208
}
22092209
}
2210-
VTR_LOG("CHAN->CHAN type edge count:%d\n", num_edges);
2210+
VTR_LOGV(verbosity > 1,"CHAN->CHAN type edge count:%d\n", num_edges);
22112211
num_edges = 0;
22122212
std::function<void(t_chan_width*)> update_chan_width = [](t_chan_width*) noexcept {};
22132213
if (clock_modeling == DEDICATED_NETWORK) {

0 commit comments

Comments
 (0)