Skip to content

Commit 984125b

Browse files
authored
Merge pull request #48 from antmicro/disable-check-route-option
vpr options: added option to disable check_route
2 parents 1253595 + 2285168 commit 984125b

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts *RouterOpts)
368368
RouterOpts->max_convergence_count = Options.router_max_convergence_count;
369369
RouterOpts->reconvergence_cpd_threshold = Options.router_reconvergence_cpd_threshold;
370370
RouterOpts->first_iteration_timing_report_file = Options.router_first_iteration_timing_report_file;
371+
RouterOpts->disable_check_route = Options.disable_check_route;
371372
}
372373

373374
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
@@ -1337,6 +1337,11 @@ static argparse::ArgumentParser create_arg_parser(std::string prog_name, t_optio
13371337
.default_value("")
13381338
.show_in(argparse::ShowIn::HELP_ONLY);
13391339

1340+
route_timing_grp.add_argument<bool,ParseOnOff>(args.disable_check_route, "--disable_check_route")
1341+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1342+
.default_value("off")
1343+
.show_in(argparse::ShowIn::HELP_ONLY);
1344+
13401345
auto& analysis_grp = parser.add_argument_group("analysis options");
13411346

13421347
analysis_grp.add_argument<bool,ParseOnOff>(args.full_stats, "--full_stats")

vpr/src/base/read_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct t_options {
115115
argparse::ArgValue<bool> verify_binary_search;
116116
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
117117
argparse::ArgValue<int> min_incremental_reroute_fanout;
118+
argparse::ArgValue<bool> disable_check_route;
118119

119120
/* Timing-driven router options only */
120121
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
@@ -878,6 +878,7 @@ struct t_router_opts {
878878
int max_convergence_count;
879879
float reconvergence_cpd_threshold;
880880
std::string first_iteration_timing_report_file;
881+
bool disable_check_route;
881882
};
882883

883884
struct t_analysis_opts {

0 commit comments

Comments
 (0)