From d2b1b0e0c5b6813e4fddd2be9766b33d419ad3dc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 16 Dec 2024 14:45:45 +0100 Subject: [PATCH] frontend/stream: Add default ip_address/udp_port values. --- liteeth/frontend/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteeth/frontend/stream.py b/liteeth/frontend/stream.py index 503cee9..1eba26e 100644 --- a/liteeth/frontend/stream.py +++ b/liteeth/frontend/stream.py @@ -11,7 +11,7 @@ from liteeth.common import * # Stream to UDP TX --------------------------------------------------------------------------------- class LiteEthStream2UDPTX(LiteXModule): - def __init__(self, ip_address, udp_port, data_width=8, fifo_depth=None, with_csr=False): + def __init__(self, ip_address=0, udp_port=0, data_width=8, fifo_depth=None, with_csr=False): self.sink = sink = stream.Endpoint(eth_tty_tx_description(data_width)) self.source = source = stream.Endpoint(eth_udp_user_description(data_width))