The victim cache is enabled by setting the parameter
C_DCACHE_VICTIMS
to 2, 4 or 8. This defines the number of cache
lines that can be stored in the victim cache. Whenever a complete cache line is evicted
from the cache, it is saved in the victim cache. By saving the most recent lines they
can be fetched much faster, should the processor request them, thereby improving
performance. If the victim cache is not used, all evicted cache lines must be read from
memory again when they are needed.
With the AXI4 interface,
C_DCACHE_DATA_WIDTH
determines the amount of data transferred
from/to the victim cache each clock cycle, either 32 bits or an entire cache line.
Note: To be able to use the victim cache, write-back must be enabled and area
optimization must not be enabled.