diff --git a/litex/soc/interconnect/csr.py b/litex/soc/interconnect/csr.py index f40c2e638..849cfd27e 100644 --- a/litex/soc/interconnect/csr.py +++ b/litex/soc/interconnect/csr.py @@ -543,6 +543,7 @@ def _make_gatherer(method, cls, prefix_cb): 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