Remove shadowing statement
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 22 Jun 2020 16:02:42 +0000 (18:02 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 22 Jun 2020 16:02:42 +0000 (18:02 +0200)
gram/core/refresher.py

index e77ae9734ed4826f5bf388266508aba979f3ab93..c6b8ae501cd4ff7e4ad068859d664e4d895c5097 100644 (file)
@@ -172,7 +172,7 @@ class RefreshPostponer(Elaboratable):
 
     def __init__(self, postponing=1):
         self.req_i = Signal()
-        self.req_o = Signal()
+        self.req_o = Signal(reset=0)
         self._postponing = postponing
 
     def elaborate(self, platform):
@@ -180,7 +180,6 @@ class RefreshPostponer(Elaboratable):
 
         count = Signal(range(self._postponing), reset=self._postponing-1)
 
-        m.d.sync += self.req_o.eq(0)
         with m.If(self.req_i):
             with m.If(count == 0):
                 m.d.sync += [