createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() => Cache<Logic>(
      clk: Logic(name: 'clk'),
      reset: Logic(name: 'reset'),
      lookup: CacheLookupPort<Logic>(
          addrWidth: addressWidthKnob.value,
          dataSchema: Logic(width: dataWidthKnob.value)),
      fill: CacheFillPort<Logic>(
          addrWidth: addressWidthKnob.value,
          dataSchema: Logic(width: dataWidthKnob.value)),
      setCount: setCountKnob.value,
      waysPerSet: waysPerSetKnob.value,
      replacement: _replacement(replacementKnob.value),
      readDuringFill: readDuringFillKnob.value,
    );