From d32095540abe105fea73fc7e2d4127dc69bb2815 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 24 Jan 2024 16:06:44 +0100 Subject: [PATCH] soc/integration/soc: add_ethernet/add_ip_constants: cast str to int (avoid double quote in soc.h --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index cc09c8e8c..442ba3176 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1775,7 +1775,7 @@ class LiteXSoC(SoC): assert len(_ip) == 4 for n in range(4): assert int(_ip[n]) < 256 - self.add_constant(f"{name}{n+1}", _ip[n]) + self.add_constant(f"{name}{n+1}", int(_ip[n])) if local_ip: add_ip_constants("LOCALIP", local_ip) if remote_ip: