From: Jean THOMAS Date: Tue, 23 Jun 2020 19:50:44 +0000 (+0200) Subject: Only declare wants_zqcs signal if needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=373916617c799af2d67451fd314c52844606edf1;p=gram.git Only declare wants_zqcs signal if needed --- diff --git a/gram/core/refresher.py b/gram/core/refresher.py index 9875699..b34ea27 100644 --- a/gram/core/refresher.py +++ b/gram/core/refresher.py @@ -291,7 +291,6 @@ class Refresher(Elaboratable): m = Module() wants_refresh = Signal() - wants_zqcs = Signal() settings = self._settings @@ -314,6 +313,8 @@ 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 @@ -369,6 +370,7 @@ class Refresher(Elaboratable): ] m.next = "Idle" + # Connect sequencer/executer outputs to cmd if settings.timing.tZQCS is None: m.d.comb += [ self.cmd.a.eq(sequencer.a),