From 8c7fa8e6c956686927f3ff92088238105c09b8c3 Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 14 May 2021 00:02:16 +0100 Subject: mistral: Implement PIP locations, too Signed-off-by: gatecat --- mistral/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mistral') diff --git a/mistral/arch.h b/mistral/arch.h index 3d5a8617..4e603177 100644 --- a/mistral/arch.h +++ b/mistral/arch.h @@ -343,7 +343,7 @@ struct Arch : BaseArch PipId getPipByName(IdStringList name) const override; AllPipRange getPips() const override { return AllPipRange(wires); } - Loc getPipLocation(PipId pip) const override { return Loc(0, 0, 0); } + Loc getPipLocation(PipId pip) const override { return Loc(CycloneV::rn2x(pip.dst), CycloneV::rn2y(pip.dst), 0); } IdStringList getPipName(PipId pip) const override; WireId getPipSrcWire(PipId pip) const override { return WireId(pip.src); }; WireId getPipDstWire(PipId pip) const override { return WireId(pip.dst); }; -- cgit v1.2.3