createModule method
override
Creates a Module instance as configured.
Implementation
@override
Module createModule() {
final groups =
(lanesKnob.value + groupSizeKnob.value - 1) ~/ groupSizeKnob.value;
LogicArray array(int count, int width) => LogicArray([count], width);
return GroupScaleApply(
array(lanesKnob.value, valueWidthKnob.value),
array(groups, scaleKnob.widthKnob.value),
groupSize: groupSizeKnob.value,
fractionalBits: scaleKnob.fractionBitsKnob.value,
outputWidth: outputWidthKnob.value,
signedValue: signedValueKnob.resolve('signedValue'),
signedScale: signedScaleKnob.resolve('signedScale'),
signedOutput: signedOutputKnob.resolve('signedOutput'),
zeroPoints:
zeroPointsKnob.value ? array(groups, outputWidthKnob.value) : null,
activeMask: maskKnob.value ? Logic(width: lanesKnob.value) : null,
roundingMode: roundingKnob.value,
overflowMode: overflowKnob.value,
);
}