Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fhdl/specials/Instance: fix item sorting

  • Loading branch information...
commit cec8fc4ca4b60e7081d969531a6c793646d855b9 1 parent 6e11954
@sbourdeauducq sbourdeauducq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  migen/fhdl/specials.py
View
2  migen/fhdl/specials.py
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.