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:
parent
aba4fb10c2
commit
69ddcc388c
|
@ -29,7 +29,7 @@ async def send_packet(signals, packet, ratio=1):
|
||||||
if signals['ready'].value:
|
if signals['ready'].value:
|
||||||
break
|
break
|
||||||
signals['valid'].value = 0
|
signals['valid'].value = 0
|
||||||
if ratio != 1:
|
if ratio != 1 and not last:
|
||||||
await ClockCycles(signals['clk'], ratio - 1, rising=False)
|
await ClockCycles(signals['clk'], ratio - 1, rising=False)
|
||||||
|
|
||||||
@timeout(30, 'us')
|
@timeout(30, 'us')
|
||||||
|
|
Loading…
Reference in New Issue