phy/kusddrphy: use similar bitslip interface than kintex7
This commit is contained in:
parent
40a8504dd6
commit
f251800fb6
|
@ -18,10 +18,13 @@ class K7DDRPHY(Module, AutoCSR):
|
||||||
|
|
||||||
self._wlevel_en = CSRStorage()
|
self._wlevel_en = CSRStorage()
|
||||||
self._wlevel_strobe = CSR()
|
self._wlevel_strobe = CSR()
|
||||||
|
|
||||||
self._dly_sel = CSRStorage(databits//8)
|
self._dly_sel = CSRStorage(databits//8)
|
||||||
|
|
||||||
self._rdly_dq_rst = CSR()
|
self._rdly_dq_rst = CSR()
|
||||||
self._rdly_dq_inc = CSR()
|
self._rdly_dq_inc = CSR()
|
||||||
self._rdly_dq_bitslip = CSR()
|
self._rdly_dq_bitslip = CSR()
|
||||||
|
|
||||||
self._wdly_dq_rst = CSR()
|
self._wdly_dq_rst = CSR()
|
||||||
self._wdly_dq_inc = CSR()
|
self._wdly_dq_inc = CSR()
|
||||||
self._wdly_dqs_rst = CSR()
|
self._wdly_dqs_rst = CSR()
|
||||||
|
|
|
@ -24,7 +24,7 @@ class KUSDDRPHY(Module, AutoCSR):
|
||||||
|
|
||||||
self._rdly_dq_rst = CSR()
|
self._rdly_dq_rst = CSR()
|
||||||
self._rdly_dq_inc = CSR()
|
self._rdly_dq_inc = CSR()
|
||||||
self._rdly_dq_bitslip = CSRStorage(3)
|
self._rdly_dq_bitslip = CSR()
|
||||||
|
|
||||||
self._wdly_dq_rst = CSR()
|
self._wdly_dq_rst = CSR()
|
||||||
self._wdly_dq_inc = CSR()
|
self._wdly_dq_inc = CSR()
|
||||||
|
@ -200,7 +200,11 @@ class KUSDDRPHY(Module, AutoCSR):
|
||||||
dq_bitslip = BitSlip(8)
|
dq_bitslip = BitSlip(8)
|
||||||
self.sync += \
|
self.sync += \
|
||||||
If(self._dly_sel.storage[i//8],
|
If(self._dly_sel.storage[i//8],
|
||||||
dq_bitslip.value.eq(self._rdly_dq_bitslip.storage)
|
If(self._rdly_dq_rst.re,
|
||||||
|
dq_bitslip.value.eq(0)
|
||||||
|
).Elif(self._rdly_dq_bitslip.re,
|
||||||
|
dq_bitslip.value.eq(dq_bitslip.value + 1)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
self.submodules += dq_bitslip
|
self.submodules += dq_bitslip
|
||||||
self.specials += [
|
self.specials += [
|
||||||
|
|
Loading…
Reference in New Issue