# These are redirection of "Type (1) - AST " nmigen language constructs
# If over-ridden to provide advanced behaviour, the implementation
# *MUST NOT* use "Type (2) - dsl.Module" nmigen language constructs
- # (m.If, m.Else, m.Switch, m.FSM): it creates complications in dsl.Module.
+ # (m.If, m.Else, m.Switch, m.FSM): it creates complications
+ # (recursive dependencies) in dsl.Module.
- def __Part__(self, offset, width, stride, *, src_loc_at=0):
- return _InternalPart(self, offset, width, stride, src_loc_at=src_loc_at)
+ def __Part__(self, offset, width, stride=1, *, src_loc_at=0):
+ return _InternalPart(self, offset, width, stride,
+ src_loc_at=src_loc_at)
def __Repl__(self, count, *, src_loc_at=0):
return _InternalRepl(self, count, src_loc_at=src_loc_at)
def __Cat__(self, *args, src_loc_at=0):