Meet a deadline at minimum task energy, including the time and energy spent raising the rail.
Hardware context: Cluster rail controller. Operating-point selection
An ap_soc scale exercise starts on a low rail. Each job starts fresh. A sibling holds the parent supply on.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Rail (V) | Clock (MHz) | Active power (mW) | Entry time (µs) | Entry energy (nJ) |
|---|---|---|---|---|---|
| 1 | 0.7 | 50 | 5 | 0 | 0 |
| 2 | 0.8 | 100 | 8 | 2 | 8 |
| 3 | 1.0 | 200 | 20 | 3 | 18 |
Each job needs 1000 cycles. Active time in µs equals cycles divided by MHz. Include entry once. Deadlines include equality.
Choose the feasible point with least total energy. Use code 0 when none fits. The quoted active power already includes leakage.
| Entry | Your decision |
|---|---|
| SLOW_TIME | Active time at point 1 in µs. |
| MID_WORK | Active energy at point 2 in nJ. |
| FAST_ENTRY | Entry energy alone at point 3 in nJ. |
| FAST_DONE | Earliest completion at point 3 in µs. |
| MID_TOTAL | Total energy at point 2 in nJ. |
| FAST_TOTAL | Total energy at point 3 in nJ. |
| RELAXED | Best code with a 25 µs deadline. |
| PARENT | May the parent supply turn off after this job? Use 1 for yes and 0 for no. |
| CHOICE | Best code for DEADLINE µs. |
Examples
Example 1
SLOW TIME- Input
Active time at point 1 in µs.
- Output
value = 20
1000 cycles divided by 50 MHz takes 20 µs.
Example 2
MID WORK- Input
Active energy at point 2 in nJ.
- Output
value = 80
8 mW for 10 µs costs 80 nJ.
Example 3
FAST ENTRY- Input
Entry energy alone at point 3 in nJ.
- Output
value = 18
The regulator and clock transition costs 18 nJ.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For CHOICE, enter a constant expression using DEADLINE. Only this entry changes with the parameter. The supported integer range is 0 through 25, inclusive.
Hints
Hint 1
Convert cycles to microseconds for each point.
Hint 2
Keep transition time and energy in separate columns.
Hint 3
Compare energies only among jobs that finish in time.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
37 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