diff options
Diffstat (limited to 'common/design_utils.cc')
-rw-r--r-- | common/design_utils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc index ae6e21ed..f2ce2285 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -53,16 +53,16 @@ void replace_port(CellInfo *old_cell, IdString old_name, CellInfo *rep_cell, } // Print utilisation of a design -void print_utilisation(const Design *design) +void print_utilisation(const Context *ctx) { // Sort by Bel type std::map<BelType, int> used_types; - for (auto cell : design->cells) { + for (auto cell : ctx->cells) { used_types[belTypeFromId(cell.second->type)]++; } std::map<BelType, int> available_types; - for (auto bel : design->chip.getBels()) { - available_types[design->chip.getBelType(bel)]++; + for (auto bel : ctx->getBels()) { + available_types[ctx->getBelType(bel)]++; } log("\nDesign utilisation:\n"); for (auto type : available_types) { |