Skip to content

Commit

Permalink
fhdl/specials/Instance: fix item sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Jul 26, 2013
1 parent 6e11954 commit cec8fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/fhdl/specials.py
Expand Up @@ -95,7 +95,7 @@ def __init__(self, of, *items, name="", **kwargs):
else:
self.name_override = of
self.items = list(items)
for k, v in sorted(kwargs.items(), key=itemgetter(1)):
for k, v in sorted(kwargs.items(), key=itemgetter(0)):
item_type, item_name = k.split("_", maxsplit=1)
item_class = {
"i": Instance.Input,
Expand Down

0 comments on commit cec8fc4

Please sign in to comment.