The InteractiveMode class for coherence protocols.
More...
#include <interactive_mode_coherence.h>
The InteractiveMode class for coherence protocols.
◆ InteractiveModeCoherence()
InteractiveModeCoherence::InteractiveModeCoherence |
( |
std::string |
coherence_protocol_name | ) |
|
Construct a new interactive mode cache showcasing a coherence protocol.
- Parameters
-
coherence_protocol_name | The coherence protocol to use |
◆ evalutateCommand()
bool InteractiveModeCoherence::evalutateCommand |
( |
std::string & |
cmd | ) |
|
|
virtual |
Evaluate a command received from the input.
- Parameters
-
- Returns
- True if the command was successful
Implements InteractiveMode.
◆ issueBusMsg()
bool InteractiveModeCoherence::issueBusMsg |
( |
bus_msg_e |
bus_msg | ) |
|
|
virtual |
Issue a BusRd message to "neighboring caches".
- Parameters
-
bus_msg | The specific bus message |
- Returns
- True if the 'COPIES-EXIST' line was asserted
Reimplemented from InteractiveMode.
◆ receiveBusMsg()
bool InteractiveModeCoherence::receiveBusMsg |
( |
bus_msg_e |
bus_msg, |
|
|
uint32_t |
cache_id |
|
) |
| |
|
private |
Issue a bus message to "this cache".
- Parameters
-
bus_msg | The specific bus message |
cache_id | The cache ID of the recipient |
- Returns
- True if the accessed line was flushed into the bus
◆ receiveEvict()
void InteractiveModeCoherence::receiveEvict |
( |
uint32_t |
cache_id | ) |
|
|
private |
Issue an Evict message to a cache.
- Parameters
-
cache_id | The cache ID of the recipient |
◆ receivePrRd()
void InteractiveModeCoherence::receivePrRd |
( |
uint32_t |
cache_id | ) |
|
|
private |
Issue a PrWr message to a cache.
- Parameters
-
cache_id | The cache ID of the recipient |
◆ receivePrWr()
void InteractiveModeCoherence::receivePrWr |
( |
uint32_t |
cache_id | ) |
|
|
private |
Issue a PrRd message to a cache.
- Parameters
-
cache_id | The cache ID of the recipient |
The documentation for this class was generated from the following files: