Skip to content

Commit

Permalink
fhdl/namer: fix object aliasing bug
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 22, 2015
1 parent 1eef71b commit 380e60a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions migen/fhdl/namer.py
Original file line number Diff line number Diff line change
@@ -182,9 +182,10 @@ def _build_signal_groups(signals):
related_list.insert(0, cur_signal)
cur_signal = cur_signal.related
# add to groups
r += [set()]*(len(related_list) - len(r))
for target_set, source_set in zip(r, related_list):
target_set.add(source_set)
for _ in range(len(related_list) - len(r)):
r.append(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,
# a signal appears in all groups of a lower number than its.
# make signals appear only in their group of highest number.

0 comments on commit 380e60a

Please sign in to comment.