From 16e65556a23c09d943d62a931a83e1ee45bd7f40 Mon Sep 17 00:00:00 2001 From: Christian Klarhorst Date: Wed, 5 Aug 2020 16:11:58 +0200 Subject: [PATCH] Fix: A WaitTimer belongs to the wrong clock domain (trigger flush) The WaitTimer for the trigger flush should belong to the scope clock instead of the sys clock --- litescope/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litescope/core.py b/litescope/core.py index b2edc46..7c42968 100644 --- a/litescope/core.py +++ b/litescope/core.py @@ -73,6 +73,7 @@ class _Trigger(Module, AutoCSR): # Hit and memory read/flush hit = Signal() flush = WaitTimer(2*depth) + flush = ClockDomainsRenamer("scope")(flush) self.submodules += flush self.comb += [ flush.wait.eq(~(~enable & enable_d)), # flush when disabling