pokeBigInt method

  1. @override
void pokeBigInt(
  1. BigInt address,
  2. LogicValue value
)
override

Replaces raw state at an arbitrary-width logical address.

Implementation

@override
void pokeBigInt(BigInt address, LogicValue value) {
  final register = _at(address);
  if (value.width != register.config.width) {
    throw ArgumentError('CSR value width does not match its register.');
  }
  register.value = normalizeStoredValue(value);
  _driveRead();
  _driveHardware([address]);
}