Make RefreshPostponer more similar to LiteDRAM's
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 2 Jul 2020 12:17:44 +0000 (14:17 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 2 Jul 2020 12:17:44 +0000 (14:17 +0200)
gram/core/refresher.py

index 78f79b5acf4dfbc7baa787ec784bb3a66b64bc4c..a961aea9ce253e115d615e7979a028725440adb2 100644 (file)
@@ -193,6 +193,8 @@ class RefreshPostponer(Elaboratable):
                     count.eq(count-1),
                     self.req_o.eq(0),
                 ]
+        with m.Else():
+            m.d.sync += self.req_o.eq(0)
 
         return m