AssociativeUpdateRequest<KeyType extends Logic> constructor

AssociativeUpdateRequest<KeyType extends Logic>({
  1. required int keyWidth,
  2. required int indexWidth,
  3. String name = 'associativeUpdateRequest',
})

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.');
  }
}