diff options
author | gatecat <gatecat@ds0.me> | 2022-12-07 10:27:58 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-12-07 10:27:58 +0100 |
commit | 603b60da8dcadf23eec8609ffc128f8f191c1122 (patch) | |
tree | 11ee560444efa1bd2ec56994cb50641290c73662 /nexus | |
parent | d1afd6c0f1f8452d7461bbf33c84dbfd59236d03 (diff) | |
download | nextpnr-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 'nexus')
-rw-r--r-- | nexus/arch.h | 2 | ||||
-rw-r--r-- | nexus/arch_place.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nexus/arch.h b/nexus/arch.h index 5ac16f28..eb3059a5 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -1322,7 +1322,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; // ------------------------------------------------- diff --git a/nexus/arch_place.cc b/nexus/arch_place.cc index 7b2c08ee..0bed30b4 100644 --- a/nexus/arch_place.cc +++ b/nexus/arch_place.cc @@ -96,7 +96,7 @@ bool Arch::nexus_logic_tile_valid(LogicTileStatus <s) const return true; } -bool Arch::isBelLocationValid(BelId bel) const +bool Arch::isBelLocationValid(BelId bel, bool explain_invalid) const { if (bel_tile_is(bel, LOC_LOGIC)) { LogicTileStatus *lts = tileStatus[bel.tile].lts; |