diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-18 14:06:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-18 14:06:37 +0200 |
commit | 8ee149f4fcb66cb61aa729263448c0935fb4d2ad (patch) | |
tree | 545282eae56973d52a88600d1cf82196970ecad7 /common/design_utils.cc | |
parent | ad18cdb08787c4ecc88edaec353a96f59135c62d (diff) | |
download | nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.tar.gz nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.tar.bz2 nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.zip |
Rename Design to Context, derive from Arch instead of instantiating
Signed-off-by: Clifford Wolf <clifford@clifford.at>
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) { |