createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() => TensorMaskedSramBank(
      clk: Logic(),
      reset: Logic(),
      depth: depthKnob.value,
      reads: ValidThenReadyInterface(TensorScratchpadReadRequest(
          addressWidth: depthKnob.value.log2Ceil,
          tagWidth: tagWidthKnob.value)),
      writes: ValidThenReadyInterface(ByteMaskedWriteRequest(
          addrWidth: depthKnob.value.log2Ceil,
          dataWidth: bytesKnob.value * 8)),
      responses: ReadyValidInterface(TensorScratchpadReadResponse<Logic>(
          data: Logic(width: bytesKnob.value * 8),
          tagWidth: tagWidthKnob.value)),
    );