SparseMemoryStorage constructor

SparseMemoryStorage({
  1. required int addrWidth,
  2. required int dataWidth,
  3. LogicValue alignAddress(
    1. LogicValue addr
    )?,
  4. LogicValue onInvalidRead(
    1. LogicValue addr,
    2. int dataWidth
    )?,
  5. void onInvalidWrite()? = _defaultOnInvalidWrite,
})

Constructs a new sparse memory storage with specified addrWidth for all addresses.

Implementation

SparseMemoryStorage({
  required super.addrWidth,
  required super.dataWidth,
  super.alignAddress,
  super.onInvalidRead,
  super.onInvalidWrite,
});