diff options
Diffstat (limited to 'common/design_utils.cc')
-rw-r--r-- | common/design_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc index f2ce2285..b0c87484 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -58,7 +58,7 @@ void print_utilisation(const Context *ctx) // Sort by Bel type std::map<BelType, int> used_types; for (auto cell : ctx->cells) { - used_types[belTypeFromId(cell.second->type)]++; + used_types[ctx->belTypeFromId(cell.second->type)]++; } std::map<BelType, int> available_types; for (auto bel : ctx->getBels()) { @@ -66,7 +66,7 @@ void print_utilisation(const Context *ctx) } log("\nDesign utilisation:\n"); for (auto type : available_types) { - log("\t%20s: %5d/%5d\n", belTypeToId(type.first).c_str(), + log("\t%20s: %5d/%5d\n", ctx->belTypeToId(type.first).c_str(), get_or_default(used_types, type.first, 0), type.second); } } |