Fix regression in #14a2154
authorJean THOMAS <git0@pub.jeanthomas.me>
Tue, 28 Jul 2020 10:18:00 +0000 (12:18 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Tue, 28 Jul 2020 10:18:00 +0000 (12:18 +0200)
gram/core/refresher.py

index 80cb6594a5a16bcf0c3d2760a10a6018af079902..18e4979912923eefa56db9564430fe083d45083a 100644 (file)
@@ -374,7 +374,7 @@ class Refresher(Elaboratable):
                         m.next = "Idle"
             else:
                 with m.State("Do-Refresh"):
-                    m.d.comb += self.cmd.valid.eq(~wants_zqcs)
+                    m.d.comb += self.cmd.valid.eq(wants_zqcs & ~sequencer.done)
                     with m.If(sequencer.done):
                         with m.If(wants_zqcs):
                             m.d.comb += zqcs_executer.start.eq(1)