S4.2.2 Answer the Unmapped Access

MediumImplement22 minIcarus Verilog · serverReview the topic

Complete a missed transfer, then accept the next address on the same edge that finishes the error.

Hardware context: ap_soc address and response fabric. MCU bus integration and debug

Implement a response sequencer behind a pipelined decoder. accepted is the address acceptance event supplied by the fabric. miss describes that address. transfer is the two-bit AHB transfer type.

Sample inputs on rising edges. A synchronous active-low reset returns ready=1 and error=0. IDLE (00) and BUSY (01) generate no error. NONSEQ (10) and SEQ (11) need a response on an accepted miss.

Signals in the Timeline

SignalWidthRole
sample10input of each check
Full specification

In the cycle after acceptance, assert error with ready low. In the next cycle keep error high and raise ready. Ignore incoming qualifiers during the first error cycle, even if the diagnostic input accepted is forced high.

At the edge ending the final cycle, process a new acceptance as usual. With no new active miss return to ready high and error low. Reset takes priority in every phase.

A diagnostic log also needs the address that failed. Drive failed_addr with the accepted address throughout both error cycles. Drive zero during OKAY. The address log is a local diagnostic.

Bus timing follows Arm AMBA AHB Protocol Specification IHI 0033 issue C, sections 4.2.1 and 5.1.

Examples

Example 1

Reset Edge
Input
reset_n=0, accepted=0, miss=0, transfer=0, address=32'h00000000
Output
failed_addr = 0x0, ready = 1, error = 0

The responder starts available.

Example 2

Accepted Read Miss
Input
reset_n=1, accepted=1, miss=1, transfer=2, address=32'h10101004
Output
failed_addr = 0x10101004, ready = 0, error = 1

The first data cycle signals the error and holds completion.

Example 3

Next Edge
Input
reset_n=1, accepted=0, miss=0, transfer=0, address=32'h10001004
Output
failed_addr = 0x10101004, ready = 1, error = 1

The saved response completes despite changed address inputs.

Constraints and Contract

  • Implement module miss_response. Outputs depend on the saved response phase. No extra OKAY wait cycles in this exercise.

Hints

Hint 1

Name the two response cycles.

Hint 2

Identify the edge that can accept a successor.

Hint 3

Reset must also cancel a partly completed error.

What the grader checks: All binary control combinations are sampled from each phase. The failed address is tested one bit at a time. Reset and adjacent transfers are included.

390 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 3 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

Reset Edge

Input
reset_n=0, accepted=0, miss=0, transfer=0, address=32'h00000000
Expected output
failed_addr = 0x0, ready = 1, error = 0

The responder starts available.

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

Icarus Verilog · server