soc.py: add_ethernet: add mac addr constant

add mac addr constant to add_ethernet,
so it matches the one from add_etherbone.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-09-11 11:21:53 +02:00
parent a1a3e846ac
commit 7b3f1509d1
No known key found for this signature in database
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: