From 69ddcc388c36ab5498c2525caa5763fd58d476dd Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 11 Jan 2023 17:18:46 -0500 Subject: [PATCH] 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 --- tb/axis_replay_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tb/axis_replay_buffer.py b/tb/axis_replay_buffer.py index de8d182..f33ab9c 100644 --- a/tb/axis_replay_buffer.py +++ b/tb/axis_replay_buffer.py @@ -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')