getData method

  1. @override
LogicValue? getData(
  1. LogicValue addr
)
override

Returns the data at addr, or null if it is not present.

Implementation

@override
LogicValue? getData(LogicValue addr) {
  if (addr.width != addrWidth) {
    throw RohdHclException('Address width must be $addrWidth.');
  }

  return _memory[addr];
}