KvCacheBlockLookup constructor

KvCacheBlockLookup({
  1. required int sequenceIdWidth,
  2. required int logicalBlockWidth,
  3. String name = 'kvCacheBlockLookup',
})

Creates a logical KV-cache block lookup.

Implementation

KvCacheBlockLookup({
  required this.sequenceIdWidth,
  required this.logicalBlockWidth,
  String name = 'kvCacheBlockLookup',
}) : super(
        [
          Logic(name: 'sequenceId', width: sequenceIdWidth),
          Logic(name: 'logicalBlock', width: logicalBlockWidth),
        ],
        name: name,
      ) {
  if (sequenceIdWidth < 1 || logicalBlockWidth < 1) {
    throw ArgumentError('KV-cache lookup widths must be positive.');
  }
}