Skip to content

Commit 75bb145

Browse files
fix aggregate bandwidth weighting factor command line option
1 parent d4ac787 commit 75bb145

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ static void SetupNocOpts(const t_options& Options, t_noc_opts* NocOpts) {
741741
NocOpts->noc_congestion_weighting = Options.noc_congestion_weighting;
742742
NocOpts->noc_swap_percentage = Options.noc_swap_percentage;
743743
NocOpts->noc_placement_file_name = Options.noc_placement_file_name;
744-
745-
return;
746744
}
747745

748746
static void find_ipin_cblock_switch_index(const t_arch& Arch, int& wire_to_arch_ipin_switch, int& wire_to_arch_ipin_switch_between_dice) {

vpr/src/base/ShowSetup.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static void ShowPlacerOpts(const t_placer_opts& PlacerOpts,
608608
}
609609

610610
VTR_LOG("PlacerOpts.constraints_file: ");
611-
if (PlacerOpts.constraints_file == "") {
611+
if (PlacerOpts.constraints_file.empty()) {
612612
VTR_LOG("No constraints file given\n");
613613
} else {
614614
VTR_LOG("Using constraints file '%s'\n", PlacerOpts.constraints_file.c_str());
@@ -795,6 +795,7 @@ static void ShowNocOpts(const t_noc_opts& NocOpts) {
795795
VTR_LOG("NocOpts.noc_flows_file: %s\n", NocOpts.noc_flows_file.c_str());
796796
VTR_LOG("NocOpts.noc_routing_algorithm: %s\n", NocOpts.noc_routing_algorithm.c_str());
797797
VTR_LOG("NocOpts.noc_placement_weighting: %f\n", NocOpts.noc_placement_weighting);
798+
VTR_LOG("NocOpts.noc_aggregate_bandwidth_weighting: %f\n", NocOpts.noc_aggregate_bandwidth_weighting);
798799
VTR_LOG("NocOpts.noc_latency_constraints_weighting: %f\n", NocOpts.noc_latency_constraints_weighting);
799800
VTR_LOG("NocOpts.noc_latency_weighting: %f\n", NocOpts.noc_latency_weighting);
800801
VTR_LOG("NocOpts.noc_congestion_weighting: %f\n", NocOpts.noc_congestion_weighting);

vpr/src/base/read_options.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,10 +2823,13 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
28232823
.default_value("5.0")
28242824
.show_in(argparse::ShowIn::HELP_ONLY);
28252825

2826-
noc_grp.add_argument<double>(args.noc_latency_constraints_weighting, "--noc_aggregate_bandwidth_weighting")
2826+
noc_grp.add_argument<double>(args.noc_agg_bandwidth_weighting, "--noc_aggregate_bandwidth_weighting")
28272827
.help(
2828-
"Controls the importance of meeting all the NoC traffic flow latency constraints."
2829-
"This value can be >=0, where 0 would mean the latency constraints have no relevance to placement, a value of 1 would mean the latency constraints are weighted equally to the sum of other placement cost components and a value greater than 1 would mean the placement is increasingly dominated by meeting the latency constraints of the traffic flows.")
2828+
"Controls the importance of minimizing the NoC aggregate bandwidth.\n"
2829+
"This value can be >=0, where 0 would mean the aggregate bandwidth has no relevance to placement.\n"
2830+
"Other positive numbers specify the importance of minimizing the NoC aggregate bandwidth to other NoC-related cost terms.\n"
2831+
"Weighting factors for NoC-related cost terms are normalized internally. Therefore, their absolute values are not important, and"
2832+
"only their relative ratios determine the importance of each cost term.")
28302833
.default_value("0.38")
28312834
.show_in(argparse::ShowIn::HELP_ONLY);
28322835

0 commit comments

Comments
 (0)