S10.16.1 Follow a Domain Tree by Hand

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
Step of one domainTicks
Up: close the switch of the cluster and wait for its report5
Up: close the switch of a core and wait for its report3
Up: reset1
Up: open the clamps1
Down: close the clamps1
Down: open the switch1
EventRequest
1Wake core 1
2Switch the cluster off
3Wake core 0
4Switch core 1 off
5Switch core 0 off
6Switch the cluster off
7Wake 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.

EntryYour decision
CLUSTER_ONThe time at which the clamps of the cluster are open, in event 1.
WAKE_1The wake time of core 1 in event 1.
CHILDREN_2The number of children of the cluster that are on when event 2 arrives.
WAKE_0The wake time of core 0 in event 3.
CORE1_OFFThe time at which the switch of core 1 is open, in event 4.
CLUSTER_OFFThe time at which the switch of the cluster is open, in event 6.
WAKE_0_AGAINThe wake time of core 0 in event 7.
ENDThe time at which core 0 runs after event 7.
REFUSEDHow many of the seven requests are refused?
DOMAINS_UP_7How many domains come up in event 7?
COLD_WAKEThe 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

Report a problem with this page

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

CLUSTER ON

Input
The time at which the clamps of the cluster are open, in event 1.
Expected output
matches = 1

The switch takes 5 ticks, the reset 1 and the clamps 1: the time is 7.

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

Icarus Verilog · server