From: Sebastien Bourdeauducq Date: Thu, 14 Mar 2013 11:20:18 +0000 (+0100) Subject: flow/actor/filter_endpoints: deterministic order X-Git-Tag: 24jan2021_ls180~2099^2~647 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5adab17efa28ac4329a22d10c3644c33cc69b1d0;p=litex.git flow/actor/filter_endpoints: deterministic order --- diff --git a/migen/flow/actor.py b/migen/flow/actor.py index ce46638d..0b286342 100644 --- a/migen/flow/actor.py +++ b/migen/flow/actor.py @@ -54,7 +54,7 @@ class Actor(HUID): return self.endpoints[ep].token def filter_endpoints(self, cl): - return [k for k, v in self.endpoints.items() if isinstance(v, cl)] + return sorted(k for k, v in self.endpoints.items() if isinstance(v, cl)) def sinks(self): return self.filter_endpoints(Sink)