Skip to content

Commit 2234f50

Browse files
committedSep 1, 2014
k7ddrphy: add bitslip control for incoming DQ
1 parent 0eeb0ad commit 2234f50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎misoclib/sdramphy/k7ddrphy.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, pads, memtype):
1818
self._r_dly_sel = CSRStorage(d//8)
1919
self._r_rdly_dq_rst = CSR()
2020
self._r_rdly_dq_inc = CSR()
21+
self._r_rdly_dq_bitslip = CSR()
2122
self._r_wdly_dq_rst = CSR()
2223
self._r_wdly_dq_inc = CSR()
2324
self._r_wdly_dqs_rst = CSR()
@@ -225,9 +226,9 @@ def __init__(self, pads, memtype):
225226

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

0 commit comments

Comments
 (0)
Please sign in to comment.