What you practice
Connect decode + peripherals (5.2). Wire the decode fabric to the peripheral subsystem to enable CPU communication with GPIO and other peripherals. It is in Connect Decode and Periph — Part 5 · Integration & Capstone of the SoC Masterclass. Tie a CPU stub, decode, peripherals, DMA, and IRQ into a mini-SoC capstone.
SoC lessons simulate the fabric and the peripheral together in the IDE. Verilator is the simulator; the waveform is where address and response show up.
What you will learn
You will wire the decode fabric to the peripheral subsystem. This enables CPU communication with GPIO and other peripherals.
Learning objectives
- Connect the
multi_slave_interconnectoutputs to theperiph_subsysteminputs. - Route the peripheral interrupt signal to the
dutoutput port. - Verify the design by running the testbench and observing GPIO state changes.
Theory
The multi_slave_interconnect routes CPU AXI transactions to specific peripheral interfaces. It uses address decode logic to select the correct peripheral. Each peripheral instance (GPIO, Timer, UART, etc.) requires a dedicated AXI interface connection. The periph_subsystem aggregates these interfaces. It exposes high-level signals like gpio_out and irq_o to the top level. Correctly mapping the internal AXI wires ensures data flows from the CPU to the correct hardware block.
| Component | Role | Connection Direction |
|---|---|---|
multi_slave_interconnect | Routes CPU requests to peripherals | CPU → Peripherals |
periph_subsystem | Aggregates peripheral logic | Peripherals → Top Level |
s_gpio | Internal AXI wire for GPIO | Interconnect → Subsystem |
Practice
Open this chapter in RtlStudio to load the workspace automatically. Verify that student/rtl/design.sv and student/tb/tb_top.sv appear in the Explore tree. Open student/rtl/design.sv in the editor. Locate the u_ic instance of multi_slave_interconnect. Connect the s_gpio wire to the .m_gpio port of u_ic. Locate the u_periph instance of periph_subsystem. Connect the s_gpio wire to the .s_gpio port of u_periph. Connect the internal interrupt wire (e.g., irq_int) to the .irq_i port of u_periph (if applicable) or ensure the subsystem's internal interrupt logic is correctly wired. Save the file and open the Simulation panel in the sidebar. Click Run to execute the testbench and monitor the Log panel for progress.
Summary
You successfully connected the decode fabric to the peripheral subsystem. You routed the GPIO AXI interface and the interrupt signal correctly. This integration step ensures that the CPU can correctly route requests to the GPIO, UART, timer, and IRQ modules. Verifying the simulation log confirms that the interconnect is functioning as expected.
© 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 lesson workspace in the IDE. The fabric and the peripheral are one simulation.
- Run Verilator and follow the address, write data, and read response on the waveform.
- A passing log is not enough when decode or an IRQ line is the point of the lesson — those show up on the VCD.
- Run Yosys on the RTL island you just integrated when you want the mapped cells.
The lesson is done when the simulation matches Connect decode + peripherals. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.