S10.6.2 Place the Workload

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeImplementation and elapsed time
1CPU: branch-heavy control, 3 ms
2GPU: overlay, 1 ms awake or 6 ms cold
3NPU: tensor inference, 2 ms
4DSP: sample filtering, 1 ms
5Modem: radio baseband, 2 ms
6ISP: raw correction, 1 ms
7CPU 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.

EntryYour decision
CONTROLBranch-heavy control due in 4 ms.
OVERLAYOverlay due in 3 ms with the GPU awake.
INFERTensor inference due in 5 ms.
FILTERSample filtering due in 1 ms.
RADIORadio baseband due in 2 ms.
CAPTURERaw correction due in 2 ms.
COLDOverlay due in 4 ms with the GPU cold.
TOO_LATEOverlay due in 3 ms with the GPU cold.
QUEUEDAwake GPU overlay waits another 5 ms in its queue. CPU is free. Deadline is 5 ms.
COPYCold GPU overlay is local. CPU fallback needs an extra 3 ms copy. Deadline is 6 ms.
SHORTInference due in 1 ms.
DRAWOverlay 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

CONTROL

Input
Branch-heavy control due in 4 ms.
Expected output
matches = 1

CPU control takes 3 ms. (choice = 1)

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

Icarus Verilog · server