aboutsummaryrefslogtreecommitdiffstats
path: root/common/design_utils.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-12 09:53:50 +0000
committerGitHub <noreply@github.com>2021-02-12 09:53:50 +0000
commit5dfbe703ae26e6af2a1a687c06f001b6788d6fc8 (patch)
tree85a04ec931762d61c0ef668bc404d00bd4c699bc /common/design_utils.cc
parente376f950fe683b9a744437301a9e09eae1895efa (diff)
parent99e397000c2bc8a80354c31ef259c6715dd142ff (diff)
downloadnextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.gz
nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.bz2
nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.zip
Merge pull request #581 from litghost/add_isbelhidden
Add getBelHidden and add some missing "override" statements.
Diffstat (limited to 'common/design_utils.cc')
-rw-r--r--common/design_utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc
index 16cc2710..b81449b7 100644
--- a/common/design_utils.cc
+++ b/common/design_utils.cc
@@ -71,7 +71,9 @@ void print_utilisation(const Context *ctx)
}
std::map<IdString, int> available_types;
for (auto bel : ctx->getBels()) {
- available_types[ctx->getBelType(bel)]++;
+ if (!ctx->getBelHidden(bel)) {
+ available_types[ctx->getBelType(bel)]++;
+ }
}
log_break();
log_info("Device utilisation:\n");