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:
commit
2ad73a0f54
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue