core/LiteEthIPCore/LiteEthUDPIPCore: Expose with_sys_datapath parameter.

This commit is contained in:
Florent Kermarrec 2022-04-25 17:48:54 +02:00
parent 28c8871624
commit d10cda84b6
1 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ from liteeth.core.icmp import LiteEthICMP
# IP Core ------------------------------------------------------------------------------------------ # IP Core ------------------------------------------------------------------------------------------
class LiteEthIPCore(Module, AutoCSR): class LiteEthIPCore(Module, AutoCSR):
def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True, dw=8): def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True, dw=8, with_sys_datapath=False):
# Parameters. # Parameters.
# ----------- # -----------
ip_address = convert_ip(ip_address) ip_address = convert_ip(ip_address)
@ -26,7 +26,7 @@ class LiteEthIPCore(Module, AutoCSR):
dw = dw, dw = dw,
interface = "crossbar", interface = "crossbar",
with_preamble_crc = True, with_preamble_crc = True,
with_sys_datapath = False, with_sys_datapath = with_sys_datapath,
) )
# ARP. # ARP.
@ -60,7 +60,7 @@ class LiteEthIPCore(Module, AutoCSR):
# UDP IP Core -------------------------------------------------------------------------------------- # UDP IP Core --------------------------------------------------------------------------------------
class LiteEthUDPIPCore(LiteEthIPCore): class LiteEthUDPIPCore(LiteEthIPCore):
def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True, dw=8): def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True, dw=8, with_sys_datapath=False):
# Parameters. # Parameters.
# ----------- # -----------
ip_address = convert_ip(ip_address) ip_address = convert_ip(ip_address)
@ -72,8 +72,9 @@ class LiteEthUDPIPCore(LiteEthIPCore):
mac_address = mac_address, mac_address = mac_address,
ip_address = ip_address, ip_address = ip_address,
clk_freq = clk_freq, clk_freq = clk_freq,
with_icmp = with_icmp,
dw = dw, dw = dw,
with_icmp = with_icmp with_sys_datapath = with_sys_datapath,
) )
# UDP. # UDP.
# ---- # ----