ExecutionWritebackEvent<LogicType extends Logic> constructor

ExecutionWritebackEvent<LogicType extends Logic>(
  1. LogicType result, {
  2. required int destinationWidth,
  3. required int domainWidth,
  4. String? name,
})

Creates an execution writeback event.

Implementation

ExecutionWritebackEvent(
  LogicType result, {
  required this.destinationWidth,
  required this.domainWidth,
  String? name,
}) : super([
        result,
        Logic(name: 'destination', width: destinationWidth),
        Logic(name: 'domain', width: domainWidth),
        Logic(name: 'exception'),
        Logic(name: 'replay'),
      ], name: name ?? '${result.name}_execution_writeback') {
  if (destinationWidth < 1 || domainWidth < 1) {
    throw ArgumentError('Destination and domain widths must be positive.');
  }
}