diff options
author | gatecat <gatecat@ds0.me> | 2021-03-22 18:31:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 18:31:32 +0000 |
commit | f6ae068cb205527d63d93e5b3581b85a22f90f34 (patch) | |
tree | 93704cb3edc4497651e23adfb7d6541eab1bb907 /common/base_arch.h | |
parent | 53ed6979a964f3eaaabc0d97399eec9b4c3347f9 (diff) | |
parent | e7d81913a48bffd970f7a92acc44eb36d9f996f7 (diff) | |
download | nextpnr-f6ae068cb205527d63d93e5b3581b85a22f90f34.tar.gz nextpnr-f6ae068cb205527d63d93e5b3581b85a22f90f34.tar.bz2 nextpnr-f6ae068cb205527d63d93e5b3581b85a22f90f34.zip |
Merge pull request #632 from litghost/add_check_pip_for_net
Add "checkPipAvailForNet" to Arch API.
Diffstat (limited to 'common/base_arch.h')
-rw-r--r-- | common/base_arch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/base_arch.h b/common/base_arch.h index 84629977..d4efe9ce 100644 --- a/common/base_arch.h +++ b/common/base_arch.h @@ -243,6 +243,11 @@ template <typename R> struct BaseArch : ArchAPI<R> p2n_entry = nullptr; } virtual bool checkPipAvail(PipId pip) const override { return getBoundPipNet(pip) == nullptr; } + virtual bool checkPipAvailForNet(PipId pip, NetInfo *net) const override + { + NetInfo *bound_net = getBoundPipNet(pip); + return bound_net == nullptr || bound_net == net; + } virtual NetInfo *getBoundPipNet(PipId pip) const override { auto fnd = base_pip2net.find(pip); |