interconnect/stream/Monitor: Fix packet support and cleanup.

This commit is contained in:
Florent Kermarrec 2022-10-17 18:42:34 +02:00
parent b990b90c0e
commit 7bd0311947
1 changed files with 9 additions and 9 deletions

View File

@ -728,12 +728,12 @@ class Monitor(Module, AutoCSR):
)
# Packets Count ----------------------------------------------------------------------------
if with_underflows:
if with_packets:
self.submodules.packet_counter = MonitorCounter(
reset = reset,
latch = latch,
enable = endpoint.valid & getattr(endpoint, packet_delimiter) & endpoint.ready,
count = self.underflows.status
count = self.packets.status
)
# Pipe ---------------------------------------------------------------------------------------------