aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-12-02 14:20:39 +0100
committergatecat <gatecat@ds0.me>2022-12-02 14:20:39 +0100
commitc62a947a2804c3027471b20815c7544e0fd698d0 (patch)
tree2448ccfe4af883e8f8f86a2c7efb0bffa52576e3 /ecp5
parentf07d9a18356ec8df74d9c42693f7b9307e390a7f (diff)
downloadnextpnr-c62a947a2804c3027471b20815c7544e0fd698d0.tar.gz
nextpnr-c62a947a2804c3027471b20815c7544e0fd698d0.tar.bz2
nextpnr-c62a947a2804c3027471b20815c7544e0fd698d0.zip
api: Make NetInfo* of checkPipAvailForNet const
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.h2
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);