From 373916617c799af2d67451fd314c52844606edf1 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 23 Jun 2020 21:50:44 +0200 Subject: [PATCH] Only declare wants_zqcs signal if needed --- gram/core/refresher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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), -- 2.30.2