Merge pull request #25 from cklarhorst/fix-trigger-flush-timer-wrong-clock-domain

Fix: A WaitTimer belongs to the wrong clock domain (trigger flush)
This commit is contained in:
enjoy-digital 2020-08-05 23:10:26 +02:00 committed by GitHub
commit 2ad73a0f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 and memory read/flush
hit = Signal() hit = Signal()
flush = WaitTimer(2*depth) flush = WaitTimer(2*depth)
flush = ClockDomainsRenamer("scope")(flush)
self.submodules += flush self.submodules += flush
self.comb += [ self.comb += [
flush.wait.eq(~(~enable & enable_d)), # flush when disabling flush.wait.eq(~(~enable & enable_d)), # flush when disabling