frontend/stream: Add default ip_address/udp_port values.

This commit is contained in:
Florent Kermarrec 2024-12-16 14:45:45 +01:00
parent aad9de7e53
commit d2b1b0e0c5
1 changed files with 1 additions and 1 deletions

View File

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