S4.14.1 Where Two Reads Meet

EasyImplement12 minIcarus Verilog · serverReview the topic

Read a crossbar capture: find who waits in a tie, what the wait costs, and how a read that nobody owns ends.

Hardware context: Two-manager AXI crossbar with an arbiter at each subordinate and a default subordinate. Reading an AXI interconnect capture during bring-up

This capture comes from the lab of lesson S4.14. A crossbar joins two managers to a console register at 0x1000_0000 and an SRAM word at 0x8000_0000. Every other address goes to a default subordinate. Each subordinate has its own arbiter, which prefers manager 0.

This worksheet uses named constants. The first three entries show how to record your decisions.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
EdgeChannelManagerAddressDataResponse code
4AR080000000
4AR180000000
6R00000005c00
8R10000005c00
9AR010007000
9AR110000000
11R00000000011
11R10000002a00
12AR010000000
12AR110000000
14R00000002a00
16R10000002a00

Each row is one handshake. An AR row is a read address that the crossbar takes at that edge. An R row is the reply to a read: the data, and the response code in binary. The capture starts after two writes. Enter edges as plain numbers, and values in decimal: 0x2A is 42.

EntryYour decision
TIE_EDGEEdge at which both managers send a read address for SRAM.
FIRST_REPLYEdge of the reply to manager 0 for that read.
FIRST_VALUEValue that manager 0 reads from SRAM, in decimal.
SECOND_REPLYEdge of the reply to manager 1 for that read.
EXTRA_WAITNumber of edges that manager 1 waited longer than manager 0.
MISS_REPLYEdge of the reply to the read that nobody owns.
MISS_CODEResponse code of that reply. Read the two bits as a binary number.
SIDE_REPLYEdge of the reply to manager 1 for the read it sent at edge 9.
SIDE_VALUEValue that manager 1 reads from the console, in decimal.
CONSOLE_LASTNumber of the manager whose reply comes last in the tie at the console.
OKAY_COUNTNumber of replies in the capture with response code 00.
LAST_EDGEEdge of the last reply in the capture.
LATE_REPLYAt which edge would manager 1 get its reply from SRAM if both read addresses for SRAM were sent at edge N in place of edge 4?

Examples

Example 1

TIE EDGE
Input
Edge at which both managers send a read address for SRAM.
Output
matches = 1

Both AR rows of edge 4 carry the address 80000000.

Example 2

FIRST REPLY
Input
Edge of the reply to manager 0 for that read.
Output
matches = 1

The arbiter of SRAM prefers manager 0. Its R row comes two edges after the address.

Example 3

FIRST VALUE
Input
Value that manager 0 reads from SRAM, in decimal.
Output
matches = 1

The data is 0x5C, which is 92.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For LATE_REPLY, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 4 through 19, inclusive.

Hints

Hint 1

For each manager, the first R row answers its first AR row, the second answers the second, and so on.

Hint 2

A tie is one edge with two AR rows for the same address. Only then does one manager wait for the other.

Hint 3

A reply with code 11 came from the default subordinate. Its data means nothing.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

13 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 1 problem 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

TIE EDGE

Input
Edge at which both managers send a read address for SRAM.
Expected output
matches = 1

Both AR rows of edge 4 carry the address 80000000.

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

Icarus Verilog · server