RTL Studio Open IDE

5.1 · RV SYS CLASS

rv32_soc_top

Package the reset sequencer, fabric, peripherals, DMA, and core as one chip top.

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

What you practice

rv32_soc_top (5.1). Package the reset sequencer, fabric, peripherals, DMA, and core as one chip top. It is in rv32_soc_top hierarchy — Part 5 · System Capstone 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

You will package the reset sequencer, fabric, peripherals, DMA, and core as one chip top. This lesson matters because it demonstrates how to aggregate complex subsystems into a single design unit.

Learning objectives

  • Instantiate the rv32_soc_top module inside the DUT wrapper.
  • Connect the top-level ports to the SoC instance.
  • Verify the SoC runs the provided program and asserts cpu_done.
  • Observe GPIO and UART activity in the simulation log.

Theory

The rv32_soc_top module aggregates several sub-blocks into a single interface. It includes a reset sequencer, a multi-slave interconnect, and a peripheral subsystem. The DMA engine and system control block are also integrated into this hierarchy. The RV32I core connects to the interconnect via an AXI bus interface. This structure allows the testbench to treat the entire SoC as a single black box.

ComponentRole in SoC
reset_sequencerGenerates rst_n and periph_rst_n from por_n
multi_slave_interconnectRoutes CPU requests to peripherals
periph_subsystemHandles GPIO, UART, and timer logic
dma_engine_topManages memory-to-peripheral data transfers
sysctrl_blockProvides boot address and watchdog interrupts
rv32i_core_busExecutes the instruction stream

Practice

Open this chapter in RtlStudio and confirm the files appear in Explore. Open student/rtl/ip/riscv/rv32_soc_top.sv from the Explore tree. Replace the entire __TODO__[0] placeholder in the axi_if parameter declarations with 32. This sets the address width for all AXI buses to 32 bits. Open student/rtl/design.sv from the Explore tree. Verify that u_soc is instantiated with the correct port connections. The ports should match the rv32_soc_top module definition exactly. Open student/tb/tb_top.sv from the Explore tree. Ensure the testbench loads the program from tb/programs/05_01_rv32_soc_top.hex. Run Simulation from the left sidebar and read the Log panel. Check that the simulation completes without errors and prints INFO: PASS.

Summary

You successfully instantiated the rv32_soc_top module to integrate the reset sequencer, fabric, peripherals, DMA, and core into a single chip top. By correctly configuring AXI interface parameters and managing clock and reset distribution, you ensured proper hierarchical connectivity across the SoC. The simulation verified that the design functions as expected, confirming your mastery of SystemVerilog hierarchy and interface management.

© 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 rv32_soc_top. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.