From b38ca8d7c00beef140c04168ab84585b6ce1faf6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 25 Jan 2022 19:36:50 +0100 Subject: [PATCH] stream/LiteEthUDPStreamer: Add cd parameter. --- liteeth/frontend/stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/frontend/stream.py b/liteeth/frontend/stream.py index 592be44..b9a1216 100644 --- a/liteeth/frontend/stream.py +++ b/liteeth/frontend/stream.py @@ -98,10 +98,10 @@ class LiteEthUDP2StreamRX(Module): # UDP Streamer ------------------------------------------------------------------------------------- class LiteEthUDPStreamer(Module): - def __init__(self, udp, ip_address, udp_port, data_width=8, rx_fifo_depth=64, tx_fifo_depth=64): + def __init__(self, udp, ip_address, udp_port, data_width=8, rx_fifo_depth=64, tx_fifo_depth=64, cd="sys"): self.submodules.tx = tx = LiteEthStream2UDPTX(ip_address, udp_port, data_width, tx_fifo_depth) self.submodules.rx = rx = LiteEthUDP2StreamRX(ip_address, udp_port, data_width, rx_fifo_depth) - udp_port = udp.crossbar.get_port(udp_port, dw=data_width) + udp_port = udp.crossbar.get_port(udp_port, dw=data_width, cd=cd) self.comb += [ tx.source.connect(udp_port.sink), udp_port.source.connect(rx.sink)