Skip to content

Commit

Permalink
k7ddrphy: add bitslip control for incoming DQ
Browse files Browse the repository at this point in the history
sbourdeauducq committed Sep 1, 2014
1 parent 0eeb0ad commit 2234f50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misoclib/sdramphy/k7ddrphy.py
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ def __init__(self, pads, memtype):
self._r_dly_sel = CSRStorage(d//8)
self._r_rdly_dq_rst = CSR()
self._r_rdly_dq_inc = CSR()
self._r_rdly_dq_bitslip = CSR()
self._r_wdly_dq_rst = CSR()
self._r_wdly_dq_inc = CSR()
self._r_wdly_dqs_rst = CSR()
@@ -225,9 +226,9 @@ def __init__(self, pads, memtype):

i_DDLY=dq_i_delayed,
i_CE1=1,
i_RST=ResetSignal(),
i_RST=ResetSignal() | (self._r_dly_sel.storage[i//8] & self._r_wdly_dq_rst.re),
i_CLK=ClockSignal("sys4x"), i_CLKB=~ClockSignal("sys4x"), i_CLKDIV=ClockSignal(),
i_BITSLIP=0,
i_BITSLIP=self._r_dly_sel.storage[i//8] & self._r_rdly_dq_bitslip.re,
o_Q8=self.dfi.phases[0].rddata[i], o_Q7=self.dfi.phases[0].rddata[d+i],
o_Q6=self.dfi.phases[1].rddata[i], o_Q5=self.dfi.phases[1].rddata[d+i],
o_Q4=self.dfi.phases[2].rddata[i], o_Q3=self.dfi.phases[2].rddata[d+i],

0 comments on commit 2234f50

Please sign in to comment.