Skip to content

Commit 942952d

Browse files
committed
added new command line options for the NoC
1 parent 18d75e2 commit 942952d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

vpr/src/base/read_options.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,6 +2483,23 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
24832483
.help("Signal activities file for all nets (see documentation).")
24842484
.show_in(argparse::ShowIn::HELP_ONLY);
24852485

2486+
auto& noc_grp = parser.add_argument_group("noc options");
2487+
2488+
noc_grp.add_argument<bool, ParseOnOff>(args.include_noc, "--include_noc")
2489+
.help(
2490+
"Enables a NoC-driven placer that optimizes the placement of routers on the NoC."
2491+
"Also enables an option in the graphical display that can be used to display the NoC on the FPGA."
2492+
"This should be on only when the FPGA device contains a NoC and the provided netlist connects to the NoC.")
2493+
.default_value("off")
2494+
.show_in(argparse::ShowIn::HELP_ONLY);
2495+
2496+
noc_grp.add_argument(args.noc_router_tile_name, "--noc_router_tile_name")
2497+
.help(
2498+
"The name used when describing the NoC router tiles in the FPGA architecture description."
2499+
"This needs to be provided if --include_noc is used.")
2500+
.default_value("")
2501+
.show_in(argparse::ShowIn::HELP_ONLY);
2502+
24862503
return parser;
24872504
}
24882505

vpr/src/base/read_options.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ struct t_options {
133133
argparse::ArgValue<float> place_crit_limit;
134134
argparse::ArgValue<int> place_constraint_expand;
135135
argparse::ArgValue<bool> place_constraint_subtile;
136+
// NoC-driven placement
137+
argparse::ArgValue<bool> include_noc;
138+
argparse::ArgValue<std::string> noc_router_tile_name;
136139

137140
/* Timing-driven placement options only */
138141
argparse::ArgValue<float> PlaceTimingTradeoff;

0 commit comments

Comments
 (0)