BlockDecodeStatus<T extends Logic> constructor
Creates a block decode status carrying data.
Implementation
BlockDecodeStatus(
T data, {
required this.syndromeWidth,
required this.correctionCountWidth,
String? name,
}) : super(
[
data,
Logic(
name: 'syndrome',
width: _validatedWidth(syndromeWidth, 'syndromeWidth'),
),
Logic(name: 'errorDetected'),
Logic(name: 'corrected'),
Logic(name: 'uncorrectable'),
Logic(
name: 'correctionCount',
width: _validatedWidth(
correctionCountWidth,
'correctionCountWidth',
),
),
],
name: name ?? '${data.name}_decode_status',
);