setData method

  1. @override
void setData(
  1. LogicValue addr,
  2. LogicValue data
)
override

Loads data into addr directly into storage.

Implementation

@override
void setData(LogicValue addr, LogicValue data) {
  if (!addr.isValid) {
    throw RohdHclException('Can only write to valid addresses.');
  }

  _memory[addr] = data;
}