aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-12-07 10:27:58 +0100
committergatecat <gatecat@ds0.me>2022-12-07 10:27:58 +0100
commit603b60da8dcadf23eec8609ffc128f8f191c1122 (patch)
tree11ee560444efa1bd2ec56994cb50641290c73662 /ice40
parentd1afd6c0f1f8452d7461bbf33c84dbfd59236d03 (diff)
downloadnextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.tar.gz
nextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.tar.bz2
nextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.zip
api: add explain_invalid option to isBelLocationValid
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.h2
-rw-r--r--ice40/arch_place.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index 9d10cddf..d80d6f64 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -840,7 +840,7 @@ struct Arch : BaseArch<ArchRanges>
// implemented in arch_place.cc)
// Return true whether all Bels at a given location are valid
- bool isBelLocationValid(BelId bel) const override;
+ bool isBelLocationValid(BelId bel, bool explain_invalid = false) const override;
// Helper function for above
bool logic_cells_compatible(const CellInfo **it, const size_t size) const;
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc
index 5c3fa3c5..d8232571 100644
--- a/ice40/arch_place.cc
+++ b/ice40/arch_place.cc
@@ -82,7 +82,7 @@ static inline bool _io_pintype_need_clk_en(unsigned pin_type)
return _io_pintype_need_clk_in(pin_type) || _io_pintype_need_clk_out(pin_type);
}
-bool Arch::isBelLocationValid(BelId bel) const
+bool Arch::isBelLocationValid(BelId bel, bool explain_invalid) const
{
if (getBelType(bel) == id_ICESTORM_LC) {
std::array<const CellInfo *, 8> bel_cells;