fix SoC compile
This commit is contained in:
parent
0bb27e9b03
commit
cd2be977bc
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue