From: Jean THOMAS Date: Tue, 28 Jul 2020 11:28:54 +0000 (+0200) Subject: Remove wants_zqcs signal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe75cbdbead3c92e74d0e814cc30f002c340a1a2;p=gram.git Remove wants_zqcs signal --- diff --git a/gram/core/refresher.py b/gram/core/refresher.py index 18e4979..9ab4359 100644 --- a/gram/core/refresher.py +++ b/gram/core/refresher.py @@ -342,12 +342,10 @@ class Refresher(Elaboratable): m.submodules.sequencer = sequencer if settings.timing.tZQCS is not None: - wants_zqcs = Signal() # ZQCS Timer --------------------------------------------------------------------------- zqcs_timer = RefreshTimer(int(self._clk_freq/self._zqcs_freq)) m.submodules.zqcs_timer = zqcs_timer - m.d.comb += wants_zqcs.eq(zqcs_timer.done) # ZQCS Executer ------------------------------------------------------------------------ zqcs_executer = ZQCSExecuter(self._abits, self._babits, settings.timing.tRP, settings.timing.tZQCS) @@ -374,9 +372,9 @@ class Refresher(Elaboratable): m.next = "Idle" else: with m.State("Do-Refresh"): - m.d.comb += self.cmd.valid.eq(wants_zqcs & ~sequencer.done) + m.d.comb += self.cmd.valid.eq(zqcs_timer.done & ~sequencer.done) with m.If(sequencer.done): - with m.If(wants_zqcs): + with m.If(zqcs_timer.done): m.d.comb += zqcs_executer.start.eq(1) m.next = "Do-Zqcs" with m.Else():