S4.5.2 The Error That Never Came Back

MediumFix22 minIcarus Verilog · serverReview the topic

A failed peripheral access vanishes as soon as the bridge drops select. Repair the return path so the manager can see it finish.

Hardware context: ap_soc AHB-to-APB branch. Peripheral integration

This bridge schedules its two AHB ERROR cycles after the APB completion edge. The shipped response tail forgets the failure as soon as the peripheral is deselected.

Repair reply_tail. The samples continue across edges and show the outputs immediately after each edge. The return wires also matter before each edge.

Signals in the Timeline

SignalWidthRole
sample12input of each check
Full specification

Synchronous active-low reset clears the error history. In normal operation report hresp low. When psel is low return ready high.

While selected, return ready high only for a completing successful access. Completion requires select, enable and ready. Ignore pslverr outside completion.

A completed failed access keeps ready low. On the next two cycles drive (hreadyout,hresp) as (0,1) then (1,1). Ignore peripheral inputs throughout both cycles, then resume normal operation.

Examples

Example 1

Clear the Return Path
Input
reset_n=0, psel=0, penable=0, pready=0, pslverr=0
Output
hreadyout = 1, hresp = 0

An idle bus can accept an address.

Example 2

Reject the Access
Input
reset_n=1, psel=1, penable=1, pready=1, pslverr=1
Output
hreadyout = 0, hresp = 1

The first error cycle holds the manager.

Example 3

Remove the APB Response
Input
reset_n=1, psel=0, penable=0, pready=0, pslverr=0
Output
hreadyout = 1, hresp = 1

The final error cycle completes despite deselection.

Constraints and Contract

  • Preserve successful zero-wait and stretched transfers. Sample errors only on a clock edge ending a selected, enabled, ready access.

Hints

Hint 1

Find the last edge on which GPIO owns its response.

Hint 2

Sketch the two manager cycles that follow.

Hint 3

Try changing every peripheral input after the failed edge.

What the grader checks: APB-to-AHB response control only. The data and address paths are separate.

551 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

Clear the Return Path

Input
reset_n=0, psel=0, penable=0, pready=0, pslverr=0
Expected output
hreadyout = 1, hresp = 0

An idle bus can accept an address.

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

Icarus Verilog · server