Fix RefreshPostponer output stuck to 1
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 2 Jul 2020 12:07:32 +0000 (14:07 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 2 Jul 2020 12:07:32 +0000 (14:07 +0200)
gram/core/refresher.py

index b34ea277a6728909ddde42981aa590fd1776c81a..78f79b5acf4dfbc7baa787ec784bb3a66b64bc4c 100644 (file)
@@ -189,7 +189,10 @@ class RefreshPostponer(Elaboratable):
                     self.req_o.eq(1),
                 ]
             with m.Else():
-                m.d.sync += count.eq(count-1)
+                m.d.sync += [
+                    count.eq(count-1),
+                    self.req_o.eq(0),
+                ]
 
         return m