soc/integration/soc: add_ethernet/add_ip_constants: cast str to int (avoid double quote in soc.h

This commit is contained in:
Gwenhael Goavec-Merou 2024-01-24 16:06:44 +01:00
parent f543b18d02
commit d32095540a
1 changed files with 1 additions and 1 deletions

View File

@ -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: