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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Edge | Channel | Manager | Address | Data | Response code |
|---|---|---|---|---|---|
| 4 | AR | 0 | 80000000 | ||
| 4 | AR | 1 | 80000000 | ||
| 6 | R | 0 | 0000005c | 00 | |
| 8 | R | 1 | 0000005c | 00 | |
| 9 | AR | 0 | 10007000 | ||
| 9 | AR | 1 | 10000000 | ||
| 11 | R | 0 | 00000000 | 11 | |
| 11 | R | 1 | 0000002a | 00 | |
| 12 | AR | 0 | 10000000 | ||
| 12 | AR | 1 | 10000000 | ||
| 14 | R | 0 | 0000002a | 00 | |
| 16 | R | 1 | 0000002a | 00 |
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.
| Entry | Your decision |
|---|---|
| TIE_EDGE | Edge at which both managers send a read address for SRAM. |
| FIRST_REPLY | Edge of the reply to manager 0 for that read. |
| FIRST_VALUE | Value that manager 0 reads from SRAM, in decimal. |
| SECOND_REPLY | Edge of the reply to manager 1 for that read. |
| EXTRA_WAIT | Number of edges that manager 1 waited longer than manager 0. |
| MISS_REPLY | Edge of the reply to the read that nobody owns. |
| MISS_CODE | Response code of that reply. Read the two bits as a binary number. |
| SIDE_REPLY | Edge of the reply to manager 1 for the read it sent at edge 9. |
| SIDE_VALUE | Value that manager 1 reads from the console, in decimal. |
| CONSOLE_LAST | Number of the manager whose reply comes last in the tie at the console. |
| OKAY_COUNT | Number of replies in the capture with response code 00. |
| LAST_EDGE | Edge of the last reply in the capture. |
| LATE_REPLY | At 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