Work out the CHI messages of a ReadShared when the home asks the other cache to forward the data.
Hardware context: A CHI-style home node with a snoop filter. Coherent interconnect design and debug
RN-F0 issues ReadShared to HN-F. RN-F1 is the only other cache. The home uses Direct Cache Transfer: it sends a forwarding snoop with RetToSrc = 0, and RN-F1 sends the data straight to RN-F0. Both flows follow example figures in Arm IHI 0050 issue G.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 255 with your decision.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Flow | Where the line is | Figure |
|---|---|---|
| A | RN-F1 holds it Unique Clean | B5.3 |
| B | RN-F1 holds it Unique Dirty, and the home cleans it to memory | B5.4 |
| Code | Message | Code | Message |
|---|---|---|---|
| 1 | ReadShared | 9 | SnpRespData_SC_PD_Fwded_SC |
| 2 | SnpShared | 10 | ReadNoSnp |
| 3 | SnpSharedFwd | 11 | WriteNoSnp |
| 4 | SnpResp_I | 12 | CompDBIDResp |
| 5 | SnpResp_SC | 13 | NCBWrData |
| 6 | SnpRespData_SD | 14 | CompData_UC |
| 7 | SnpRespData_SC_PD | 15 | CompData_SC |
| 8 | SnpResp_SC_Fwded_SC | 16 | CompAck |
| Code | State | Channel | Node |
|---|---|---|---|
| 0 | I | - | RN-F0 |
| 1 | UC | REQ | RN-F1 |
| 2 | UD | SNP | HN-F |
| 3 | SC | RSP | SN-F |
| 4 | SD | DAT | - |
Number messages from 1, starting with the request. RN-F1 answers a forwarding snoop with two messages on different channels; each has its own entry.
| Entry | Your decision |
|---|---|
| A_MSG1 | Flow A, message 1 |
| A_MSG2 | Flow A, message 2 |
| A_TO_RN0 | Flow A, what RN-F1 sends to RN-F0 |
| A_TO_HOME | Flow A, what RN-F1 sends to HN-F |
| A_CHAN_HOME | Flow A, channel of that message to HN-F |
| A_ACK | Flow A, what RN-F0 sends to finish the transaction |
| A_PEER | Flow A, RN-F1 state at the end |
| A_DATA | Flow A, how many messages carry the line |
| B_TO_RN0 | Flow B, what RN-F1 sends to RN-F0 |
| B_TO_HOME | Flow B, what RN-F1 sends to HN-F |
| B_CHAN_HOME | Flow B, channel of that message to HN-F |
| B_DIRTY | Flow B, the node that takes the dirty responsibility |
| B_HOME_REQ | Flow B, what HN-F sends to SN-F |
| B_SN_REPLY | Flow B, what SN-F answers |
| B_HOME_DATA | Flow B, what HN-F then sends to SN-F |
| B_DATA | Flow B, how many messages carry the line |
| EXPECTED_RESPONSE | Now the home sends a plain SnpShared with RetToSrc = 0 and DoNotGoToSD = 0. RN-F1 moves to the expected final state of Table B4.46. PEER is 0 for I, 1 for SC and 2 for UD. Which message code does RN-F1 return? |
Examples
Example 1
A MSG1- Input
Flow A, message 1
- Output
matches = 1
Every flow starts with the request to the home.
Example 2
A MSG2- Input
Flow A, message 2
- Output
matches = 1
A forwarding snoop names RN-F0 as the place to send the data.
Example 3
A TO RN0- Input
Flow A, what RN-F1 sends to RN-F0
- Output
matches = 1
The data goes straight to the requester as Shared Clean.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For EXPECTED_RESPONSE, enter a constant expression using PEER. Only this entry changes with the parameter. The supported integer range is 0 through 2, inclusive.
- Stay inside your module: hierarchical names, $root, force, release, bind and defparam are refused.
Hints
Hint 1
Ask who holds the newest copy before writing any message.
Hint 2
A forwarding snoop gets two replies: data to the requester and a response to the home.
Hint 3
The requester always closes the transaction toward the home.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
17 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path