From: Jean THOMAS Date: Thu, 2 Jul 2020 12:07:32 +0000 (+0200) Subject: Fix RefreshPostponer output stuck to 1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b1eea8a5028b7d02b7894269bcfaa91f2847be9;p=gram.git Fix RefreshPostponer output stuck to 1 --- diff --git a/gram/core/refresher.py b/gram/core/refresher.py index b34ea27..78f79b5 100644 --- a/gram/core/refresher.py +++ b/gram/core/refresher.py @@ -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