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):