CacheModel<T extends Logic, M extends Logic, C extends Logic, R extends Logic> constructor
- required Logic clk,
- required Logic reset,
- required List<
CacheTransactionPort< ports,T, M, C, R> > - required int setCount,
- required int waysPerSet,
- required int maxOutstanding,
- required CacheModelBackingStore backingStore,
- int operationsPerCycle = 1,
- int operationLatency = 1,
- CacheModelReplacement? replacement,
- String name = 'behavioral_cache',
Creates the model. The port operation width must encode the extensions.
Implementation
CacheModel({
required Logic clk,
required Logic reset,
required List<CacheTransactionPort<T, M, C, R>> ports,
required int setCount,
required int waysPerSet,
required int maxOutstanding,
required CacheModelBackingStore backingStore,
int operationsPerCycle = 1,
int operationLatency = 1,
CacheModelReplacement? replacement,
String name = 'behavioral_cache',
}) : this._create(
clk: clk,
reset: reset,
ports: ports,
setCount: setCount,
waysPerSet: waysPerSet,
maxOutstanding: maxOutstanding,
backingStore: backingStore,
operationsPerCycle: operationsPerCycle,
operationLatency: operationLatency,
replacement: replacement,
timing: CacheModelTiming.concurrent,
dataReadLatency: 1,
backingReadLatency: 0,
name: name,
);