From 603b60da8dcadf23eec8609ffc128f8f191c1122 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 7 Dec 2022 10:27:58 +0100 Subject: api: add explain_invalid option to isBelLocationValid Signed-off-by: gatecat --- ice40/arch.h | 2 +- ice40/arch_place.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ice40') 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 // 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 bel_cells; -- cgit v1.2.3