createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() {
  final dataIn = Logic(name: 'data', width: max(1, dataWidthKnob.value));
  final length = max(1, windowLengthKnob.value);
  final clk = Logic(name: 'clk');
  if (contiguousKnob.value) {
    return SlidingWindow(dataIn, clk: clk, windowLength: length);
  }
  return TappedDelayLine(dataIn,
      clk: clk, tapDelays: {0, length - 1}.toList());
}