mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
flow/actor/filter_endpoints: deterministic order
This commit is contained in:
parent
fc883198ae
commit
5adab17efa
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class Actor(HUID):
|
||||||
return self.endpoints[ep].token
|
return self.endpoints[ep].token
|
||||||
|
|
||||||
def filter_endpoints(self, cl):
|
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):
|
def sinks(self):
|
||||||
return self.filter_endpoints(Sink)
|
return self.filter_endpoints(Sink)
|
||||||
|
|
Loading…
Reference in a new issue