phy/s7ddrphy: avoid cdly CSRs when no odelay capability.

This commit is contained in:
Florent Kermarrec 2020-09-22 10:58:14 +02:00
parent 6fc6174c38
commit 0279b770ee
1 changed files with 3 additions and 2 deletions

View File

@ -64,8 +64,9 @@ class S7DDRPHY(Module, AutoCSR):
self._wlevel_en = CSRStorage() self._wlevel_en = CSRStorage()
self._wlevel_strobe = CSR() self._wlevel_strobe = CSR()
self._cdly_rst = CSR() if with_odelay:
self._cdly_inc = CSR() self._cdly_rst = CSR()
self._cdly_inc = CSR()
self._dly_sel = CSRStorage(databits//8) self._dly_sel = CSRStorage(databits//8)