Skip to content

Commit

Permalink
Merge pull request #149 from trabucayre/etherbone_hybrid
Browse files Browse the repository at this point in the history
core/__init__: LiteEthUDPIPCore, LiteEthIPCore: expose interface & endianness at LiteEthUDPIPCore constructor. LiteEthIPCore: don't hardcode interface, pass macaddr and endianness to LiteEthMAC
  • Loading branch information
enjoy-digital authored Oct 23, 2023
2 parents 09d31b5 + daf1a1a commit fc190e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion liteeth/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
tx_cdc_buffered = True,
rx_cdc_depth = 32,
rx_cdc_buffered = True,
interface = "crossbar",
endianness = "big",
):
# Parameters.
# -----------
Expand All @@ -33,7 +35,9 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
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,
Expand Down Expand Up @@ -83,6 +87,8 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
tx_cdc_buffered = True,
rx_cdc_depth = 32,
rx_cdc_buffered = True,
interface = "crossbar",
endianness = "big",
):
# Parameters.
# -----------
Expand All @@ -98,6 +104,8 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
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,
Expand Down

0 comments on commit fc190e8

Please sign in to comment.