S10.10.2 Which Clock May Stop

MediumImplement22 minIcarus Verilog · serverReview the topic

Build a stop mask that preserves packet reception, the wake detector and every outstanding bus response.

Hardware context: Cluster and I/O clock tree. Clock-domain and stop-policy review

Set the bit for every clock that may stop. A stopped leaf can restart from the always-on supervisor.

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
Mask bit valueClockMust run while
1Cluster leafWork remains or a bus response is owed
2MAC leafA frame remains or a bus response is owed
4PHY referenceLink monitoring is armed or a frame remains
8Shared PLLEither cluster or MAC leaf must run
16Wake supervisorAlways

The PHY reference has its own oscillator. Only cluster and MAC depend on the shared PLL. Each ticket starts afresh. For fixed entries assume exactly the conditions named.

EntryYour decision
WAKE_BITValue of the wake supervisor bit.
LEAVESCombined values of cluster and MAC bits.
REF_BITValue of the independent reference bit.
QUIETStop mask when completely idle.
MONITORStop mask with only link monitoring armed.
FRAMEStop mask with only a frame remaining.
OWEDStop mask with only a response owed.
WORKStop mask with only cluster work remaining.
GRANT_MASKBits 0 to 3 of STATE mean work, frame, response owed and monitor respectively. Return the permitted stop mask.

Examples

Example 1

WAKE BIT
Input
Value of the wake supervisor bit.
Output
value = 16

The mask assigns 16 to the wake supervisor.

Example 2

LEAVES
Input
Combined values of cluster and MAC bits.
Output
value = 3

1 plus 2 selects both leaves.

Example 3

REF BIT
Input
Value of the independent reference bit.
Output
value = 4

The oscillator has its own bit.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For GRANT_MASK, enter a constant expression using STATE. Only this entry changes with the parameter. The supported integer range is 0 through 15, inclusive.

Hints

Hint 1

Start with work still owed, including a response in flight.

Hint 2

Trace every required leaf back to its source.

Hint 3

Set bits for clocks that may stop.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

27 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

WAKE BIT

Input
Value of the wake supervisor bit.
Expected output
value = 16

The mask assigns 16 to the wake supervisor.

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

Icarus Verilog · server