From 0b1eea8a5028b7d02b7894269bcfaa91f2847be9 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 2 Jul 2020 14:07:32 +0200 Subject: [PATCH] Fix RefreshPostponer output stuck to 1 --- gram/core/refresher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2