The cache interface.
Definition: cache_abc.h:9
The FIFO replacement policy.
Definition: fifo.h:9
void printState(uint32_t set_idx)
Print out the replacer's internal state.
Definition: fifo.cc:22
uint32_t getVictim(uint32_t set_idx)
Determine which line of a range of lines to replace.
Definition: fifo.cc:16
FIFO(CacheABC &cache, uint32_t num_sets, uint32_t assoc)
Construct a new FIFO replacement policy.
Definition: fifo.cc:8
uint32_t * up_next
The index of the next line to evict.
Definition: fifo.h:31
The base class for replacement policies.
Definition: replacement_policy.h:9
uint32_t num_sets
The number of sets in the cache.
Definition: replacement_policy.h:40
uint32_t assoc
The associativity of the cache.
Definition: replacement_policy.h:42
CacheABC & cache
The parent cache.
Definition: replacement_policy.h:37
Declaration of the replacement policy base class.