From 0279b770eeb55038676aae4c53c80d57d189a1a5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 22 Sep 2020 10:58:14 +0200 Subject: [PATCH] phy/s7ddrphy: avoid cdly CSRs when no odelay capability. --- litedram/phy/s7ddrphy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litedram/phy/s7ddrphy.py b/litedram/phy/s7ddrphy.py index 15944af..54b725a 100644 --- a/litedram/phy/s7ddrphy.py +++ b/litedram/phy/s7ddrphy.py @@ -64,8 +64,9 @@ class S7DDRPHY(Module, AutoCSR): self._wlevel_en = CSRStorage() self._wlevel_strobe = CSR() - self._cdly_rst = CSR() - self._cdly_inc = CSR() + if with_odelay: + self._cdly_rst = CSR() + self._cdly_inc = CSR() self._dly_sel = CSRStorage(databits//8)