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 /mistral | |
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 'mistral')
-rw-r--r-- | mistral/arch.cc | 2 | ||||
-rw-r--r-- | mistral/arch.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mistral/arch.cc b/mistral/arch.cc index ce4f93fb..f3e385d1 100644 --- a/mistral/arch.cc +++ b/mistral/arch.cc @@ -182,7 +182,7 @@ IdStringList Arch::getBelName(BelId bel) const return IdStringList(ids); } -bool Arch::isBelLocationValid(BelId bel) const +bool Arch::isBelLocationValid(BelId bel, bool explain_invalid) const { auto &data = bel_data(bel); if (data.type.in(id_MISTRAL_COMB, id_MISTRAL_MCOMB)) { diff --git a/mistral/arch.h b/mistral/arch.h index 54a39771..aabe10c6 100644 --- a/mistral/arch.h +++ b/mistral/arch.h @@ -333,7 +333,7 @@ struct Arch : BaseArch<ArchRanges> PortType getBelPinType(BelId bel, IdString pin) const override { return bel_data(bel).pins.at(pin).dir; } std::vector<IdString> getBelPins(BelId bel) const override; - bool isBelLocationValid(BelId bel) const override; + bool isBelLocationValid(BelId bel, bool explain_invalid = false) const override; void bindBel(BelId bel, CellInfo *cell, PlaceStrength strength) override { |