Skip to content

Commit

Permalink
interconnect/csr: Sort by DUID even with sort=False (for retro-compat…
Browse files Browse the repository at this point in the history
…ibility).
  • Loading branch information
enjoy-digital committed Oct 22, 2022
1 parent 50acdf7 commit 88d8977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litex/soc/interconnect/csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ def gatherer(self, sort=False):
items = getattr(v, method)()
prefix_cb(k + "_", items, prefixed)
r += items
r = sorted(r, key=lambda x: x.duid)
if sort:
r = _sort_gathered_items(r)
return r
Expand Down

0 comments on commit 88d8977

Please sign in to comment.