From: Florent Kermarrec Date: Wed, 30 Apr 2014 22:29:18 +0000 (+0200) Subject: gensdrphy: clean up and implement data mask X-Git-Tag: 24jan2021_ls180~2721 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=774464155a5b6bbc2c32177c5459bc9f257030d7;p=litex.git gensdrphy: clean up and implement data mask --- diff --git a/misoclib/sdramphy/gensdrphy.py b/misoclib/sdramphy/gensdrphy.py index edc6c2c2..01f79e0c 100644 --- a/misoclib/sdramphy/gensdrphy.py +++ b/misoclib/sdramphy/gensdrphy.py @@ -64,7 +64,6 @@ class GENSDRPHY(Module): self.sync += [ pads.a.eq(self.dfi.p0.address), pads.ba.eq(self.dfi.p0.bank), - pads.cs_n.eq(self.dfi.p0.cs_n), pads.cke.eq(self.dfi.p0.cke), pads.cas_n.eq(self.dfi.p0.cas_n), pads.ras_n.eq(self.dfi.p0.ras_n), @@ -80,7 +79,7 @@ class GENSDRPHY(Module): drive_dq = Signal() self.sync += sd_dq_out.eq(self.dfi.p0.wrdata), self.specials += Tristate(pads.dq, sd_dq_out, drive_dq) - self.comb += pads.dm.eq(0) + self.sync += pads.dm.eq(~self.dfi.p0.wrdata_mask) sd_dq_in_ps = Signal(d) self.sync.sys_ps += sd_dq_in_ps.eq(pads.dq) self.sync += self.dfi.p0.rddata.eq(sd_dq_in_ps)