gensdrphy: clean up and implement data mask

This commit is contained in:
Florent Kermarrec 2014-05-01 00:29:18 +02:00 committed by Sebastien Bourdeauducq
parent 87a78bc059
commit 774464155a
1 changed files with 1 additions and 2 deletions

View File

@ -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)