From d3788cd2bbf15c655c2ecbe3626dafe75606562f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 26 Nov 2020 11:35:36 +0100 Subject: [PATCH] frontend/etherbone: use new LiteX's PacketFIFO in LiteEthEtherboneRecordSender. This ensures the full Etherbone packet is available before starting the transmission and fixes transmission issues with larges bursts or slow sys_clk_freq. --- liteeth/frontend/etherbone.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 19bc422..5c3b548 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -206,8 +206,7 @@ class LiteEthEtherboneRecordReceiver(Module): # # # # TODO: optimize ressources (no need to store parameters as datas) - fifo = stream.SyncFIFO(eth_etherbone_record_description(32), buffer_depth, - buffered=True) + fifo = stream.SyncFIFO(eth_etherbone_record_description(32), buffer_depth, buffered=True) self.submodules += fifo self.comb += sink.connect(fifo.sink) @@ -281,7 +280,7 @@ class LiteEthEtherboneRecordSender(Module): # # # # TODO: optimize ressources (no need to store parameters as datas) - fifo = stream.SyncFIFO(eth_etherbone_mmap_description(32), buffer_depth, buffered=True) + fifo = PacketFIFO(eth_etherbone_mmap_description(32), buffer_depth, buffered=True) self.submodules += fifo self.comb += sink.connect(fifo.sink)