What you practice
Bus MMIO top (1.6). Assemble the RV32I core, interconnect, and peripheral island into one subsystem by wiring the AXI bus interfaces in the top-level design. It is in Bus + MMIO subsystem top — Part 1 · Core on Bus (MMIO) 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 assemble the RV32I core, interconnect, and peripheral island into a single subsystem. This lesson demonstrates how to wire a top-level design that integrates multiple IP blocks via a common bus protocol.
Learning objectives
- Understand the role of the
multi_slave_interconnectin routing bus transactions. - Learn to instantiate and connect the
periph_subsystemto the bus. - Practice wiring AXI interface signals for clock and reset distribution.
- Verify the complete subsystem using a testbench that loads a program and checks GPIO state.
Theory
A System-on-Chip (SoC) requires a central interconnect to allow a processor to communicate with various peripherals. The multi_slave_interconnect acts as a bridge between the master core and multiple slave devices. Each slave device, such as GPIO or UART, connects to the interconnect via a dedicated AXI interface. The interconnect decodes addresses to route read and write requests to the correct peripheral. Clock and reset signals must be distributed to all components to ensure synchronized operation. The testbench loads a program into the core's instruction memory to exercise these peripherals. The program writes to GPIO registers to verify that the bus communication is functioning correctly.
Practice
Open this chapter in RtlStudio to load the workspace. Navigate to Explore and open student/rtl/design.sv. You will see several axi_if interface declarations with __TODO__[0] placeholders. Replace the entire __TODO__[0] with 32 to set the address width for all interfaces. Ensure that all clock and reset assignments are connected to the respective interface signals. Save the file and open student/tb/tb_top.sv. This testbench loads a program from tb/programs/01_06_bus_mmio_top.hex. Run the simulation from the Simulation sidebar. Check the Log panel for the INFO: messages and verify that the simulation ends with INFO: PASS.
Summary
You successfully assembled the RV32I core, interconnect, and peripheral island into a complete subsystem. This practice demonstrated how to wire multiple AXI-lite slaves to a single master using a multi-slave interconnect. You verified the system by running a test program that exercised GPIO and UART peripherals.
© 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
- Open the system lesson in the IDE. The RV32I core and the mini-SoC fabric simulate together.
- Run Verilator and trace the program through MMIO: address, load/store data, and the peripheral response.
- Interrupts and DMA belong on the waveform next to the instruction stream, not only in a pass/fail line.
- 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 Bus MMIO top. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.