diff options
Diffstat (limited to 'fpga_interchange/luts.cc')
-rw-r--r-- | fpga_interchange/luts.cc | 11 |
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, |