From bb85f29f91644a7cc7c7a111a2235786095ca695 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 14 Aug 2014 15:57:25 +0200 Subject: [PATCH] k7ddrphy: fix write_latency and take care of OSERDESE2 latency on oe --- misoclib/sdramphy/k7ddrphy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misoclib/sdramphy/k7ddrphy.py b/misoclib/sdramphy/k7ddrphy.py index 630853b8..656d3fec 100644 --- a/misoclib/sdramphy/k7ddrphy.py +++ b/misoclib/sdramphy/k7ddrphy.py @@ -23,7 +23,7 @@ class K7DDRPHY(Module): cl=8, cwl=6, read_latency=8, - write_latency=1 + write_latency=2 ) self.dfi = Interface(a, ba, self.phy_settings.dfi_d, nphases) @@ -212,7 +212,7 @@ class K7DDRPHY(Module): rddata_en = n_rddata_en self.sync += [phase.rddata_valid.eq(rddata_en) for phase in self.dfi.phases] - last_wrdata_en = Signal(3) + last_wrdata_en = Signal(5) wrphase = self.dfi.phases[self.phy_settings.wrphase] - self.sync += last_wrdata_en.eq(Cat(wrphase.wrdata_en, last_wrdata_en[:2])) - self.comb += oe.eq(last_wrdata_en[0] | last_wrdata_en[1] | last_wrdata_en[2]) + self.sync += last_wrdata_en.eq(Cat(wrphase.wrdata_en, last_wrdata_en[:4])) + self.comb += oe.eq(last_wrdata_en[2+0] | last_wrdata_en[2+1] | last_wrdata_en[2+2]) -- 2.30.2