createModule method
override
Creates a Module instance as configured.
Implementation
@override
Module createModule() {
final entryCount = max(1, entryCountKnob.value);
final addressWidth = max(1, addressWidthKnob.value);
final byteCount = max(1, byteCountKnob.value);
return MemoryAddressMatcher(
queryAddress: Logic(name: 'queryAddress', width: addressWidth),
queryByteEnable: Logic(name: 'queryByteEnable', width: byteCount),
candidateValid: Logic(name: 'candidateValid', width: entryCount),
candidateAddresses: [
for (var index = 0; index < entryCount; index++)
Logic(name: 'candidateAddress$index', width: addressWidth)
],
candidateByteEnables: [
for (var index = 0; index < entryCount; index++)
Logic(name: 'candidateByteEnable$index', width: byteCount)
],
);
}