A boot trace ends with a pending switch to a silent source. Diagnose the missing decision and repair the always-on probe.
Hardware context: ap_soc peripheral clock switch. Safe operating mode changes
The outgoing source is still usable. Before releasing it, the controller tests whether the destination is running. Diagnose the failed preflight, then repair it.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
dut_busy | 1 | stimulus, the same for every design |
dut_launch | 1 | stimulus, the same for every design |
dut_fault | 1 | stimulus, the same for every design |
Full specification
All inputs are synchronous to aon_clk. Sample active-low reset first. Clear busy, launch, fault and the elapsed count on reset.
An idle start sets busy. Ignore activity on this starting edge. On the next four rising edges while busy, fresh_edge means a newly observed destination edge.
Launch on the first such observation. If the fourth sample is still quiet, raise fault. Either result clears busy and lasts one cycle. Ignore start while busy.
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 3 is optional: fix the code in the editor, then run the tests.
Examples
Example 1
Reset on the Live Clock- Input
Reset on the live clock
- Output
busy = 0, launch = 0, fault = 0
The synchronous reset clears all three flags.
Example 2
Request the Alternate Source- Input
Request the alternate source
- Output
busy = 1, launch = 0, fault = 0
The live controller opens the observation window.
Example 3
First Interval Without an Edge- Input
First interval without an edge
- Output
busy = 1, launch = 0, fault = 0
Three more opportunities remain.
Constraints and Contract
- Run the deadline from aon_clk even when the target stops. launch authorizes a separate interlocked mux. A fault leaves the old selection intact.
Hints
Hint 1
Locate the clock that can still measure an interval.
Hint 2
Count observation edges after acceptance.
Hint 3
Compare an edge on the last sample with silence there.
What the grader checks: Covers arrivals at each sample, silence, retry, reset, concurrent starts and a last-sample arrival. Later source loss needs a separate recovery policy.
53 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