From d14db5c98f98659746ff89f61d68eeee1cc9d84c Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 15 Apr 2021 09:24:27 +0100 Subject: Fix utilisation report when bel buckets are used Signed-off-by: gatecat --- common/design_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/design_utils.cc b/common/design_utils.cc index b81449b7..7eaffdc3 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -67,12 +67,12 @@ void print_utilisation(const Context *ctx) // Sort by Bel type std::map used_types; for (auto &cell : ctx->cells) { - used_types[cell.second.get()->type]++; + used_types[ctx->getBelBucketName(ctx->getBelBucketForCellType(cell.second.get()->type))]++; } std::map available_types; for (auto bel : ctx->getBels()) { if (!ctx->getBelHidden(bel)) { - available_types[ctx->getBelType(bel)]++; + available_types[ctx->getBelBucketName(ctx->getBelBucketForBel(bel))]++; } } log_break(); -- cgit v1.2.3