core/__init__: LiteEthUDPIPCore, LiteEthIPCore: expose interface & endianness at LiteEthUDPIPCore constructor. LiteEthIPCore: don't hardcode interface, pass macaddr and endianness to LiteEthMAC

This commit is contained in:
Gwenhael Goavec-Merou 2023-10-23 16:18:05 +02:00
parent 09d31b5af8
commit daf1a1ac63
1 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,8 @@ class LiteEthIPCore(Module, AutoCSR):
tx_cdc_buffered = True,
rx_cdc_depth = 32,
rx_cdc_buffered = True,
interface = "crossbar",
endianness = "big",
):
# Parameters.
# -----------
@ -33,7 +35,9 @@ class LiteEthIPCore(Module, AutoCSR):
self.submodules.mac = LiteEthMAC(
phy = phy,
dw = dw,
interface = "crossbar",
interface = interface,
endianness = endianness,
hw_mac = mac_address,
with_preamble_crc = True,
with_sys_datapath = with_sys_datapath,
tx_cdc_depth = tx_cdc_depth,
@ -83,6 +87,8 @@ class LiteEthUDPIPCore(LiteEthIPCore):
tx_cdc_buffered = True,
rx_cdc_depth = 32,
rx_cdc_buffered = True,
interface = "crossbar",
endianness = "big",
):
# Parameters.
# -----------
@ -98,6 +104,8 @@ class LiteEthUDPIPCore(LiteEthIPCore):
arp_entries = arp_entries,
with_icmp = with_icmp,
dw = dw,
interface = interface,
endianness = endianness,
with_ip_broadcast = with_ip_broadcast,
with_sys_datapath = with_sys_datapath,
tx_cdc_depth = tx_cdc_depth,