mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
k7ddrphy: add bitslip control for incoming DQ
This commit is contained in:
parent
0eeb0ad9eb
commit
2234f50223
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ class K7DDRPHY(Module, AutoCSR):
|
|||
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 @@ class K7DDRPHY(Module, AutoCSR):
|
|||
|
||||
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],
|
||||
|
|
Loading…
Reference in a new issue