CohereSim: A Bus-based Cache Simulator  v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
Public Member Functions
CacheABC Class Referenceabstract

The cache interface. More...

#include <cache_abc.h>

Inheritance diagram for CacheABC:
Inheritance graph
[legend]

Public Member Functions

virtual bool issueBusMsg (bus_msg_e bus_msg)=0
 Issue a BusRd message to neighboring caches. More...
 
virtual state_e getLineState (uint32_t set_idx, uint32_t way_idx)=0
 Get the state of a line in the cache. More...
 

Detailed Description

The cache interface.

Member Function Documentation

◆ getLineState()

virtual state_e CacheABC::getLineState ( uint32_t  set_idx,
uint32_t  way_idx 
)
pure virtual

Get the state of a line in the cache.

Parameters
set_idxThe index of the set containing the line
way_idxThe index of the way containing the line (0 to assoc-1)
Returns
The state of the cache line

Implemented in InteractiveMode, and Cache.

◆ issueBusMsg()

virtual bool CacheABC::issueBusMsg ( bus_msg_e  bus_msg)
pure virtual

Issue a BusRd message to neighboring caches.

Parameters
bus_msgThe specific bus message
Returns
True if the 'COPIES-EXIST' line was asserted

Implemented in InteractiveModeCoherence, InteractiveMode, and Cache.


The documentation for this class was generated from the following file: