CohereSim: A Bus-based Cache Simulator  v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
cache_abc.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "typedefs.h"
7 
9 class CacheABC {
10 public:
11 
12  virtual ~CacheABC() {}
13 
17  virtual bool issueBusMsg(bus_msg_e bus_msg) = 0;
18 
23  virtual state_e getLineState(uint32_t set_idx, uint32_t way_idx) = 0;
24 };
The cache interface.
Definition: cache_abc.h:9
virtual state_e getLineState(uint32_t set_idx, uint32_t way_idx)=0
Get the state of a line in the cache.
virtual bool issueBusMsg(bus_msg_e bus_msg)=0
Issue a BusRd message to neighboring caches.
Global type definitions.
state_e
Cache line state.
Definition: typedefs.h:64
bus_msg_e
Bus message IDs.
Definition: typedefs.h:92