connect SDRAM dqm to wrdata_mask
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 28 Sep 2020 15:53:23 +0000 (16:53 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 28 Sep 2020 15:53:23 +0000 (16:53 +0100)
src/soc/litex/florent/ls180soc.py

index 25da0a33635ca2d9720d6c49448606d7f56062f1..cd8119ebba7ce080cf17a6c147db92edbedd27f5 100755 (executable)
@@ -224,11 +224,8 @@ class GENSDRPHY(Module):
         self.submodules.dq = SDRPad(pads, "dq", d.wrdata, d.wrdata_en, d.rddata)
 
         if hasattr(pads, "dm"):
-            # optimisation by yosys, fudge it... sigh
-            dm = Signal(len(pads.dm))
             for i in range(len(pads.dm)):
-                self.comb += dm[i].eq(1)
-                self.sync += pads.dm[i].eq(dm[i]) # FIXME
+                self.specials += SDROutput(i=d.wrdata_mask[i], o=pads.dm[i])
 
         # DQ/DM Control Path ----------------------------------------------
         rddata_en = Signal(cl + cmd_latency)