Bus providing access to subordinate buses.
"""
- def __init__(self, *, addr_width, data_width, granularity=None, features=frozenset(),
+ def __init__(self, *, addr_width, data_width, granularity=None,
+ features=None,
alignment=0):
+ if features is None:
+ features = frozenset()
self.bus = Interface(addr_width=addr_width, data_width=data_width,
granularity=granularity, features=features,
alignment=alignment)
Shared bus to which the selected initiator gains access.
"""
- def __init__(self, *, addr_width, data_width, granularity=None, features=frozenset(),
+ def __init__(self, *, addr_width, data_width, granularity=None,
+ features=None,
scheduler="rr"):
+ if features is None:
+ features = frozenset()
self.bus = Interface(addr_width=addr_width, data_width=data_width,
granularity=granularity, features=features)
self._itors = []