diff options
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.cc | 7 |
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) { |