floodingMinSumLdpcDecoderFunctor function
Creates the ready/valid shell recipe for the flooding min-sum engine.
Implementation
LdpcDecoderFunctor floodingMinSumLdpcDecoderFunctor({
required int maxIterations,
int normalizationNumerator = 1,
int normalizationShift = 0,
int offset = 0,
}) =>
LdpcDecoderFunctor.typed(
identity: 'floodingMinSum_I${maxIterations}_'
'A${normalizationNumerator}S${normalizationShift}_O$offset',
contract: LdpcDecoderContract.minSum(
schedule: LdpcDecoderScheduleKind.flooding,
stateStorage: LdpcDecoderStateStorageKind.registers,
maximumIterations: maxIterations,
checkParallelism: 0,
),
build: <Input extends Logic, Output extends Logic>({
required clk,
required reset,
required code,
required llrWidth,
required upstream,
required downstream,
required name,
}) =>
LdpcMinSumDecoder<Input, Output>(
clk: clk,
reset: reset,
code: code,
llrWidth: llrWidth,
maxIterations: maxIterations,
upstream: upstream,
downstream: downstream,
normalizationNumerator: normalizationNumerator,
normalizationShift: normalizationShift,
offset: offset,
name: name,
),
);