aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-21 21:40:06 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-21 21:40:06 +0200
commit30e2f0e1e8cfdb24abe6c3a8013691497c706975 (patch)
treeb6f1ed038065063dbfbca1cbd88d2f7cf4f7e8a1 /ice40
parentf438fc615b829170679971110b5d1bb57fba6a86 (diff)
downloadnextpnr-30e2f0e1e8cfdb24abe6c3a8013691497c706975.tar.gz
nextpnr-30e2f0e1e8cfdb24abe6c3a8013691497c706975.tar.bz2
nextpnr-30e2f0e1e8cfdb24abe6c3a8013691497c706975.zip
Add Loc constructors
Signed-off-by: Clifford Wolf <clifford@clifford.at>
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 e9a7d2b6..bbed4000 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) {