aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.h')
-rw-r--r--ice40/arch.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index 805876e4..f86428a9 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -350,6 +350,7 @@ struct Arch : BaseCtx
mutable std::unordered_map<IdString, int> bel_by_name;
mutable std::unordered_map<IdString, int> wire_by_name;
mutable std::unordered_map<IdString, int> pip_by_name;
+ mutable std::unordered_map<Loc, int> bel_by_loc;
std::vector<IdString> bel_to_cell;
std::vector<IdString> wire_to_net;
@@ -449,18 +450,8 @@ struct Arch : BaseCtx
return loc;
}
- BelId getBelByLocation(int x, int y, int z) const
- {
- // FIXME
- return BelId();
- }
-
- BelRange getBelsByTile(int x, int y) const
- {
- BelRange range;
- // FIXME
- return range;
- }
+ BelId getBelByLocation(int x, int y, int z) const;
+ BelRange getBelsByTile(int x, int y) const;
bool getBelGlobalBuf(BelId bel) const
{