aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 7c183f6c..5d7d1fb4 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -279,12 +279,7 @@ BelRange Arch::getBelsByTile(int x, int y) const
// In iCE40 chipdb bels at the same tile are consecutive and dense z ordinates are used
BelRange br;
- Loc loc;
- loc.x = x;
- loc.y = y;
- loc.z = 0;
-
- br.b.cursor = Arch::getBelByLocation(loc).index;
+ br.b.cursor = Arch::getBelByLocation(Loc(x, y, 0)).index;
br.e.cursor = br.b.cursor;
if (br.e.cursor != -1) {