S10.9.1 Pick the Operating Point

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeRail (V)Clock (MHz)Active power (mW)Entry time (µs)Entry energy (nJ)
10.750500
20.8100828
31.020020318

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.

EntryYour decision
SLOW_TIMEActive time at point 1 in µs.
MID_WORKActive energy at point 2 in nJ.
FAST_ENTRYEntry energy alone at point 3 in nJ.
FAST_DONEEarliest completion at point 3 in µs.
MID_TOTALTotal energy at point 2 in nJ.
FAST_TOTALTotal energy at point 3 in nJ.
RELAXEDBest code with a 25 µs deadline.
PARENTMay the parent supply turn off after this job? Use 1 for yes and 0 for no.
CHOICEBest 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

Report a problem with this page

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

SLOW TIME

Input
Active time at point 1 in µs.
Expected output
value = 20

1000 cycles divided by 50 MHz takes 20 µs.

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

Icarus Verilog · server