S11.1.1 Twenty Questions About the Chip

MediumImplement22 minIcarus Verilog · serverReview the topic

Review a board handoff using addresses, source assignments and the behavior behind each number.

Hardware context: The mapped memories, devices and control paths of ap_soc v1.0. Audit the release address windows, register offsets, interrupt masks and clock settings.

Use the v1.0 reference tables in S11.1. A proposed board keeps the map and changes peripheral clock division.

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

Enter decimal integers. KiB means 1024 bytes. Use the four-pad teaching slice for pin questions.

Recorded release board observations.
copy=0000004b console=K interrupts=1 exceptions=0
checker: 1 writes, 0 reads, 0 wait edges, 0 rules broken, 0 notes
EntryYour decision
ROM_KIBHow many KiB answer at the reset vector?
SRAM_KIBHow many KiB can hold writable data?
STACK_DISTANCEHow many bytes below the initial stack top is the last aligned SRAM word?
MANAGERSHow many managers can reach the fast fabric?
DMA_PAGEHow many 4 KiB pages separate UART0 and DMA?
HOLEWhich page index above UART0 is unassigned before reserved expansion?
SERIAL_IRQWhich source number identifies UART0?
DMA_MASKWhich decimal mask selects only DMA pending?
WDG_IRQWhich source gives software a chance before watchdog reset?
SPARESHow many external inputs have no assignment?
EMPTYWhich ID can a claim return when nothing is pending?
PIN_CAUSEWhich mask isolates the sticky reset-pin cause?
DEBUG_CAUSEWhich mask isolates the debug reset cause?
PIN_SAMPLESHow many consecutive high synchronized pin samples qualify a pin reset?
MUX_BITSHow many bits configure four pad selectors?
GPIO_BITSHow many logical GPIO lines share the direction word?
POP_OFFSETWhich decimal UART offset consumes the oldest byte?
LAST_WRITEWhich decimal DMA offset starts a programmed copy?
ROM_WAITHow many released local edges does the boot availability slice count?
LEAF_PERIODAt a 10 ns root period, what is the divided period in ns?

Examples

Example 1

ROM KIB
Input
How many KiB answer at the reset vector?
Output
matches = 1

1024 words of four bytes occupy four KiB.

Example 2

SRAM KIB
Input
How many KiB can hold writable data?
Output
matches = 1

16384 words occupy 64 KiB.

Example 3

STACK DISTANCE
Input
How many bytes below the initial stack top is the last aligned SRAM word?
Output
matches = 1

The stack starts one byte beyond SRAM. The last word starts four bytes below that boundary.

Constraints and Contract

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

Hints

Hint 1

Use the map for addresses and the source map for interrupt numbers.

Hint 2

Distinguish bytes, words and KiB before doing arithmetic.

Hint 3

A source ID names a bit position. A register offset counts bytes.

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

20 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

ROM KIB

Input
How many KiB answer at the reset vector?
Expected output
matches = 1

1024 words of four bytes occupy four KiB.

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

Icarus Verilog · server