fix SoC compile

This commit is contained in:
Peter McGoron 2024-01-18 19:48:34 +00:00
parent 0bb27e9b03
commit cd2be977bc
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class _CRG(Module):
class UpsilonSoC(SoCCore): class UpsilonSoC(SoCCore):
def add_ip(self, ip_str, ip_name): def add_ip(self, ip_str, ip_name):
for seg_num, ip_byte in enumerate(local_ip.split('.'),start=1): for seg_num, ip_byte in enumerate(ip_str.split('.'),start=1):
self.add_constant(f"{ip_name}{seg_num}", int(ip_byte)) self.add_constant(f"{ip_name}{seg_num}", int(ip_byte))
def __init__(self, def __init__(self,