RTL Studio Open IDE

0.1 · RV SYS CLASS

SoC platform tour

Tour the SoC memory map constants and RV32I opcodes, verifying the DUT routes them correctly via the testbench.

Video coming soon. This lesson page stays at the same URL when the lecture publishes.

What you practice

SoC platform tour (0.1). Tour the SoC memory map constants and RV32I opcodes, verifying the DUT routes them correctly via the testbench. It is in SoC map & mini_soc tour — Part 0 · Platform Recap of the RISC-V on SoC & System Masterclass.

The core and the mini-SoC simulate as one workspace in the IDE. Follow MMIO, interrupts, and the program on the Verilator waveform, not only a pass line.

What you will learn

This lesson introduces the memory map constants and RV32I opcode definitions used in the mini-SoC platform. Understanding these constants is essential for writing correct address decoding and instruction handling logic.

Learning objectives

  • Read the soc_pkg.sv memory base address constants.
  • Read the rv32_pkg.sv RV32I opcode constants.
  • Verify the DUT correctly assigns these package constants to its output ports.
  • Run the testbench to confirm the INFO: PASS status.

Theory

The soc_pkg package defines the base addresses for the SoC peripherals. These addresses determine where the CPU will find RAM, GPIO, timers, and other devices. The rv32_pkg package defines the 7-bit opcode values for standard RV32I instructions. These opcodes are used by the control logic to identify load, store, and system instructions. The DUT simply passes these constant values from the packages to its output ports.

Constant NameDescriptionValue (Hex)
BASE_RAMBase address for system RAM0x20000000
BASE_GPIOBase address for General Purpose I/O0x40000000
BASE_TIMERBase address for the timer peripheral0x40001000
BASE_UARTBase address for the UART peripheral0x40002000
BASE_IRQBase address for the interrupt controller0x40003000
BASE_SYSCTRLBase address for system control0x40004000
BASE_DMABase address for the DMA controller0x40005000
Opcode NameDescriptionValue (Binary)
OP_STOREStore instruction opcode0100011
OP_LOADLoad instruction opcode0000011
OP_SYSTEMSystem instruction opcode1110011

Practice

  1. Open RtlStudio and select this chapter.
  2. Confirm files appear in the Explore tree.
  3. Open student/rtl/design.sv in the editor.
  4. Open student/tb/tb_top.sv in the editor.
  5. Open Simulation from the left sidebar and click Run.
  6. Read the Log panel to verify the output values.

Summary

You practiced reading the mini-SoC memory map and RV32I opcode constants side by side to understand the platform configuration. This exercise reinforced how the design module instantiates package definitions to ensure the core and peripherals share a consistent address map. The key takeaway is the critical importance of matching MMIO base addresses and instruction opcodes for correct system operation.

© 2026 RtlStudio. Licensed under CC BY-NC-ND 4.0. Commercial use and modifications by third parties are not permitted.

Run it in the Verilog IDE

  1. Open the system lesson in the IDE. The RV32I core and the mini-SoC fabric simulate together.
  2. Run Verilator and trace the program through MMIO: address, load/store data, and the peripheral response.
  3. Interrupts and DMA belong on the waveform next to the instruction stream, not only in a pass/fail line.
  4. Edit the integration RTL, resimulate, and run Yosys on the structural block when you want a netlist.

The lesson is done when the simulation matches SoC platform tour. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.