V1.5.1 Cut the Chip into Subsystems

EasyImplement12 minIcarus Verilog · serverReview the topic

Place each part and each test of ap_soc in the subsystem whose input and output you would use to check it.

Hardware context: ap_soc cut into subsystems, each with an input and an output. Grouping a chip into subsystems for the plan.

A subsystem is a group of blocks with a clear place to put stimulus in. It also has a clear place to check the result. Enter the subsystem code.

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

Replace each unresolved value of 255 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeSubsystem of ap_soc
1Console: pad, UART0, interrupt, core
2Pins: GPIO and the pin mux
3Memory and boot: ROM, SRAM, boot strap
4Time and interrupts: timer, interrupt controller, core timer
5Data mover: DMA and memory
6Clock, reset and power
7Debug: test access port and debug module
EntryYour decision
RXDATAA byte arrives at the receive pad and must reach a variable in the firmware.
PINMUXPINMUX selects serial on pad 0.
STRAPThe boot strap picks the reset vector.
MTIMECMPThe core timer compare raises the machine timer interrupt.
COPYSix bytes are copied from one SRAM buffer to another without the core.
WAKEA GPIO edge wakes the switched-off peripheral domain.
IDCODEThe debugger reads the chip's identity through four JTAG pads.
TX_PADA string written by firmware appears on the transmit pad.
WATCHDOGThe watchdog resets the chip when firmware stops kicking it.
DMA_IRQThe DMA done interrupt reaches the core after a copy.
CHECK_ATWhere do you check the output? POINT 0: an echoed byte. POINT 1: the first instruction after reset. POINT 2: a woken domain. Enter the subsystem whose output you watch.

Examples

Example 1

RXDATA
Input
A byte arrives at the receive pad and must reach a variable in the firmware.
Output
matches = 1

Pad in, UART0, interrupt, core: the console.

Example 2

PINMUX
Input
PINMUX selects serial on pad 0.
Output
matches = 1

The pin mux belongs with the pins.

Example 3

STRAP
Input
The boot strap picks the reset vector.
Output
matches = 1

Boot is memory and boot.

Constraints and Contract

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

Hints

Hint 1

Where does the stimulus enter: a pad, a strap, a register write?

Hint 2

Where can a checker see the result?

Hint 3

The blocks between input and output form the subsystem.

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

15 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

RXDATA

Input
A byte arrives at the receive pad and must reach a variable in the firmware.
Expected output
matches = 1

Pad in, UART0, interrupt, core: the console.

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

Icarus Verilog · server