Find both cycles of an AHB error in a capture, and what the error costs the read behind it.
Hardware context: AHB bus with SRAM and a default subordinate. Reading a bus error in an AHB waveform
This capture comes from the lab of lesson S4.12. The bus has SRAM at 0x8000_0000 and a default subordinate for every other address. The manager only reads. When it sees the first cycle of an error, it cancels the request that is waiting and asks for it again.
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 | HTRANS | HADDR | HREADY | HRESP | HRDATA |
|---|---|---|---|---|---|
| 0 | IDLE | 00000000 | 1 | 0 | xxxxxxxx |
| 1 | IDLE | 40000000 | 1 | 0 | xxxxxxxx |
| 2 | NONSEQ | 80000008 | 1 | 0 | xxxxxxxx |
| 3 | NONSEQ | 40000000 | 1 | 0 | 000000a2 |
| 4 | NONSEQ | 8000000c | 0 | 1 | xxxxxxxx |
| 5 | IDLE | 8000000c | 1 | 1 | xxxxxxxx |
| 6 | NONSEQ | 8000000c | 1 | 0 | xxxxxxxx |
| 7 | NONSEQ | 80000000 | 1 | 0 | 000000a3 |
| 8 | IDLE | 80000000 | 1 | 0 | 000000a0 |
| 9 | IDLE | 80000000 | 1 | 0 | xxxxxxxx |
Each row is what one rising clock edge sees. An address is taken at an edge that sees HTRANS at NONSEQ and HREADY at 1. Its data phase ends at the next edge that sees HREADY at 1. Enter edges as plain numbers, and values in decimal: 0xA2 is 162.
| Entry | Your decision |
|---|---|
| FIRST_ADDR | Edge that takes the address of the first read. |
| FIRST_DATA | Edge where the first read happens. |
| FIRST_VALUE | Value that the first read returns, in decimal. |
| IDLE_READY | HREADY at edge 2. Edge 1 saw an idle cycle that pointed at a hole. |
| HOLE_ADDR | Edge that takes the address of the read of the hole. |
| ERROR_FIRST | Edge that sees the first cycle of the error. |
| ERROR_END | Edge where the failed read ends. |
| WAIT_EDGES | Number of edges that see HREADY at 0. |
| CANCEL_EDGE | Edge that sees the cancelled request as IDLE. |
| RETRY_ADDR | Edge that takes the address 8000000c at last. |
| RETRY_VALUE | Value that the read of 8000000c returns, in decimal. |
| LAST_EDGE | Edge where the last read happens. |
| LATE_LAST_EDGE | At which edge would the last read happen if the manager first tried N more reads of a hole, right after the idle cycle? |
Examples
Example 1
FIRST ADDR- Input
Edge that takes the address of the first read.
- Output
matches = 1
Edge 2 is the first to see NONSEQ, and HREADY is 1 there. Edge 1 sees IDLE.
Example 2
FIRST DATA- Input
Edge where the first read happens.
- Output
matches = 1
SRAM answers in one cycle: HREADY is 1 and HRESP is 0 at edge 3.
Example 3
FIRST VALUE- Input
Value that the first read returns, in decimal.
- Output
matches = 1
HRDATA at edge 3 is 0xA2, which is 162.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For LATE_LAST_EDGE, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 0 through 15, inclusive.
Hints
Hint 1
Mark every edge with HTRANS at NONSEQ and HREADY at 1. Each mark is one address taken.
Hint 2
For each edge, read HREADY and HRESP together. HRESP at 1 with HREADY at 0 is the first cycle of an error.
Hint 3
The request that waits during the error is shown, cancelled, and then shown again.
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