aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/luts.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-04-12 10:26:39 +0100
committergatecat <gatecat@ds0.me>2021-04-12 10:26:39 +0100
commitfc15105643078b014cb8b9d499b72cdf13600a6a (patch)
tree45cfc2883d2cb09cc5d004db42060411c62f383e /fpga_interchange/luts.cc
parentb5731cee024b1f5a04fc42ae470750df28650be6 (diff)
downloadnextpnr-fc15105643078b014cb8b9d499b72cdf13600a6a.tar.gz
nextpnr-fc15105643078b014cb8b9d499b72cdf13600a6a.tar.bz2
nextpnr-fc15105643078b014cb8b9d499b72cdf13600a6a.zip
clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'fpga_interchange/luts.cc')
-rw-r--r--fpga_interchange/luts.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/fpga_interchange/luts.cc b/fpga_interchange/luts.cc
index 3312f8ce..882cc474 100644
--- a/fpga_interchange/luts.cc
+++ b/fpga_interchange/luts.cc
@@ -17,11 +17,10 @@
*
*/
-
#include "luts.h"
-#include "nextpnr.h"
#include "log.h"
+#include "nextpnr.h"
//#define DEBUG_LUT_ROTATION
@@ -131,8 +130,8 @@ struct LutPin
bool operator<(const LutPin &other) const { return max_pin < other.max_pin; }
};
-
-uint32_t LutMapper::check_wires(const Context *ctx) const {
+uint32_t LutMapper::check_wires(const Context *ctx) const
+{
// Unlike the 3 argument version of check_wires, this version needs to
// calculate following data based on current cell pin mapping, etc:
//
@@ -149,7 +148,6 @@ uint32_t LutMapper::check_wires(const Context *ctx) const {
for (size_t cell_idx = 0; cell_idx < cells.size(); ++cell_idx) {
const CellInfo *cell = cells[cell_idx];
-
auto &bel_data = bel_info(ctx->chip_info, cell->bel);
IdString bel_name(bel_data.name);
auto &lut_bel = element.lut_bels.at(bel_name);
@@ -169,8 +167,7 @@ uint32_t LutMapper::check_wires(const Context *ctx) const {
}
HashTables::HashSet<const LutBel *> blocked_luts;
- return check_wires(bel_to_cell_pin_remaps, lut_bels, used_pins,
- &blocked_luts);
+ return check_wires(bel_to_cell_pin_remaps, lut_bels, used_pins, &blocked_luts);
}
uint32_t LutMapper::check_wires(const std::vector<std::vector<int32_t>> &bel_to_cell_pin_remaps,