aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-20 17:33:57 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-20 17:33:57 +0200
commitf6fa0300ae95a0896a12b9acf0c7e76851c13d37 (patch)
tree13fbcf6ace44f5c523830469104314474534009e /ice40/arch.h
parente16b4a325e2b0721e29cba93804923dedf74a68c (diff)
downloadnextpnr-f6fa0300ae95a0896a12b9acf0c7e76851c13d37.tar.gz
nextpnr-f6fa0300ae95a0896a12b9acf0c7e76851c13d37.tar.bz2
nextpnr-f6fa0300ae95a0896a12b9acf0c7e76851c13d37.zip
Improve iCE40 and common Loc code
Signed-off-by: Clifford Wolf <clifford@clifford.at>
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
{