fhdl/namer: fix object aliasing bug
This commit is contained in:
parent
1eef71ba87
commit
380e60af55
|
@ -182,9 +182,10 @@ def _build_signal_groups(signals):
|
||||||
related_list.insert(0, cur_signal)
|
related_list.insert(0, cur_signal)
|
||||||
cur_signal = cur_signal.related
|
cur_signal = cur_signal.related
|
||||||
# add to groups
|
# add to groups
|
||||||
r += [set()]*(len(related_list) - len(r))
|
for _ in range(len(related_list) - len(r)):
|
||||||
for target_set, source_set in zip(r, related_list):
|
r.append(set())
|
||||||
target_set.add(source_set)
|
for target_set, source_signal in zip(r, related_list):
|
||||||
|
target_set.add(source_signal)
|
||||||
# with the algorithm above and a list of all signals,
|
# with the algorithm above and a list of all signals,
|
||||||
# a signal appears in all groups of a lower number than its.
|
# a signal appears in all groups of a lower number than its.
|
||||||
# make signals appear only in their group of highest number.
|
# make signals appear only in their group of highest number.
|
||||||
|
|
Loading…
Reference in New Issue