S9.4.1 Order the Messages of a Shared Read

HardImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
FlowWhere the line isFigure
ARN-F1 holds it Unique CleanB5.3
BRN-F1 holds it Unique Dirty, and the home cleans it to memoryB5.4
CodeMessageCodeMessage
1ReadShared9SnpRespData_SC_PD_Fwded_SC
2SnpShared10ReadNoSnp
3SnpSharedFwd11WriteNoSnp
4SnpResp_I12CompDBIDResp
5SnpResp_SC13NCBWrData
6SnpRespData_SD14CompData_UC
7SnpRespData_SC_PD15CompData_SC
8SnpResp_SC_Fwded_SC16CompAck
CodeStateChannelNode
0I-RN-F0
1UCREQRN-F1
2UDSNPHN-F
3SCRSPSN-F
4SDDAT-

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.

EntryYour decision
A_MSG1Flow A, message 1
A_MSG2Flow A, message 2
A_TO_RN0Flow A, what RN-F1 sends to RN-F0
A_TO_HOMEFlow A, what RN-F1 sends to HN-F
A_CHAN_HOMEFlow A, channel of that message to HN-F
A_ACKFlow A, what RN-F0 sends to finish the transaction
A_PEERFlow A, RN-F1 state at the end
A_DATAFlow A, how many messages carry the line
B_TO_RN0Flow B, what RN-F1 sends to RN-F0
B_TO_HOMEFlow B, what RN-F1 sends to HN-F
B_CHAN_HOMEFlow B, channel of that message to HN-F
B_DIRTYFlow B, the node that takes the dirty responsibility
B_HOME_REQFlow B, what HN-F sends to SN-F
B_SN_REPLYFlow B, what SN-F answers
B_HOME_DATAFlow B, what HN-F then sends to SN-F
B_DATAFlow B, how many messages carry the line
EXPECTED_RESPONSENow 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

A MSG1

Input
Flow A, message 1
Expected output
matches = 1

Every flow starts with the request to the home.

Run samples executes all 3 public checks. Check all tests runs 17 checks on the server.

Icarus Verilog · server