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 --- ecp5/arch.h | 2 +- ecp5/arch_place.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp5') diff --git a/ecp5/arch.h b/ecp5/arch.h index a40719c1..6ce3c4ce 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -1010,7 +1010,7 @@ struct Arch : BaseArch // ------------------------------------------------- // Placement validity checks - bool isBelLocationValid(BelId bel) const override; + bool isBelLocationValid(BelId bel, bool explain_invalid = false) const override; // Helper function for above bool slices_compatible(LogicTileStatus *lts) const; diff --git a/ecp5/arch_place.cc b/ecp5/arch_place.cc index fed9c055..3151cc3e 100644 --- a/ecp5/arch_place.cc +++ b/ecp5/arch_place.cc @@ -178,7 +178,7 @@ bool Arch::slices_compatible(LogicTileStatus *lts) const return true; } -bool Arch::isBelLocationValid(BelId bel) const +bool Arch::isBelLocationValid(BelId bel, bool explain_invalid) const { IdString bel_type = getBelType(bel); if (bel_type.in(id_TRELLIS_COMB, id_TRELLIS_FF, id_TRELLIS_RAMW)) { -- cgit v1.2.3