The MESI coherence protocol.
More...
#include <mesi.h>
The MESI coherence protocol.
◆ MESI()
Construct a new MESI coherence protocol.
- Parameters
-
◆ BusRd()
Receive a BusRd message.
- Parameters
-
line | The cache line accessed |
- Returns
- True if the line data can be or could have been shared
Implements CoherenceProtocol.
◆ BusRdX()
Receive a BusRdX message.
- Parameters
-
line | The cache line accessed |
- Returns
- True if the line data can be or could have been shared
Reimplemented from CoherenceProtocol.
◆ BusUpgr()
Receive a BusUpgr message.
- Parameters
-
line | The cache line accessed |
- Returns
- True if the line data can be or could have been shared
Reimplemented from CoherenceProtocol.
◆ isWriteBackNeeded()
bool MESI::isWriteBackNeeded |
( |
state_e |
state | ) |
|
|
virtual |
Determine whether a line needs to be written back to main memory.
- Parameters
-
state | The state of the line |
- Returns
- Whether the line needs to be written back to main memory
Implements CoherenceProtocol.
◆ PrRd()
Receive a PrRd message.
- Parameters
-
line | The cache line accessed (non-null) |
Implements CoherenceProtocol.
◆ PrWr()
Receive a PrWr message.
- Parameters
-
line | The cache line accessed (non-null) |
Implements CoherenceProtocol.
The documentation for this class was generated from the following files: