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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Mask bit value | Clock | Must run while |
|---|---|---|
| 1 | Cluster leaf | Work remains or a bus response is owed |
| 2 | MAC leaf | A frame remains or a bus response is owed |
| 4 | PHY reference | Link monitoring is armed or a frame remains |
| 8 | Shared PLL | Either cluster or MAC leaf must run |
| 16 | Wake supervisor | Always |
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.
| Entry | Your decision |
|---|---|
| WAKE_BIT | Value of the wake supervisor bit. |
| LEAVES | Combined values of cluster and MAC bits. |
| REF_BIT | Value of the independent reference bit. |
| QUIET | Stop mask when completely idle. |
| MONITOR | Stop mask with only link monitoring armed. |
| FRAME | Stop mask with only a frame remaining. |
| OWED | Stop mask with only a response owed. |
| WORK | Stop mask with only cluster work remaining. |
| GRANT_MASK | Bits 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