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: