Skip to content

Commit

Permalink
Fifo: Add a variable with the maximum depth of the fifo
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusvasquez333 committed Apr 20, 2021
1 parent 4c033d6 commit 7f99198
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/pyrogue/interfaces/stream/_Fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ def __init__(self, name, description, maxDepth, trimSize, noCopy, **kwargs):
pyrogue.Device.__init__(self, name=name, description=description, **kwargs)
self._fifo = rogue.interfaces.stream.Fifo(maxDepth, trimSize, noCopy)

# Maximum Depth
self.add(pyrogue.LocalVariable(
name='MaxDepth',
description='Maximum depth of the Fifo',
mode='RO',
value=maxDepth))

# Number of elements in the Fifo
self.add(pyrogue.LocalVariable(
name='Size',
Expand Down

0 comments on commit 7f99198

Please sign in to comment.