S4.1.1 Is This Map Legal

EasyImplement12 minIcarus Verilog · serverReview the topic

Review independent change requests against the frozen map before anyone wires a new select.

Hardware context: ap_soc peripheral allocation. Firmware-compatible peripheral expansion

Each request adds one device to v1.0. Start again from the original map for every row. Record 1 for legal and 0 for illegal.

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

Replace each unresolved value of 255 with your decision.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
Existing allocationAddress range (inclusive)
Bridge envelope0x10000000 through 0x1000ffff
Seven implemented APB pages0x10000000 through 0x10006fff
Reserved APB0x10008000 through 0x1000ffff
SRAM and its reserve0x80000000 through 0x8001ffff

Other proposed AHB ranges within the address space are free. Keep all existing allocations. The address space ends at 0xffffffff.

Require a positive power-of-two byte count and natural alignment. APB devices must fit inside the bridge. AHB devices must stay outside.

EntryYour decision
FREEAPB, base 0x10007000, size 4096 bytes
USEDAPB, base 0x10006000, size 4096 bytes
ABOVEAHB, base 0x80020000, size 65536 bytes
SKEWAPB, base 0x10007400, size 2048 bytes
CLAIMAPB, base 0x10008000, size 4096 bytes
CROSSAHB, base 0x10007000, size 4096 bytes
REMOTEAPB, base 0x20000000, size 4096 bytes
LENGTHAHB, base 0x20001000, size 3072 bytes
TOPAHB, base 0xfffff000, size 4096 bytes
WRAPAHB, base 0xfffff000, size 8192 bytes
HALFAPB, base 0x10007800, size 2048 bytes
EMPTYAPB, base 0x10007000, size 0 bytes
PASTAHB, base 0x100000000, size 4096 bytes
LAST_REQUESTAdd an APB device of 2048 bytes at 0x10007000 + QUARTER × 1024. Is this legal?

Examples

Example 1

FREE
Input
APB, base 0x10007000, size 4096 bytes
Output
decision = legal (1)

One page fits exactly between DMA and the reserve.

Example 2

USED
Input
APB, base 0x10006000, size 4096 bytes
Output
decision = illegal (0)

DMA owns this page.

Example 3

ABOVE
Input
AHB, base 0x80020000, size 65536 bytes
Output
decision = legal (1)

This base follows the SRAM reserve.

Constraints and Contract

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

Hints

Hint 1

Count bytes from the first address through the final included byte.

Hint 2

Treat the reserve as occupied.

Hint 3

Use the bridge envelope to decide which bus can reach the interval.

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

17 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 3 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

FREE

Input
APB, base 0x10007000, size 4096 bytes
Expected output
decision = legal (1)

One page fits exactly between DMA and the reserve.

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

Icarus Verilog · server