S4.1.3 The Alias Nobody Planned

MediumDebug22 minIcarus Verilog · serverReview the topic

A service tool writes one register and fires a command at another offset. Locate the first false strobe and repair its decode.

Hardware context: ap_soc peripheral allocation. Firmware-compatible peripheral expansion

An ap_soc expansion fixture has a 64-byte service window. Exactly one byte address, offset 0x24, accepts the command write. A field report says a different offset can fire it.

Run the waveform. Identify the first bad cycle and signal, choose the cause, then repair the strobe.

Signals in the Timeline

SignalWidthRole
sample10input of each check
Full specification

window means the parent selected this service block. offset is a byte offset, even when the diagnostic probe sends an unaligned address.

Diagnose the Failing Run

The test below runs the buggy design. Read its log, then find where it first goes wrong in the waveform.

Log

Waveform

Click a signal at a cycle to select it. Or focus the waveform and use the arrow keys: Left and Right move one cycle, Up and Down one signal.

Step 1 · The first bad cycle and signal
Step 2 · The cause

Step 3 is optional: fix the code in the editor, then run the tests.

Examples

Example 1

Command Byte
Input
window=1, write=1, offset=6'h24
Output
commit = 1

The window owns this write.

Example 2

Previous Word
Input
window=1, write=1, offset=6'h20
Output
commit = 0

Moving four bytes changes the register.

Example 3

Outside the Window
Input
window=0, write=1, offset=6'h24
Output
commit = 0

Local offsets repeat behind different parents.

Constraints and Contract

  • Assert commit only for a selected write to the command byte. For every other binary input drive zero immediately.

Hints

Hint 1

Find a write that should be quiet.

Hint 2

Compare the two byte offsets in binary.

Hint 3

Keep the parent window in the decision.

What the grader checks: All 256 binary input combinations are exercised.

265 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

Command Byte

Input
window=1, write=1, offset=6'h24
Expected output
commit = 1

The window owns this write.

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

Icarus Verilog · server