UncachedMemoryReadResponse<MetadataType extends Logic> constructor

UncachedMemoryReadResponse<MetadataType extends Logic>(
  1. MetadataType metadata, {
  2. required int addressWidth,
  3. required int byteCount,
  4. required int dataWidth,
  5. String? name,
})

Creates an uncached memory read response.

Implementation

UncachedMemoryReadResponse(
  MetadataType metadata, {
  required int addressWidth,
  required int byteCount,
  required this.dataWidth,
  String? name,
}) : super([
        metadata,
        MemoryAccess(
          addressWidth: addressWidth,
          byteCount: byteCount,
          name: 'access',
        ),
        Logic(name: 'data', width: dataWidth),
      ], name: name ?? '${metadata.name}_uncached_read_response') {
  _requirePositive(dataWidth, 'dataWidth');
  if (dataWidth % 8 != 0) {
    throw ArgumentError.value(
      dataWidth,
      'dataWidth',
      'Must contain a whole number of bytes.',
    );
  }
}