Skip to content

Commit d1d5956

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

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
@@ -349,11 +349,11 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
349349
RouterOpts->max_convergence_count = Options.router_max_convergence_count;
350350
RouterOpts->reconvergence_cpd_threshold = Options.router_reconvergence_cpd_threshold;
351351
RouterOpts->first_iteration_timing_report_file = Options.router_first_iteration_timing_report_file;
352-
353352
RouterOpts->strict_checks = Options.strict_checks;
354353

355354
RouterOpts->write_router_lookahead = Options.write_router_lookahead;
356355
RouterOpts->read_router_lookahead = Options.read_router_lookahead;
356+
RouterOpts->disable_check_route = Options.disable_check_route;
357357
}
358358

359359
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
@@ -1611,6 +1611,11 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
16111611
.default_value("")
16121612
.show_in(argparse::ShowIn::HELP_ONLY);
16131613

1614+
route_timing_grp.add_argument<bool, ParseOnOff>(args.disable_check_route, "--disable_check_route")
1615+
.help("Disables check_route once routing step has finished or when routing file is loaded")
1616+
.default_value("off")
1617+
.show_in(argparse::ShowIn::HELP_ONLY);
1618+
16141619
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
16151620
.help(
16161621
"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
@@ -132,6 +132,7 @@ struct t_options {
132132
argparse::ArgValue<bool> verify_binary_search;
133133
argparse::ArgValue<e_router_algorithm> RouterAlgorithm;
134134
argparse::ArgValue<int> min_incremental_reroute_fanout;
135+
argparse::ArgValue<bool> disable_check_route;
135136

136137
/* Timing-driven router options only */
137138
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
@@ -674,7 +674,9 @@ RouteStatus vpr_route_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
674674
std::string graphics_msg;
675675
if (route_status.success()) {
676676
//Sanity check the routing
677-
check_route(router_opts.route_type);
677+
if (!router_opts.disable_check_route) {
678+
check_route(router_opts.route_type);
679+
}
678680
get_serial_num();
679681

680682
//Update status

vpr/src/base/vpr_types.h

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

951951
std::string write_router_lookahead;
952952
std::string read_router_lookahead;
953+
bool disable_check_route;
953954
};
954955

955956
struct t_analysis_opts {

0 commit comments

Comments
 (0)