AssociativeUpdateRequest<KeyType extends Logic> constructor
Creates an associative update request shape with a packed key.
Implementation
AssociativeUpdateRequest({
required int keyWidth,
required int indexWidth,
String name = 'associativeUpdateRequest',
}) : super([
Logic(name: 'index', width: indexWidth),
Logic(name: 'key', width: keyWidth),
Logic(name: 'entryValid'),
], name: name) {
if (KeyType != Logic) {
throw ArgumentError(
'Use AssociativeUpdateRequest.typed for a specialized key type.');
}
}