From 8993e8b798e79704dd0df4a9e6c063e62ce57bf9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 17 Dec 2018 15:31:27 +0100 Subject: [PATCH] core/refresher: fix refresh regression --- litedram/core/refresher.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/litedram/core/refresher.py b/litedram/core/refresher.py index 7fff55c..7ea9f7b 100644 --- a/litedram/core/refresher.py +++ b/litedram/core/refresher.py @@ -15,6 +15,13 @@ class RefreshGenerator(Module): # # # + self.sync += [ + cmd.a.eq(2**10), + cmd.ba.eq(0), + cmd.cas.eq(0), + cmd.ras.eq(0), + cmd.we.eq(0), + ] self.sync += [ self.done.eq(0), # Wait start @@ -35,13 +42,7 @@ class RefreshGenerator(Module): ]) ]) ] - self.sync += [ - cmd.a.eq(2**10), - cmd.ba.eq(0), - cmd.cas.eq(0), - cmd.ras.eq(0), - cmd.we.eq(0), - ] + class RefreshTimer(Module):