diff options
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/arch.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index a817651e..7ac56378 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -344,7 +344,8 @@ std::vector<PortPin> Arch::getBelPins(BelId bel) const return ret; } -BelId Arch::getBelByLocation(Loc loc) const { +BelId Arch::getBelByLocation(Loc loc) const +{ if (loc.x >= chip_info->width || loc.y >= chip_info->height) return BelId(); const LocationTypePOD &locI = chip_info->locations[chip_info->location_type[loc.y * chip_info->width + loc.x]]; @@ -360,7 +361,8 @@ BelId Arch::getBelByLocation(Loc loc) const { return BelId(); } -BelRange Arch::getBelsByTile(int x, int y) const { +BelRange Arch::getBelsByTile(int x, int y) const +{ BelRange br; int num_bels = 0; |