mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/specials/Instance: fix item sorting
This commit is contained in:
parent
6e1195415e
commit
cec8fc4ca4
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Instance(Special):
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue