Skip to content

Commit 4b4e375

Browse files
committed
vpr options: added option to disable check_route
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 8004e3f commit 4b4e375

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
@@ -1575,6 +1575,11 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
15751575
.default_value("")
15761576
.show_in(argparse::ShowIn::HELP_ONLY);
15771577

1578+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1579+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1580+
.default_value("off")
1581+
.show_in(argparse::ShowIn::HELP_ONLY);
1582+
15781583
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
15791584
.help(
15801585
"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
@@ -124,6 +124,7 @@ struct t_options {
124124
argparse::ArgValue<bool> verify_binary_search;
125125
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
126126
argparse::ArgValue<int> min_incremental_reroute_fanout;
127+
argparse::ArgValue<bool> disable_check_route;
127128

128129
/* Timing-driven router options only */
129130
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
@@ -676,7 +676,9 @@ RouteStatus vpr_route_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
676676
std::string graphics_msg;
677677
if (route_status.success()) {
678678
//Sanity check the routing
679-
check_route(router_opts.route_type);
679+
if (!router_opts.disable_check_route) {
680+
check_route(router_opts.route_type);
681+
}
680682
get_serial_num();
681683

682684
//Update status

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ struct t_router_opts {
952952
float reconvergence_cpd_threshold;
953953
std::string first_iteration_timing_report_file;
954954
bool strict_checks;
955+
bool disable_check_route;
955956
};
956957

957958
struct t_analysis_opts {

0 commit comments

Comments
 (0)