Skip to content

Commit 1ae9f51

Browse files
committed
[vpr][base] add read init place
1 parent 843df0a commit 1ae9f51

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ static void SetupPlacerOpts(const t_options& Options, t_placer_opts* PlacerOpts)
639639

640640
PlacerOpts->write_initial_place_file = Options.write_initial_place_file;
641641

642+
PlacerOpts->read_initial_place_file = Options.read_initial_place_file;
643+
642644
PlacerOpts->pad_loc_type = Options.pad_loc_type;
643645

644646
PlacerOpts->place_chan_width = Options.PlaceChanWidth;

vpr/src/base/read_options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,6 +1632,11 @@ argparse::ArgumentParser create_arg_parser(const std::string& prog_name, t_optio
16321632
.metavar("INITIAL_PLACE_FILE")
16331633
.show_in(argparse::ShowIn::HELP_ONLY);
16341634

1635+
file_grp.add_argument(args.read_initial_place_file, "--read_initial_place_file")
1636+
.help("Writes out the the placement chosen by the initial placement algorithm to the specified file")
1637+
.metavar("INITIAL_PLACE_FILE")
1638+
.show_in(argparse::ShowIn::HELP_ONLY);
1639+
16351640
file_grp.add_argument(args.read_vpr_constraints_file, "--read_vpr_constraints")
16361641
.help("Reads the floorplanning constraints that packing and placement must respect from the specified XML file.")
16371642
.show_in(argparse::ShowIn::HELP_ONLY);

vpr/src/base/read_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ struct t_options {
2929
argparse::ArgValue<std::string> write_rr_graph_file;
3030
argparse::ArgValue<std::string> read_rr_graph_file;
3131
argparse::ArgValue<std::string> write_initial_place_file;
32+
argparse::ArgValue<std::string> read_initial_place_file;
3233
argparse::ArgValue<std::string> read_vpr_constraints_file;
3334
argparse::ArgValue<std::string> write_vpr_constraints_file;
3435
argparse::ArgValue<std::string> write_constraints_file;

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ struct t_placer_opts {
12361236
enum e_pad_loc_type pad_loc_type;
12371237
std::string constraints_file;
12381238
std::string write_initial_place_file;
1239+
std::string read_initial_place_file;
12391240
enum pfreq place_freq;
12401241
int recompute_crit_iter;
12411242
int inner_loop_recompute_divider;

0 commit comments

Comments
 (0)