Skip to content

Commit 2409525

Browse files
committed
vpr options: added option to disable check_route
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 35d1036 commit 2409525

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
@@ -1533,6 +1533,11 @@ static argparse::ArgumentParser create_arg_parser(std::string prog_name, t_optio
15331533
.default_value("")
15341534
.show_in(argparse::ShowIn::HELP_ONLY);
15351535

1536+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1537+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1538+
.default_value("off")
1539+
.show_in(argparse::ShowIn::HELP_ONLY);
1540+
15361541
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
15371542
.help(
15381543
"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
@@ -118,6 +118,7 @@ struct t_options {
118118
argparse::ArgValue<bool> verify_binary_search;
119119
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
120120
argparse::ArgValue<int> min_incremental_reroute_fanout;
121+
argparse::ArgValue<bool> disable_check_route;
121122

122123
/* Timing-driven router options only */
123124
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
@@ -636,7 +636,9 @@ RouteStatus vpr_route_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
636636
std::string graphics_msg;
637637
if (route_status.success()) {
638638
//Sanity check the routing
639-
check_route(router_opts.route_type);
639+
if (!router_opts.disable_check_route) {
640+
check_route(router_opts.route_type);
641+
}
640642
get_serial_num();
641643

642644
//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)