ProtectionCodec<Logical extends Logic, Protected extends Logic> constructor
- required String identity,
- required int logicalWidth,
- required int protectedWidth,
- required ProtectionEncoder<
Logical, Protected> encode, - required ProtectionDecoder<
Logical, Protected> decode, - ProtectionStatusDecoder<
Protected> ? decodeStatus,
Creates a reusable protection capability.
Implementation
ProtectionCodec({
required this.identity,
required this.logicalWidth,
required this.protectedWidth,
required this.encode,
required this.decode,
this.decodeStatus,
}) {
if (logicalWidth < 1 || protectedWidth < 1) {
throw RohdHclException('Protection codec widths must be positive.');
}
}