createModule method
override
Creates a Module instance as configured.
Implementation
@override
Module createModule() => MultiPortCache<Logic>(
clk: Logic(name: 'clk'),
reset: Logic(name: 'reset'),
lookupPorts: [
for (var i = 0; i < lookupCountKnob.value; i++)
CacheLookupPort<Logic>(
addrWidth: addressWidthKnob.value,
dataSchema: Logic(width: dataWidthKnob.value)),
],
fillPorts: [
for (var i = 0; i < fillCountKnob.value; i++)
CacheFillPort<Logic>(
addrWidth: addressWidthKnob.value,
dataSchema: Logic(width: dataWidthKnob.value)),
],
setCount: setCountKnob.value,
waysPerSet: waysPerSetKnob.value,
maxFillsPerSet: maxFillsPerSetKnob.value,
replacement: _replacement(replacementKnob.value),
readDuringFill: readDuringFillKnob.value,
evictionConcurrency: evictionConcurrencyKnob.value,
);