S8.3.2 The Debugger That Read a Locked Chip

MediumBreak It18 minIcarus Verilog · server8 hidden designsReview the topic

A log says the chip was locked during a memory read. Test the monitor that decides whether the record needs investigation.

Hardware context: ap_soc debug bus manager. Bring-up before firmware runs

A passive tap records reads of a protected SRAM window. The address phase saves the requesting manager and its permissions. During the return phase the address wires may already describe another manager. Can your monitor tell the two apart?

Signals in the Timeline

SignalWidthRole
hidden_bug8input of each check
Full specification

Call observe(issue_locked, issue_debug, returned, live_locked, live_debug) with bits from one archived record. issue_locked and issue_debug describe the accepted address. returned means its read completed successfully on this edge.

live_locked and live_debug are sampled beside the later response. They may change independently while a read waits. The exercise judges permission at issue. Each faulty monitor omits a qualifier or uses live fields in place of, or alongside, saved fields.

A locked debug read that returns successfully must raise an alarm. Keep quiet on ordinary core reads, authorized service reads and incomplete reads.

Reference audit monitor
function automatic bit alarm(input bit issue_locked, issue_debug, returned,
                             input bit live_locked, live_debug);
  return issue_locked && issue_debug && returned;
endfunction

Examples

Run samples checks your input rules and any explicitly public sample faults. Submit runs every hidden faulty copy on the server. The worked bug examples below describe Submit results.

Example 1

Archive Budget
Input
Six binary observations
Output
inputs_legal = yes

Six calls fit the eight-record limit.

Example 2

Waiting for Data
Input
observe(1,1,0,1,1)
Output
caught = yes

This read has yet to return. The first public monitor raises an alarm too early.

Example 3

Core Reads During Lock
Input
observe(1,0,1,1,0)
Output
caught = yes

The saved requester is the core. The second public monitor misreports its completion.

Constraints and Contract

  • Write stimulus() with at most eight observe calls. Distinguish each faulty monitor from the reference using archived records.

Hints

Hint 1

Consider both saved owners.

Hint 2

Include waiting and returning reads.

Hint 3

Let the live fields disagree with one saved field at a time.

What the grader checks: The fixture consumes passive archive observations and compares eight audit monitors. The target itself is outside the fixture.

9 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain public samples only. 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

Archive Budget

Input
Six binary observations
Expected output
inputs_legal = yes

Six calls fit the eight-record limit.

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

Icarus Verilog · server