createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() => ReadyValidQueue<Logic>(
      clk: Logic(name: 'clk'),
      reset: Logic(name: 'reset'),
      upstream: ReadyValidInterface(
        Logic(name: 'input', width: dataWidthKnob.value),
      ),
      downstream: ReadyValidInterface(
        Logic(name: 'output', width: dataWidthKnob.value),
      ),
      depth: depthKnob.value,
      policy: fallThroughKnob.value
          ? ReadyValidQueuePolicy.fallThrough
          : ReadyValidQueuePolicy.registered,
      storage: storageKnob.value,
    );