aboutsummaryrefslogtreecommitdiffstats
path: root/mistral/lab.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-14 23:08:32 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commit87ebada258dbb6aa4bdf5552ed7a3dc85fcdf17c (patch)
treeaf43ba58d32aa8d20a964ac686432e0d979d5713 /mistral/lab.cc
parent8bc9732d49fe645f29bc840c503ddb94a07f6e4c (diff)
downloadnextpnr-87ebada258dbb6aa4bdf5552ed7a3dc85fcdf17c.tar.gz
nextpnr-87ebada258dbb6aa4bdf5552ed7a3dc85fcdf17c.tar.bz2
nextpnr-87ebada258dbb6aa4bdf5552ed7a3dc85fcdf17c.zip
mistral: Fix EF_SEL and BTO_DIS
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/lab.cc')
-rw-r--r--mistral/lab.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mistral/lab.cc b/mistral/lab.cc
index 734592fd..50ef7b11 100644
--- a/mistral/lab.cc
+++ b/mistral/lab.cc
@@ -104,8 +104,9 @@ static void create_alm(Arch *arch, int x, int y, int z, uint32_t lab_idx)
arch->add_pip(lab.aclr_wires[j], alm.sel_aclr[i]);
}
// E/F pips
+ // Note that the F choice is mirrored, F from the other half is picked
arch->add_pip(arch->get_port(CycloneV::LAB, x, y, z, i ? CycloneV::E1 : CycloneV::E0), alm.sel_ef[i]);
- arch->add_pip(arch->get_port(CycloneV::LAB, x, y, z, i ? CycloneV::F1 : CycloneV::F0), alm.sel_ef[i]);
+ arch->add_pip(arch->get_port(CycloneV::LAB, x, y, z, i ? CycloneV::F0 : CycloneV::F1), alm.sel_ef[i]);
}
// Create the flipflops and associated routing