KvCacheBlockBinding constructor
Creates a KV-cache block binding update.
Implementation
KvCacheBlockBinding({
required this.entryCount,
required this.sequenceIdWidth,
required this.logicalBlockWidth,
required this.physicalBlockWidth,
required this.referenceCountWidth,
String name = 'kvCacheBlockBinding',
}) : super(
[
Logic(name: 'entryIndex', width: widthFor(entryCount)),
Logic(name: 'sequenceId', width: sequenceIdWidth),
Logic(name: 'logicalBlock', width: logicalBlockWidth),
Logic(name: 'physicalBlock', width: physicalBlockWidth),
Logic(name: 'referenceCount', width: referenceCountWidth),
Logic(name: 'entryValid'),
],
name: name,
) {
validateKvCacheBlockShape(
entryCount: entryCount,
sequenceIdWidth: sequenceIdWidth,
logicalBlockWidth: logicalBlockWidth,
physicalBlockWidth: physicalBlockWidth,
referenceCountWidth: referenceCountWidth,
);
}