BlockDecodeStatus<T extends Logic> constructor

BlockDecodeStatus<T extends Logic>(
  1. T data, {
  2. required int syndromeWidth,
  3. required int correctionCountWidth,
  4. String? name,
})

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',
      );