Coherency Manager (CM) Behavior
Directory State
The CM maintains a directory entry for each cache line that is present in any core’s L1 cache. Each entry tracks:
Sharer bitmask: which cores hold a copy of the line.
State: the coherence state from the CM’s perspective (
I,S,E, orM).Owner: the core ID of the exclusive/modified owner (if applicable).
CM Response Logic
Incoming Request |
Directory State |
CM Action |
|---|---|---|
|
No sharers ( |
Fetch from memory, respond |
|
Other sharers exist ( |
Fetch from memory, respond |
|
Another core has |
Send |
|
Another core has |
Send |
|
No sharers ( |
Fetch from memory, respond |
|
Other sharers exist ( |
Send |
|
Another core has |
Send |
|
Another core has |
Send |
|
Requester is sole sharer |
Respond |
|
Other sharers exist |
Send |
|
Core is |
Commit data to memory, respond |