Skip to content

Commit 11d32fa

Browse files
committed
[vpr][base] adding back preserve ipin/opin
1 parent 1ce35ad commit 11d32fa

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

vpr/src/base/read_options.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3297,8 +3297,13 @@ argparse::ArgumentParser create_arg_parser(const std::string& prog_name, t_optio
32973297
.default_value("1")
32983298
.show_in(argparse::ShowIn::HELP_ONLY);
32993299

3300-
crr_grp.add_argument<bool, ParseOnOff>(args.preserve_pin_connections, "--preserve_pin_connections")
3301-
.help("If it set to on, the pin connections will be generated by the default flow and not from the CRR template")
3300+
crr_grp.add_argument<bool, ParseOnOff>(args.preserve_input_pin_connections, "--preserve_input_pin_connections")
3301+
.help("If it set to on, the input pin connections will be generated by the default flow and not from the CRR template")
3302+
.default_value("off")
3303+
.show_in(argparse::ShowIn::HELP_ONLY);
3304+
3305+
crr_grp.add_argument<bool, ParseOnOff>(args.preserve_output_pin_connections, "--preserve_output_pin_connections")
3306+
.help("If it set to on, the output pin connections will be generated by the default flow and not from the CRR template")
33023307
.default_value("off")
33033308
.show_in(argparse::ShowIn::HELP_ONLY);
33043309

vpr/src/base/read_options.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ struct t_options {
289289
argparse::ArgValue<std::string> sb_maps;
290290
argparse::ArgValue<std::string> sb_templates;
291291
argparse::ArgValue<int> crr_num_threads;
292-
argparse::ArgValue<bool> preserve_pin_connections;
292+
argparse::ArgValue<bool> preserve_input_pin_connections;
293+
argparse::ArgValue<bool> preserve_output_pin_connections;
293294
argparse::ArgValue<bool> annotated_rr_graph;
294295
};
295296

vpr/src/base/setup_vpr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ static void setup_crr_opts(const t_options& Options, t_crr_opts& crr_opts) {
762762
crr_opts.sb_maps = Options.sb_maps;
763763
crr_opts.sb_templates = Options.sb_templates;
764764
crr_opts.crr_num_threads = Options.crr_num_threads;
765-
crr_opts.preserve_pin_connections = Options.preserve_pin_connections;
765+
crr_opts.preserve_input_pin_connections = Options.preserve_input_pin_connections;
766+
crr_opts.preserve_output_pin_connections = Options.preserve_output_pin_connections;
766767
crr_opts.annotated_rr_graph = Options.annotated_rr_graph;
767768
}
768769

vpr/src/base/vpr_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,8 @@ struct t_crr_opts {
14151415
std::string sb_maps;
14161416
std::string sb_templates;
14171417
int crr_num_threads;
1418-
bool preserve_pin_connections;
1418+
bool preserve_input_pin_connections;
1419+
bool preserve_output_pin_connections;
14191420
bool annotated_rr_graph;
14201421
};
14211422

0 commit comments

Comments
 (0)