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