diff --git a/litedram/phy/a7ddrphy.py b/litedram/phy/a7ddrphy.py index 094a9fb..29626c9 100644 --- a/litedram/phy/a7ddrphy.py +++ b/litedram/phy/a7ddrphy.py @@ -221,7 +221,7 @@ class A7DDRPHY(Module, AutoCSR): # 2 cycles CAS # 2 cycles through ISERDESE2 rddata_en = self.dfi.phases[self.settings.rdphase].rddata_en - for i in range(5): + for i in range(6-1): n_rddata_en = Signal() self.sync += n_rddata_en.eq(rddata_en) rddata_en = n_rddata_en diff --git a/litedram/phy/k7ddrphy.py b/litedram/phy/k7ddrphy.py index 30727ef..3ccb7f0 100644 --- a/litedram/phy/k7ddrphy.py +++ b/litedram/phy/k7ddrphy.py @@ -274,7 +274,7 @@ class K7DDRPHY(Module, AutoCSR): # 2 cycles CAS # 2 cycles through ISERDESE2 rddata_en = self.dfi.phases[self.settings.rdphase].rddata_en - for i in range(5): + for i in range(6-1): n_rddata_en = Signal() self.sync += n_rddata_en.eq(rddata_en) rddata_en = n_rddata_en