S10.18.2 Map Each Block of Case Two to Its Lesson

EasyImplement12 minIcarus Verilog · serverReview the topic

Map each block of case 2 of lesson S10.18, a RISC-V platform, to the lesson that explains it, and compare its map with ap_soc.

Hardware context: Two public chips read block by block (an FPGA SoC and a RISC-V platform) beside ap_soc and ap_phone. Reading vendor reference manuals before integration or verification

Case 2 is the SiFive FU740-C000, as lesson S10.18 summarises it. The facts of the chip come from the table of lesson S10.18. That table is given from the public manual, which is not in our reference library, and is labelled "not checked". Answer from the table as given. The ap_soc map is map.json, and it is checked.

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
Block of case 2What the table of S10.18 says
Application coresFour 64-bit RISC-V cores
Monitor coreOne smaller RISC-V core beside them: five harts in all
Shared cacheOne second-level cache for all five
DRAM controllerDDR4; DRAM from 8000_0000
Fast portsPCIe and Gigabit Ethernet
PLIC and CLINTAt 0C00_0000 and 0200_0000
LessonCode
S10.2 Cache hierarchy1
S10.4 Memory subsystem2
S10.5 High-speed I/O3
S6.3 The PLIC4
S6.10 The machine timer5
S10.13 The choice of a core6
S4.1 The memory map7
Addressap_soc (map.json)
0000_0000Boot ROM
0200_0000CLINT
0C00_0000PLIC
1000_0000Peripherals (UART0)
8000_0000On-chip SRAM

Enter a code, a count or a hex digit as a number.

EntryYour decision
LESSON_L2The code of the lesson that explains the shared cache.
LESSON_DDRThe code of the lesson that explains the DRAM controller.
LESSON_PCIEThe code of the lesson that explains the fast ports.
LESSON_PLICThe code of the lesson that explains the PLIC.
LESSON_CLINTThe code of the lesson that explains the CLINT.
LESSON_MONITORThe code of the lesson that weighs a small core beside large ones.
LESSON_MAPThe code of the lesson that explains why a block sits at an address at all.
HARTSHow many harts does case 2 have?
SAMEOf the five ap_soc addresses in the table, how many name the same kind of block on case 2?
DRAM_TOPThe top hex digit of the first DRAM address of case 2.
MSIP_OFFSETIn ap_soc, the software-interrupt word of hart H sits at the base of the CLINT plus 4 times H. Case 2 uses the same layout for its five harts. Give the offset in bytes for hart H.

Examples

Example 1

LESSON L2
Input
The code of the lesson that explains the shared cache.
Output
matches = 1

A cache that several cores share is the last level of S10.2.

Example 2

LESSON DDR
Input
The code of the lesson that explains the DRAM controller.
Output
matches = 1

The controller decides when; the PHY decides where in the bit.

Example 3

LESSON PCIE
Input
The code of the lesson that explains the fast ports.
Output
matches = 1

A PHY, a controller and DMA.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For MSIP_OFFSET, enter a constant expression using H. Only this entry changes with the parameter. The supported integer range is 0 through 4, inclusive.
  • Replace each unfinished 255 with your decision.

Hints

Hint 1

For each block, ask which idea it uses, then find the lesson in the table.

Hint 2

Look each ap_soc address up in the case table; a block not named there is not a match.

Hint 3

Every core that runs code is a hart, monitor core included.

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

11 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

LESSON L2

Input
The code of the lesson that explains the shared cache.
Expected output
matches = 1

A cache that several cores share is the last level of S10.2.

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

Icarus Verilog · server