setData method
- LogicValue addr,
- 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.');
}
if (addr.width != addrWidth) {
throw RohdHclException('Address width must be $addrWidth.');
}
if (data.width != dataWidth) {
throw RohdHclException('Data width must be $dataWidth.');
}
_memory[addr] = data;
}