MultiPortCache<T extends Logic> constructor
- required Logic clk,
- required Logic reset,
- required int setCount,
- required int waysPerSet,
- List<
CacheLookupPort< ? lookupPorts,T> > - List<
CacheFillPort< ? fillPorts,T> > - int maxFillsPerSet = 1,
- CacheReplacement replacement = CacheReplacement.roundRobin,
- CacheDataStorage? dataStorage,
- MemoryArrayFunctor<
T> ? dataMemory, - CacheReadDuringFill readDuringFill = CacheReadDuringFill.oldData,
- CacheEvictionConcurrency evictionConcurrency = CacheEvictionConcurrency.parallel,
- AssociativeMemoryFunctor tagMemory = parallelAssociativeMemoryFunctor,
- String name = 'multi_port_cache',
- @Deprecated('Use lookupPorts instead.') List<
CacheLookupPort< ? lookups,T> > - @Deprecated('Use fillPorts instead.') List<
CacheFillPort< ? fills,T> >
Creates a cache with multiple lookup and fill ports.
lookupPorts and fillPorts are required; lookups and fills are
their deprecated former names.
Implementation
MultiPortCache({
required Logic clk,
required Logic reset,
required int setCount,
required int waysPerSet,
List<CacheLookupPort<T>>? lookupPorts,
List<CacheFillPort<T>>? fillPorts,
int maxFillsPerSet = 1,
CacheReplacement replacement = CacheReplacement.roundRobin,
CacheDataStorage? dataStorage,
MemoryArrayFunctor<T>? dataMemory,
CacheReadDuringFill readDuringFill = CacheReadDuringFill.oldData,
CacheEvictionConcurrency evictionConcurrency =
CacheEvictionConcurrency.parallel,
AssociativeMemoryFunctor tagMemory = parallelAssociativeMemoryFunctor,
String name = 'multi_port_cache',
@Deprecated('Use lookupPorts instead.') List<CacheLookupPort<T>>? lookups,
@Deprecated('Use fillPorts instead.') List<CacheFillPort<T>>? fills,
}) : this._(
clk: clk,
reset: reset,
lookups:
resolveAssociativePortList(lookupPorts, lookups, 'lookupPorts'),
fills: resolveAssociativePortList(fillPorts, fills, 'fillPorts'),
setCount: setCount,
waysPerSet: waysPerSet,
maxFillsPerSet: maxFillsPerSet,
replacement: replacement,
dataStorage: dataStorage,
dataMemory: dataMemory,
readDuringFill: readDuringFill,
evictionConcurrency: evictionConcurrency,
tagMemory: tagMemory,
name: name,
);