From fb28f791c8de0ba9b3f49cd2e72f62fec65b992c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 16 Aug 2019 08:52:36 +0200 Subject: [PATCH] core/refresher: remove load/load_count on RefreshTimer (not used) --- litedram/core/refresher.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/litedram/core/refresher.py b/litedram/core/refresher.py index 5bc18c5..7f7cb05 100644 --- a/litedram/core/refresher.py +++ b/litedram/core/refresher.py @@ -89,23 +89,14 @@ class RefreshTimer(Module): self.done = Signal() self.count = Signal(bits_for(trefi)) - self.load = Signal() - self.load_count = Signal(bits_for(trefi)) - # # # done = Signal() count = Signal(bits_for(trefi), reset=trefi-1) self.sync += [ - If(self.wait, - If(~self.done, - If(self.load & (self.load_count < count), - count.eq(self.load_count) - ).Else( - count.eq(count - 1) - ) - ) + If(self.wait & ~self.done, + count.eq(count - 1) ).Else( count.eq(count.reset) )