From 774464155a5b6bbc2c32177c5459bc9f257030d7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 1 May 2014 00:29:18 +0200 Subject: [PATCH] gensdrphy: clean up and implement data mask --- misoclib/sdramphy/gensdrphy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.30.2