Skip to content

Commit

Permalink
core: Expose icmp_fifo_depth paramter.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Sep 19, 2024
1 parent b61c3e5 commit d5a9f9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions liteeth/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class LiteEthIPCore(Module, AutoCSR):
def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
with_icmp = True,
with_icmp = True, icmp_fifo_depth=128,
with_ip_broadcast = True,
with_sys_datapath = False,
tx_cdc_depth = 32,
Expand Down Expand Up @@ -74,13 +74,14 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
ip = self.ip,
ip_address = ip_address,
dw = dw,
fifo_depth = icmp_fifo_depth,
)

# UDP IP Core --------------------------------------------------------------------------------------

class LiteEthUDPIPCore(LiteEthIPCore):
def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
with_icmp = True,
with_icmp = True, icmp_fifo_depth=128,
with_ip_broadcast = True,
with_sys_datapath = False,
tx_cdc_depth = 32,
Expand All @@ -103,6 +104,7 @@ def __init__(self, phy, mac_address, ip_address, clk_freq, arp_entries=1, dw=8,
clk_freq = clk_freq,
arp_entries = arp_entries,
with_icmp = with_icmp,
icmp_fifo_depth = icmp_fifo_depth,
dw = dw,
interface = interface,
endianness = endianness,
Expand Down

0 comments on commit d5a9f9d

Please sign in to comment.