MemoryStorage constructor
- required int addrWidth,
- required int dataWidth,
- void onInvalidWrite()? = _defaultOnInvalidWrite,
- LogicValue onInvalidRead(
- LogicValue addr,
- int dataWidth
- LogicValue alignAddress(
- LogicValue addr
Constrcuts a MemoryStorage with specified addrWidth and dataWidth.
Implementation
MemoryStorage({
required this.addrWidth,
required this.dataWidth,
void Function()? onInvalidWrite = _defaultOnInvalidWrite,
LogicValue Function(LogicValue addr, int dataWidth)? onInvalidRead,
LogicValue Function(LogicValue addr)? alignAddress,
}) : onInvalidWrite = onInvalidWrite ?? _defaultOnInvalidWrite,
onInvalidRead = onInvalidRead ?? _defaultOnInvalidRead,
alignAddress = alignAddress ?? _defaultAlignAddress;