S8.1.2 Order the Debug Chain

EasyImplement12 minIcarus Verilog · serverReview the topic

Reconstruct a halt request and its reply from observations at four boundaries.

Hardware context: ap_soc debug boundary. Finding the last completed instruction during firmware bring-up

A laptop talks to an ap_soc debug fixture. Identify the owner of each event with its station number.

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

Use 1 for host software, 2 for transport, 3 for the debug module and 4 for core support. Requests move inward in that order. Replies travel outward.

EntryYour decision
CLICKWho translates your click into a command?
UNPACKWho turns serial input into an internal register request?
SELECTWho chooses the addressed hart?
STOPWho knows when the current instruction finishes?
SAVEWho supplies the exact next PC?
STATUSWho exposes the halt acknowledgement to transport?
SERIALWho shifts the reply toward the cable?
SYMBOLWho translates the saved PC into a source line?
RELEASEWho turns the received resume command into a hart request?
COMPAREAn address matches before its instruction executes. Which station has the local trigger?
EDITWho accepts a register command and selects x5 on the hart interface?
SCRATCHWho originates a debug system-bus write to scratch SRAM in this design?
ENTRYWho preserves the return point on debug entry?
STEPWho observes the instruction boundary that ends a successful step?
RETURN_OWNERStart at core support. Which station holds the reply after HOPS outward handoffs?

Examples

Example 1

CLICK
Input
Who translates your click into a command?
Output
answer = 1

The host interprets the user action.

Example 2

UNPACK
Input
Who turns serial input into an internal register request?
Output
answer = 2

The transport unpacks the scan.

Example 3

SELECT
Input
Who chooses the addressed hart?
Output
answer = 3

The debug module owns hart selection.

Constraints and Contract

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

Hints

Hint 1

Find where the observation first exists.

Hint 2

Follow the request toward the hart.

Hint 3

Trace the saved information back to its reader.

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

21 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

CLICK

Input
Who translates your click into a command?
Expected output
answer = 1

The host interprets the user action.

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

Icarus Verilog · server