S8.5.2 The Flop the Tester Could Not Reset

MediumDebug25 minIcarus Verilog · serverReview the topic

An event flop keeps an old interrupt during scan. Diagnose the first divergent sample and repair the leaf.

Hardware context: ap_soc scan clock and reset leaves. Manufacturing test integration

The functional clock captures a one in pending. The tester needs to clear it with the leaf clock parked. Compare the operating modes in the waveform.

Signals in the Timeline

SignalWidthRole
sample12input of each check
Full specification

All three resets are active low. cold_n can clear the flop in either mode. warm_n can clear it only in functional mode. tester_n can clear it only in scan mode.

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

Save an Event
Input
scan=0, cold_n=1, warm_n=1, tester_n=1, shift=0, serial=0, event=1, rising edge
Output
pending = 1

A rising clock captures an asserted event.

Example 2

Warm Reset
Input
scan=0, cold_n=1, warm_n=0, tester_n=1, shift=0, serial=0, event=1, clock parked
Output
pending = 0

The functional reset clears a pending event with the clock low.

Example 3

Second Event
Input
scan=0, cold_n=1, warm_n=1, tester_n=1, shift=0, serial=0, event=1, rising edge
Output
pending = 1

A new rising edge captures the event after release.

Constraints and Contract

  • A selected reset clears pending asynchronously and holds it clear. Release alone leaves state unchanged. On each rising edge, capture serial_in during scan shifting and event_in otherwise.

Hints

Hint 1

Start at the last known one.

Hint 2

Identify who owns reset at that instant.

Hint 3

Compare a parked clock with an active edge.

What the grader checks: Known-state clocked and parked observations cover every binary control tuple. Reset recovery timing is outside this model.

1034 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

Save an Event

Input
scan=0, cold_n=1, warm_n=1, tester_n=1, shift=0, serial=0, event=1, rising edge
Expected output
pending = 1

A rising clock captures an asserted event.

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

Icarus Verilog · server