Merge pull request #2066 from VOGL-electronic/soc.py_ethernet_mac

soc.py: add_ethernet: add mac addr constant
This commit is contained in:
enjoy-digital 2024-09-11 11:54:14 +02:00 committed by GitHub
commit b41a526e81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1846,7 +1846,8 @@ class LiteXSoC(SoC):
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
@ -1914,6 +1915,9 @@ class LiteXSoC(SoC):
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: