createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() {
  final inp = Logic(width: inputWidthKnob.value);
  return directionKnob.value == BinaryToOneHot
      ? BinaryToOneHot(inp)
      : OneHotToBinary(inp, generateError: generateErrorKnob.value);
}