S10.10.1 Count the Domains and the Crossings

MediumImplement22 minIcarus Verilog · serverReview the topic

Read the clock owner at each end of a queue, then recount after a cluster changes its clock source.

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

This ap_soc scale drawing gives one letter to each guaranteed edge relationship. Different letters have no guaranteed relationship, including at equal MHz.

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

Inspect the worksheet clock map. The same channels appear below.

Directed channels in the exercise clock map
CPU [A] ---> Queue [B] ---> DMA [B] ---> MAC [C]
                ^                          |
                +-------- status ----------+
CPU [A] <--- Wake [D]

All five arrows carry independent channels. Count each arrow once. A gated copy that preserves edge timing keeps its parent letter.

Three extra optional one-way channels run from DMA to CPU, MAC to Wake, and Wake to CPU, in that order. They carry distinct messages.

EntryYour decision
BASE_LINKSDirected channels before adding any optional links.
BUS_LOCALChannels between Queue and DMA that stay in B.
ROOTSDistinct baseline clock letters.
ASYNCBaseline channels crossing between different letters.
SAME_RATECrossings if A and B have equal MHz but independent phase.
MERGEDCrossings if CPU moves to clock B instead.
MERGED_DOMAINSDistinct letters after CPU moves to B.
NO_WAKEBaseline crossings if the Wake block and its link are removed.
EXPANDEDBaseline crossings plus selected optional channels. Bits 0, 1 and 2 enable them in listed order.

Examples

Example 1

BASE LINKS
Input
Directed channels before adding any optional links.
Output
value = 5

Count each arrow including the status return.

Example 2

BUS LOCAL
Input
Channels between Queue and DMA that stay in B.
Output
value = 1

Queue and DMA sample the same clock.

Example 3

ROOTS
Input
Distinct baseline clock letters.
Output
value = 4

The active endpoints use A, B, C and D.

Constraints and Contract

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

Hints

Hint 1

Copy the clock letter to each end of each arrow.

Hint 2

Two messages can cross the same pair of domains independently.

Hint 3

Recheck every incident arrow after moving a block.

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

19 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

BASE LINKS

Input
Directed channels before adding any optional links.
Expected output
value = 5

Count each arrow including the status return.

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

Icarus Verilog · server