Assign preview and radio jobs to engines while meeting the deadline on the ticket.
Hardware context: Camera preview pipeline. Multimedia subsystem planning
Use only the advertised implementations. Times include transfers and wake-up. Choose the fastest eligible implementation that meets the deadline. Return zero if none can finish.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 255 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Implementation and elapsed time |
|---|---|
| 1 | CPU: branch-heavy control, 3 ms |
| 2 | GPU: overlay, 1 ms awake or 6 ms cold |
| 3 | NPU: tensor inference, 2 ms |
| 4 | DSP: sample filtering, 1 ms |
| 5 | Modem: radio baseband, 2 ms |
| 6 | ISP: raw correction, 1 ms |
| 7 | CPU fallback: overlay, 4 ms |
Each ticket starts fresh. Add any queue or copy delay stated on that ticket. The GPU starts awake unless marked cold. Finishing exactly at the deadline counts.
| Entry | Your decision |
|---|---|
| CONTROL | Branch-heavy control due in 4 ms. |
| OVERLAY | Overlay due in 3 ms with the GPU awake. |
| INFER | Tensor inference due in 5 ms. |
| FILTER | Sample filtering due in 1 ms. |
| RADIO | Radio baseband due in 2 ms. |
| CAPTURE | Raw correction due in 2 ms. |
| COLD | Overlay due in 4 ms with the GPU cold. |
| TOO_LATE | Overlay due in 3 ms with the GPU cold. |
| QUEUED | Awake GPU overlay waits another 5 ms in its queue. CPU is free. Deadline is 5 ms. |
| COPY | Cold GPU overlay is local. CPU fallback needs an extra 3 ms copy. Deadline is 6 ms. |
| SHORT | Inference due in 1 ms. |
| DRAW | Overlay due in 4 ms. GPU time is 1 + WAKE_MS. Prefer GPU on a tie. |
Examples
Example 1
CONTROL- Input
Branch-heavy control due in 4 ms.
- Output
matches = 1
CPU control takes 3 ms. (choice = 1)
Example 2
OVERLAY- Input
Overlay due in 3 ms with the GPU awake.
- Output
matches = 1
The awake GPU can finish in 1 ms. (choice = 2)
Example 3
INFER- Input
Tensor inference due in 5 ms.
- Output
matches = 1
The NPU supports the operation and finishes in 2 ms. (choice = 3)
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For DRAW, enter a constant expression using WAKE_MS. Only this entry changes with the parameter. The supported integer range is 0 through 6, inclusive.
Hints
Hint 1
Cross out engines that lack this operation.
Hint 2
Compare end-to-end time in the stated power state.
Hint 3
The fastest remaining choice must still finish on time.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
16 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