From 7b3f1509d1f745b375b915f957384c4eb86f15ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 11 Sep 2024 11:21:53 +0200 Subject: [PATCH] soc.py: add_ethernet: add mac addr constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add mac addr constant to add_ethernet, so it matches the one from add_etherbone. Signed-off-by: Fin Maaß --- litex/soc/integration/soc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 9e76dbfe3..886f07353 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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: