BchGeneralPipelinedDecoder<Input extends Logic, Output extends Logic> constructor
- required Logic clk,
- required Logic reset,
- required BchCode code,
- required int correctionCapacity,
- required ReadyValidCodecInterface<
Input> upstream, - required ReadyValidCodecInterface<
Output> downstream, - int pipelineDepth = 3,
- String name = 'bch_general_pipelined_decoder',
Creates the established capacity-parameterized BCH decoder boundary.
Implementation
BchGeneralPipelinedDecoder({
required super.clk,
required super.reset,
required BchCode code,
required int correctionCapacity,
required super.upstream,
required super.downstream,
this.pipelineDepth = 3,
super.name = 'bch_general_pipelined_decoder',
}) : super(
definitionName: schemaQualifiedDefinitionName(
'BchGeneralPipelinedDecoder_${code.configurationSignature}_'
'T${correctionCapacity}_P${pipelineDepth}_',
[upstream.data, downstream.data],
),
buildEngine: ({
required clk,
required reset,
required accept,
required inputFrame,
required resultSchema,
required consumeResult,
required name,
}) =>
BchGeneralPipelinedDecoderCore<Input, Output>(
clk: clk,
reset: reset,
code: code,
correctionCapacity: correctionCapacity,
accept: accept,
inputFrame: inputFrame,
resultSchema: resultSchema,
consumeResult: consumeResult,
pipelineDepth: pipelineDepth,
name: name,
),
) {
status = addTypedOutput('status', engine.status.clone)..gets(engine.status);
}