Skip to content

Commit ec96472

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

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

1572+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1573+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1574+
.default_value("off")
1575+
.show_in(argparse::ShowIn::HELP_ONLY);
1576+
15721577
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
15731578
.help(
15741579
"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
@@ -123,6 +123,7 @@ struct t_options {
123123
argparse::ArgValue<bool> verify_binary_search;
124124
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
125125
argparse::ArgValue<int> min_incremental_reroute_fanout;
126+
argparse::ArgValue<bool> disable_check_route;
126127

127128
/* Timing-driven router options only */
128129
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
@@ -951,6 +951,7 @@ struct t_router_opts {
951951
float reconvergence_cpd_threshold;
952952
std::string first_iteration_timing_report_file;
953953
bool strict_checks;
954+
bool disable_check_route;
954955
};
955956

956957
struct t_analysis_opts {

0 commit comments

Comments
 (0)