Skip to content

Commit e6fae2e

Browse files
acomodilitghost
authored andcommitted
vpr options: added option to disable check_route
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent c26370e commit e6fae2e

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
@@ -371,11 +371,11 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
371371
RouterOpts->max_convergence_count = Options.router_max_convergence_count;
372372
RouterOpts->reconvergence_cpd_threshold = Options.router_reconvergence_cpd_threshold;
373373
RouterOpts->first_iteration_timing_report_file = Options.router_first_iteration_timing_report_file;
374-
375374
RouterOpts->strict_checks = Options.strict_checks;
376375

377376
RouterOpts->write_router_lookahead = Options.write_router_lookahead;
378377
RouterOpts->read_router_lookahead = Options.read_router_lookahead;
378+
RouterOpts->disable_check_route = Options.disable_check_route;
379379
}
380380

381381
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
@@ -1620,6 +1620,11 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
16201620
.default_value("")
16211621
.show_in(argparse::ShowIn::HELP_ONLY);
16221622

1623+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1624+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1625+
.default_value("off")
1626+
.show_in(argparse::ShowIn::HELP_ONLY);
1627+
16231628
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
16241629
.help(
16251630
"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
@@ -133,6 +133,7 @@ struct t_options {
133133
argparse::ArgValue<bool> verify_binary_search;
134134
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
135135
argparse::ArgValue<int> min_incremental_reroute_fanout;
136+
argparse::ArgValue<bool> disable_check_route;
136137

137138
/* Timing-driven router options only */
138139
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
@@ -688,7 +688,9 @@ RouteStatus vpr_route_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
688688
std::string graphics_msg;
689689
if (route_status.success()) {
690690
//Sanity check the routing
691-
check_route(router_opts.route_type);
691+
if (!router_opts.disable_check_route) {
692+
check_route(router_opts.route_type);
693+
}
692694
get_serial_num();
693695

694696
//Update status

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ struct t_router_opts {
949949

950950
std::string write_router_lookahead;
951951
std::string read_router_lookahead;
952+
bool disable_check_route;
952953
};
953954

954955
struct t_analysis_opts {

0 commit comments

Comments
 (0)