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 ---------------------------------------------------------------------------- # Packets Count ----------------------------------------------------------------------------
if with_underflows: if with_packets:
self.submodules.packet_counter = MonitorCounter( self.submodules.packet_counter = MonitorCounter(
reset = reset, reset = reset,
latch = latch, latch = latch,
enable = endpoint.valid & getattr(endpoint, packet_delimiter) & endpoint.ready, enable = endpoint.valid & getattr(endpoint, packet_delimiter) & endpoint.ready,
count = self.underflows.status count = self.packets.status
) )
# Pipe --------------------------------------------------------------------------------------------- # Pipe ---------------------------------------------------------------------------------------------