Skip to content

Commit de47ee2

Browse files
occheungsbourdeauducq
authored andcommitted
stream fifo: comment on watermark handling
1 parent 108203b commit de47ee2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

misoc/interconnect/stream.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ def __init__(self, fifo_class, layout, depth, hi_wm=None, lo_wm=None):
8484
self.fifo.re.eq(self.source.ack)
8585
]
8686

87+
# Watermarks:
88+
# FIFO only signals only signals availability when a complete
89+
# burst/buffered packet can be transferred.
90+
#
91+
# A complete burst is a continuous lo_wm/hi_wm of words written to/
92+
# read from the FIFO.
93+
#
94+
# The EoP bit from the sink endpoint signals the end of packet.
95+
8796
if hi_wm is not None:
8897
transfer_count = Signal(max=hi_wm, reset=hi_wm-1)
8998
transfer_count_ce = Signal()

0 commit comments

Comments
 (0)