Skip to content

Commit 7777fd7

Browse files
committed
vpr options: added option to disable check_route
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 2bb3101 commit 7777fd7

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
347347
RouterOpts->max_convergence_count = Options.router_max_convergence_count;
348348
RouterOpts->reconvergence_cpd_threshold = Options.router_reconvergence_cpd_threshold;
349349
RouterOpts->first_iteration_timing_report_file = Options.router_first_iteration_timing_report_file;
350-
351350
RouterOpts->strict_checks = Options.strict_checks;
351+
RouterOpts->disable_check_route = Options.disable_check_route;
352352
}
353353

354354
static void SetupAnnealSched(const t_options& Options,

vpr/src/base/read_options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,11 @@ static argparse::ArgumentParser create_arg_parser(std::string prog_name, t_optio
15511551
.default_value("")
15521552
.show_in(argparse::ShowIn::HELP_ONLY);
15531553

1554+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1555+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1556+
.default_value("off")
1557+
.show_in(argparse::ShowIn::HELP_ONLY);
1558+
15541559
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
15551560
.help(
15561561
"Controls when router debugging is enabled.\n"

vpr/src/base/read_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ struct t_options {
120120
argparse::ArgValue<bool> verify_binary_search;
121121
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
122122
argparse::ArgValue<int> min_incremental_reroute_fanout;
123+
argparse::ArgValue<bool> disable_check_route;
123124

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

vpr/src/base/vpr_api.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,9 @@ RouteStatus vpr_route_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
666666
std::string graphics_msg;
667667
if (route_status.success()) {
668668
//Sanity check the routing
669-
check_route(router_opts.route_type);
669+
if (!router_opts.disable_check_route) {
670+
check_route(router_opts.route_type);
671+
}
670672
get_serial_num();
671673

672674
//Update status

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ struct t_router_opts {
947947
float reconvergence_cpd_threshold;
948948
std::string first_iteration_timing_report_file;
949949
bool strict_checks;
950+
bool disable_check_route;
950951
};
951952

952953
struct t_analysis_opts {

0 commit comments

Comments
 (0)