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.
This commit is contained in:
Florent Kermarrec 2020-11-26 11:35:36 +01:00
parent d3ae361748
commit d3788cd2bb
1 changed files with 2 additions and 3 deletions

View File

@ -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)