aboutsummaryrefslogtreecommitdiffstats
path: root/mistral
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-14 00:02:16 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commit8c7fa8e6c956686927f3ff92088238105c09b8c3 (patch)
tree3a8765e643719bf4c919cb1381f640eae94039af /mistral
parent6ad329c5404021ca38784b21fc4d01a548caed30 (diff)
downloadnextpnr-8c7fa8e6c956686927f3ff92088238105c09b8c3.tar.gz
nextpnr-8c7fa8e6c956686927f3ff92088238105c09b8c3.tar.bz2
nextpnr-8c7fa8e6c956686927f3ff92088238105c09b8c3.zip
mistral: Implement PIP locations, too
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral')
-rw-r--r--mistral/arch.h2
1 files changed, 1 insertions, 1 deletions
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<ArchRanges>
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); };