Skip to content

Commit 65eece7

Browse files
committed
fix a typo
1 parent cd2b546 commit 65eece7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

vpr/src/base/read_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,7 @@ argparse::ArgumentParser create_arg_parser(const std::string& prog_name, t_optio
32833283
auto& crr_grp = parser.add_argument_group("CRR options");
32843284

32853285
crr_grp.add_argument(args.sb_maps, "--sb_maps")
3286-
.help("Switch block map file that specifed the switch block template used for each location")
3286+
.help("Switch block map file that specifies the switch block template used for each location")
32873287
.default_value("")
32883288
.show_in(argparse::ShowIn::HELP_ONLY);
32893289

vpr/src/base/stats.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ namespace fs = std::filesystem;
3333
/********************** Subroutines local to this module *********************/
3434

3535
// Helper struct to parse the sb_id keys
36+
// Using anonymous namespace to avoid polluting the global namespace
37+
namespace {
3638
struct SBKeyParts {
3739
std::string filename;
3840
int row;
3941
int col;
4042
};
43+
}
4144

4245
// Parse the key to extract filename, row, and column
4346
static SBKeyParts parse_sb_key(const std::string& key) {
@@ -60,6 +63,7 @@ static std::vector<std::vector<std::string>> read_and_trim_csv(const std::string
6063
std::ifstream file(filepath);
6164

6265
if (!file.is_open()) {
66+
VTR_LOG_ERROR("Failed to open file: %s\n", filepath.c_str());
6367
return data;
6468
}
6569

@@ -216,8 +220,8 @@ void routing_stats(const Netlist<>& net_list,
216220
void write_sb_count_stats(const Netlist<>& net_list,
217221
const std::string& sb_map_dir,
218222
const std::string& sb_count_dir) {
219-
const auto& rr_graph = g_vpr_ctx.device().rr_graph;
220-
const auto& route_ctx = g_vpr_ctx.routing();
223+
const RRGraphView& rr_graph = g_vpr_ctx.device().rr_graph;
224+
const RoutingContext& route_ctx = g_vpr_ctx.routing();
221225
std::unordered_map<std::string, int> sb_count;
222226

223227
for (ParentNetId net_id : net_list.nets()) {

0 commit comments

Comments
 (0)