tb: axis_replay_buffer: Don't delay on last-sent byte

We don't need to delay after sending the last byte, and it makes it more
difficult to time subsequent packets correctly.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2023-01-11 17:18:46 -05:00
parent aba4fb10c2
commit 69ddcc388c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ async def send_packet(signals, packet, ratio=1):
if signals['ready'].value:
break
signals['valid'].value = 0
if ratio != 1:
if ratio != 1 and not last:
await ClockCycles(signals['clk'], ratio - 1, rising=False)
@timeout(30, 'us')