aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-23 13:16:27 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-23 13:16:27 +0200
commit90fe002a36a9b90cd6d003d34398242a5d5affb6 (patch)
tree03505d921883b18d32c8e6221afe61c627fe9a71 /generic
parentbfa1137fe03a62bf4bcef1d039d520116cc5a13a (diff)
downloadnextpnr-90fe002a36a9b90cd6d003d34398242a5d5affb6.tar.gz
nextpnr-90fe002a36a9b90cd6d003d34398242a5d5affb6.tar.bz2
nextpnr-90fe002a36a9b90cd6d003d34398242a5d5affb6.zip
Remove getBelsByType() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc10
-rw-r--r--generic/arch.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 4fc07613..0fff2e4c 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -75,8 +75,6 @@ void Arch::addBel(IdString name, IdString type, Loc loc, bool gb)
bi.gb = gb;
bel_ids.push_back(name);
- bel_ids_by_type[type].push_back(name);
-
bel_by_loc[loc] = name;
if (bels_by_tile.size() <= loc.x)
@@ -225,14 +223,6 @@ IdString Arch::getConflictingBelCell(BelId bel) const { return bels.at(bel).boun
const std::vector<BelId> &Arch::getBels() const { return bel_ids; }
-const std::vector<BelId> &Arch::getBelsByType(BelType type) const
-{
- static std::vector<BelId> empty_list;
- if (bel_ids_by_type.count(type))
- return bel_ids_by_type.at(type);
- return empty_list;
-}
-
BelType Arch::getBelType(BelId bel) const { return bels.at(bel).type; }
WireId Arch::getBelPinWire(BelId bel, PortPin pin) const { return bels.at(bel).pins.at(pin).wire; }
diff --git a/generic/arch.h b/generic/arch.h
index 5f0df988..61e6b033 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -84,7 +84,6 @@ struct Arch : BaseCtx
std::unordered_map<GroupId, GroupInfo> groups;
std::vector<IdString> bel_ids, wire_ids, pip_ids;
- std::unordered_map<IdString, std::vector<IdString>> bel_ids_by_type;
std::unordered_map<Loc, BelId> bel_by_loc;
std::vector<std::vector<std::vector<BelId>>> bels_by_tile;
@@ -151,7 +150,6 @@ struct Arch : BaseCtx
IdString getBoundBelCell(BelId bel) const;
IdString getConflictingBelCell(BelId bel) const;
const std::vector<BelId> &getBels() const;
- const std::vector<BelId> &getBelsByType(BelType type) const;
BelType getBelType(BelId bel) const;
WireId getBelPinWire(BelId bel, PortPin pin) const;
PortType getBelPinType(BelId bel, PortPin pin) const;