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
This commit is contained in:
Christian Klarhorst 2020-08-05 16:11:58 +02:00
parent 0066866000
commit 16e65556a2
1 changed files with 1 additions and 0 deletions

View File

@ -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