Skip to content

Commit

Permalink
Fix init sequence
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <[email protected]>
  • Loading branch information
alexforencich committed Jan 20, 2023
1 parent be6d490 commit cd1a8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocotbext/axi/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,11 +691,11 @@ class AxiStreamSink(AxiStreamMonitor, AxiStreamPause):
def __init__(self, bus, clock, reset=None, reset_active_level=True,
byte_size=None, byte_lanes=None, *args, **kwargs):

super().__init__(bus, clock, reset, reset_active_level, byte_size, byte_lanes, *args, **kwargs)

self.queue_occupancy_limit_bytes = -1
self.queue_occupancy_limit_frames = -1

super().__init__(bus, clock, reset, reset_active_level, byte_size, byte_lanes, *args, **kwargs)

def full(self):
if self.queue_occupancy_limit_bytes > 0 and self.queue_occupancy_bytes > self.queue_occupancy_limit_bytes:
return True
Expand Down

0 comments on commit cd1a8b4

Please sign in to comment.