RTL Studio Open IDE

1.2 · RV SYS CLASS

Connect soc decode

Connect the RV32I core master to the SoC interconnect and route requests to every peripheral to enable memory-mapped I/O access.

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

What you practice

Connect soc decode (1.2). Connect the RV32I core master to the SoC interconnect and route requests to every peripheral to enable memory-mapped I/O access. It is in Connect to soc decode fabric — 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

Today you will connect the RV32I core master to the SoC interconnect and route requests to every peripheral. This wiring is the foundation of any real SoC because it allows the CPU to access memory-mapped I/O devices.

Learning objectives

  • Instantiate the multi_slave_interconnect to route the core bus to peripherals.
  • Connect the core master interface to the interconnect input.
  • Route interconnect outputs to the GPIO, UART, timer, and other slave blocks.
  • Verify the connection by passing the testbench simulation.

Theory

A System-on-Chip (SoC) requires a central interconnect to manage communication between a master (CPU) and multiple slaves (peripherals). The interconnect decodes addresses to route transactions to the correct device. Without this routing, the CPU cannot access GPIO, UART, or timer registers. The multi_slave_interconnect module handles this address decoding and arbitration automatically. You must ensure that the interface instances are correctly named and connected to both the master and the peripheral slaves.

Practice

  1. Open RtlStudio and select this chapter from the Examples list.
  2. Open student/rtl/design.sv in the editor.
  3. Locate the multi_slave_interconnect instance u_ic.
  4. Replace the __TODO__[0] placeholders in the interface declarations with 32 to match the address width.
  5. Ensure the cpu_bus interface is connected to the .s port of the interconnect.
  6. Ensure the peripheral interfaces (s_gpio, s_timer, s_uart, etc.) are connected to the corresponding .m_* ports.
  7. Save the file and open student/tb/tb_top.sv.
  8. Run Simulation from the sidebar.

Summary

You successfully instantiated the multi_slave_interconnect module to bridge the RV32I core with the peripheral subsystem. By wiring the core's bus interface to the interconnect master port, you enabled address decoding for all connected slaves. This setup ensures that memory-mapped I/O requests are correctly routed to the GPIO, UART, Timer, and other peripherals. The simulation passed, confirming that the SoC decode logic functions as intended.

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