The WriteThrough coherence protocol.
More...
#include <write_through.h>
The WriteThrough coherence protocol.
◆ WriteThrough()
WriteThrough::WriteThrough |
( |
CacheABC & |
cache | ) |
|
|
inline |
◆ 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.
◆ BusWr()
Receive a BusWr message.
- Parameters
-
line | The cache line accessed |
- Returns
- True if the line data can be or could have been shared
Reimplemented from CoherenceProtocol.
◆ doesWriteNoAllocate()
bool WriteThrough::doesWriteNoAllocate |
( |
| ) |
|
|
virtual |
Determine whether the coherence protocol uses write no-allocate.
- Returns
- True if the coherence protocol uses write no-allocate
Reimplemented from CoherenceProtocol.
◆ isWriteBackNeeded()
bool WriteThrough::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: