S10.1.2 Scale the Numbers

MediumImplement22 minIcarus Verilog · serverReview the topic

Size an interrupt identifier and reserve address space as a tile is replicated.

Hardware context: GPIO read and subsystem inventory. Bring-up of a multi-camera imaging subsystem

These invented tiles each contain two cores, three clock domains, one switchable power domain and five IP blocks. All tiles are independent. A separate always-on hub adds one clock domain, one power domain and one IP block.

This worksheet uses named constants. The first three entries show how to record your decisions.

Signals in the Timeline

SignalWidthRole
assigned_value8stimulus, the same for every design
Full specification

Each tile contributes four interrupt sources and occupies one aligned 4 KiB page. The pages are contiguous. The hub has no interrupt and no page in this allocation. IDs start at zero with no reserved codes. Use the minimum whole number of bits. Assume three tiles except where stated.

EntryYour decision
CORESTotal cores.
CLOCKSTotal clock domains.
POWERTotal power domains.
BLOCKSTotal IP blocks.
SOURCESIndependent interrupt sources.
OFFSETByte offset bits within a page.
SPANTotal page space in KiB.
SPAN_BITSMinimum bits for a byte index across all tile pages.
ID_BITSSize a source ID for TILES identical tiles.

Examples

Example 1

CORES
Input
Total cores.
Output
matches = 1

Three pairs give six cores.

Example 2

CLOCKS
Input
Total clock domains.
Output
matches = 1

Three groups of three plus the hub give ten.

Example 3

POWER
Input
Total power domains.
Output
matches = 1

Three switched domains share one always-on hub.

Constraints and Contract

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

Hints

Hint 1

Replicate only the tile inventory.

Hint 2

Count bytes for an address and sources for an interrupt ID.

Hint 3

Compare the largest ID with the largest encodable value.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed. The waveform shows the assigned TILES on its own row.

10 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

CORES

Input
Total cores.
Expected output
matches = 1

Three pairs give six cores.

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

Icarus Verilog · server