diff options
author | myrtle <gatecat@ds0.me> | 2022-12-04 12:27:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 12:27:53 +0100 |
commit | db25c5c88998aa73725f2a4625d74f38615aaa82 (patch) | |
tree | 54b19ced7d12dcc3f61f6c21b1500721370b8ee4 /ecp5/arch.h | |
parent | f07d9a18356ec8df74d9c42693f7b9307e390a7f (diff) | |
parent | 91454515f4a0d87f42af7cd61cdf925c8fdb9229 (diff) | |
download | nextpnr-db25c5c88998aa73725f2a4625d74f38615aaa82.tar.gz nextpnr-db25c5c88998aa73725f2a4625d74f38615aaa82.tar.bz2 nextpnr-db25c5c88998aa73725f2a4625d74f38615aaa82.zip |
Merge pull request #1054 from YosysHQ/gatecat/api-add-const
api: Make NetInfo* of checkPipAvailForNet const
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index 12f043b7..86504520 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -847,7 +847,7 @@ struct Arch : BaseArch<ArchRanges> return false; } bool checkPipAvail(PipId pip) const override { return (getBoundPipNet(pip) == nullptr) && !is_pip_blocked(pip); } - bool checkPipAvailForNet(PipId pip, NetInfo *net) const override + bool checkPipAvailForNet(PipId pip, const NetInfo *net) const override { NetInfo *bound_net = getBoundPipNet(pip); return (bound_net == nullptr || bound_net == net) && !is_pip_blocked(pip); |