Follow seven requests through a tree of power domains by hand: which domains come up, when a request is refused, and how long each wake takes.
Hardware context: Power domain tree of ap_phone: system domain, cluster and core domains. Power gating and power sequencing of a core cluster
This is the tree of lesson S10.16 with slower switches. The system domain is on all the time. The cluster is its child, and core 0 and core 1 are children of the cluster. At the start the cluster and both cores are off, and the time is 0.
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
| Step of one domain | Ticks |
|---|---|
| Up: close the switch of the cluster and wait for its report | 5 |
| Up: close the switch of a core and wait for its report | 3 |
| Up: reset | 1 |
| Up: open the clamps | 1 |
| Down: close the clamps | 1 |
| Down: open the switch | 1 |
| Event | Request |
|---|---|
| 1 | Wake core 1 |
| 2 | Switch the cluster off |
| 3 | Wake core 0 |
| 4 | Switch core 1 off |
| 5 | Switch core 0 off |
| 6 | Switch the cluster off |
| 7 | Wake core 0 |
Each request starts when the one before it has finished. A request that is refused takes no time. A domain comes up only after its parent is on, and a parent goes off only when no child is on.
Enter a time in ticks, or a count.
| Entry | Your decision |
|---|---|
| CLUSTER_ON | The time at which the clamps of the cluster are open, in event 1. |
| WAKE_1 | The wake time of core 1 in event 1. |
| CHILDREN_2 | The number of children of the cluster that are on when event 2 arrives. |
| WAKE_0 | The wake time of core 0 in event 3. |
| CORE1_OFF | The time at which the switch of core 1 is open, in event 4. |
| CLUSTER_OFF | The time at which the switch of the cluster is open, in event 6. |
| WAKE_0_AGAIN | The wake time of core 0 in event 7. |
| END | The time at which core 0 runs after event 7. |
| REFUSED | How many of the seven requests are refused? |
| DOMAINS_UP_7 | How many domains come up in event 7? |
| COLD_WAKE | The switch of the cluster reports a good supply after SWITCH ticks. Everything else is as in the tables. Give the wake time of a core when the cluster is off. |
Examples
Example 1
CLUSTER ON- Input
The time at which the clamps of the cluster are open, in event 1.
- Output
matches = 1
The switch takes 5 ticks, the reset 1 and the clamps 1: the time is 7.
Example 2
WAKE 1- Input
The wake time of core 1 in event 1.
- Output
matches = 1
The cluster needs 7 ticks. The core then needs 3, 1 and 1.
Example 3
CHILDREN 2- Input
The number of children of the cluster that are on when event 2 arrives.
- Output
matches = 1
Core 1 is on, so the request of event 2 is refused.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For COLD_WAKE, enter a constant expression using SWITCH. Only this entry changes with the parameter. The supported integer range is 1 through 8, inclusive.
- Replace each unfinished 255 with your decision.
Hints
Hint 1
Start with the system domain alone. Update the list after each event.
Hint 2
For a wake, bring up every domain on the way that is off, the parent first.
Hint 3
A domain with a child that is on refuses, and no time passes.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
11 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 1 problem on this path