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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Block of case 2 | What the table of S10.18 says |
|---|---|
| Application cores | Four 64-bit RISC-V cores |
| Monitor core | One smaller RISC-V core beside them: five harts in all |
| Shared cache | One second-level cache for all five |
| DRAM controller | DDR4; DRAM from 8000_0000 |
| Fast ports | PCIe and Gigabit Ethernet |
| PLIC and CLINT | At 0C00_0000 and 0200_0000 |
| Lesson | Code |
|---|---|
| S10.2 Cache hierarchy | 1 |
| S10.4 Memory subsystem | 2 |
| S10.5 High-speed I/O | 3 |
| S6.3 The PLIC | 4 |
| S6.10 The machine timer | 5 |
| S10.13 The choice of a core | 6 |
| S4.1 The memory map | 7 |
| Address | ap_soc (map.json) |
|---|---|
| 0000_0000 | Boot ROM |
| 0200_0000 | CLINT |
| 0C00_0000 | PLIC |
| 1000_0000 | Peripherals (UART0) |
| 8000_0000 | On-chip SRAM |
Enter a code, a count or a hex digit as a number.
| Entry | Your decision |
|---|---|
| LESSON_L2 | The code of the lesson that explains the shared cache. |
| LESSON_DDR | The code of the lesson that explains the DRAM controller. |
| LESSON_PCIE | The code of the lesson that explains the fast ports. |
| LESSON_PLIC | The code of the lesson that explains the PLIC. |
| LESSON_CLINT | The code of the lesson that explains the CLINT. |
| LESSON_MONITOR | The code of the lesson that weighs a small core beside large ones. |
| LESSON_MAP | The code of the lesson that explains why a block sits at an address at all. |
| HARTS | How many harts does case 2 have? |
| SAME | Of the five ap_soc addresses in the table, how many name the same kind of block on case 2? |
| DRAM_TOP | The top hex digit of the first DRAM address of case 2. |
| MSIP_OFFSET | In 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