diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-23 12:45:31 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-23 12:45:31 +0200 |
commit | 38962d0f02720799d797326cc3d5ce906f853359 (patch) | |
tree | fe68a8a396afffe243d14c14c026f64c7fa84a74 /ecp5 | |
parent | a436facfd0a610c8b055e07d3a72e4122df677c6 (diff) | |
download | nextpnr-38962d0f02720799d797326cc3d5ce906f853359.tar.gz nextpnr-38962d0f02720799d797326cc3d5ce906f853359.tar.bz2 nextpnr-38962d0f02720799d797326cc3d5ce906f853359.zip |
clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
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; |