We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eef71b commit 380e60aCopy full SHA for 380e60a
migen/fhdl/namer.py
@@ -182,9 +182,10 @@ def _build_signal_groups(signals):
182
related_list.insert(0, cur_signal)
183
cur_signal = cur_signal.related
184
# add to groups
185
- r += [set()]*(len(related_list) - len(r))
186
- for target_set, source_set in zip(r, related_list):
187
- 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):
188
+ target_set.add(source_signal)
189
# with the algorithm above and a list of all signals,
190
# a signal appears in all groups of a lower number than its.
191
# make signals appear only in their group of highest number.
0 commit comments