frontend/stream: Add default ip_address/udp_port values.
This commit is contained in:
parent
aad9de7e53
commit
d2b1b0e0c5
|
@ -11,7 +11,7 @@ from liteeth.common import *
|
||||||
# Stream to UDP TX ---------------------------------------------------------------------------------
|
# Stream to UDP TX ---------------------------------------------------------------------------------
|
||||||
|
|
||||||
class LiteEthStream2UDPTX(LiteXModule):
|
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.sink = sink = stream.Endpoint(eth_tty_tx_description(data_width))
|
||||||
self.source = source = stream.Endpoint(eth_udp_user_description(data_width))
|
self.source = source = stream.Endpoint(eth_udp_user_description(data_width))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue