integration/soc.py: add parameter dynamic_ip to add_ethernet
This commit is contained in:
parent
fc6b02d0da
commit
1c8df130b4
|
@ -1333,7 +1333,7 @@ class LiteXSoC(SoC):
|
|||
base_address = self.bus.regions["main_ram"].origin)
|
||||
|
||||
# Add Ethernet ---------------------------------------------------------------------------------
|
||||
def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", software_debug=False):
|
||||
def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", dynamic_ip=False, software_debug=False):
|
||||
# Imports
|
||||
from liteeth.mac import LiteEthMAC
|
||||
|
||||
|
@ -1368,6 +1368,9 @@ class LiteXSoC(SoC):
|
|||
eth_rx_clk,
|
||||
eth_tx_clk)
|
||||
|
||||
if dynamic_ip:
|
||||
self.add_constant("ETH_DYNAMIC_IP")
|
||||
|
||||
# Software Debug
|
||||
if software_debug:
|
||||
self.add_constant("ETH_UDP_TX_DEBUG")
|
||||
|
|
Loading…
Reference in New Issue