interconnect/stream/Monitor: Fix packet support and cleanup.
This commit is contained in:
parent
b990b90c0e
commit
7bd0311947
|
@ -712,10 +712,10 @@ class Monitor(Module, AutoCSR):
|
||||||
# Overflows Count (only useful when endpoint is expected to always be ready) ---------------
|
# Overflows Count (only useful when endpoint is expected to always be ready) ---------------
|
||||||
if with_overflows:
|
if with_overflows:
|
||||||
self.submodules.overflow_counter = MonitorCounter(
|
self.submodules.overflow_counter = MonitorCounter(
|
||||||
reset=reset,
|
reset = reset,
|
||||||
latch=latch,
|
latch = latch,
|
||||||
enable=endpoint.valid & ~endpoint.ready,
|
enable = endpoint.valid & ~endpoint.ready,
|
||||||
count = self.overflows.status,
|
count = self.overflows.status,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Underflows Count (only useful when endpoint is expected to always be valid) --------------
|
# Underflows Count (only useful when endpoint is expected to always be valid) --------------
|
||||||
|
@ -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 ---------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue