Skip to content

Commit

Permalink
fhdl/tools: apply lowerer to specials in deterministic order
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 21, 2016
1 parent fa3537d commit 737af2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/fhdl/tools.py
Original file line number Diff line number Diff line change
@@ -236,7 +236,7 @@ def _apply_lowerer(l, f):
f = l.visit(f)
f.comb += l.comb

for special in f.specials:
for special in sorted(f.specials, key=lambda s: s.duid):
for obj, attr, direction in special.iter_expressions():
if direction != SPECIAL_INOUT:
# inouts are only supported by Migen when connected directly to top-level

0 comments on commit 737af2e

Please sign in to comment.