Skip to content

Commit

Permalink
Merge pull request #2066 from VOGL-electronic/soc.py_ethernet_mac
Browse files Browse the repository at this point in the history
soc.py: add_ethernet: add mac addr constant
  • Loading branch information
enjoy-digital authored Sep 11, 2024
2 parents 11c7b69 + 7b3f150 commit b41a526
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,8 @@ def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", dynamic_ip=False,
with_timestamp = False,
with_timing_constraints = True,
local_ip = None,
remote_ip = None):
remote_ip = None,
mac_address = None):
# Imports
from liteeth.mac import LiteEthMAC
from liteeth.phy.model import LiteEthPHYModel
Expand Down Expand Up @@ -1914,6 +1915,9 @@ def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", dynamic_ip=False,
add_ip_address_constants(self, "LOCALIP", local_ip)
if remote_ip:
add_ip_address_constants(self, "REMOTEIP", remote_ip)
if mac_address:
add_mac_address_constants(self, "MACADDR", mac_address)


# Software Debug
if software_debug:
Expand Down

0 comments on commit b41a526

Please sign in to comment.