|
|
@ -375,7 +375,7 @@ class Circuit: |
|
|
|
|
|
|
|
|
|
|
|
def io_loc(self, prefix): |
|
|
|
def io_loc(self, prefix): |
|
|
|
d_top = dict() |
|
|
|
d_top = dict() |
|
|
|
for i, n in enumerate(list(self.interface) + [n for n in self.nodes if 'ff' in n.kind.lower()]): |
|
|
|
for i, n in enumerate(list(self.interface) + [n for n in self.nodes if 'dff' in n.kind.lower()]): |
|
|
|
if m := re.match(fr'({prefix}.*?)((?:[_\[\]]\d+)*[_\[\]]*$)', n.name): |
|
|
|
if m := re.match(fr'({prefix}.*?)((?:[_\[\]]\d+)*[_\[\]]*$)', n.name): |
|
|
|
path = [m[1]] + [int(v) for v in re.split(r'[_\[\]]+', m[2]) if len(v) > 0] |
|
|
|
path = [m[1]] + [int(v) for v in re.split(r'[_\[\]]+', m[2]) if len(v) > 0] |
|
|
|
d = d_top |
|
|
|
d = d_top |
|
|
|