UncachedMemoryReadResponse<MetadataType extends Logic> constructor
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.',
);
}
}