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
| Signal | Width | Role |
|---|---|---|
assigned_value | 8 | stimulus, 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.
| Entry | Your decision |
|---|---|
| CORES | Total cores. |
| CLOCKS | Total clock domains. |
| POWER | Total power domains. |
| BLOCKS | Total IP blocks. |
| SOURCES | Independent interrupt sources. |
| OFFSET | Byte offset bits within a page. |
| SPAN | Total page space in KiB. |
| SPAN_BITS | Minimum bits for a byte index across all tile pages. |
| ID_BITS | Size 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