What you practice
Ultimate mini-SoC (5.5). Integrate a mini-SoC top-level wrapper with GPIO and timer IRQ support, verifying end-to-end functionality via a testbench. It is in Mini-SoC Capstone — 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 integrate multiple SoC IP blocks into a top-level design. This capstone connects a CPU, memory interconnect, and peripherals. It demonstrates a complete system-on-chip workflow. Mastering this integration is essential for building complex digital systems.
Learning objectives
- Instantiate and connect multiple IP modules within a top-level SoC wrapper.
- Route AXI interfaces and control signals between subsystems correctly.
- Verify GPIO output and CPU completion status using a testbench.
- Understand the role of reset sequencing and interrupt lines in a SoC.
Theory
A System-on-Chip (SoC) integrates processors, memory, and peripherals on a single die. The top-level module acts as a router. It connects these components via standard buses like AXI. Proper signal routing ensures data flows from the CPU to peripherals and back. Reset sequencing is critical to ensure all blocks initialize in the correct order. Interrupt lines allow peripherals to signal the CPU for immediate attention.
| Component | Role in SoC |
|---|---|
| CPU | Executes instructions and controls system flow. |
| Interconnect | Routes data between CPU and slave peripherals. |
| Peripherals | Handle I/O (GPIO, UART) and timers. |
| DMA | Moves data without CPU intervention. |
| Reset Seq. | Manages power-on and peripheral reset states. |
Practice
Open this chapter in RtlStudio. Navigate to the Explore panel. Open student/rtl/ip/soc/mini_soc_top.sv. This file contains the SoC wrapper. Complete the port connections for sysctrl_block, multi_slave_interconnect, dma_engine_top, and cpu_stub.
- Open
student/rtl/ip/soc/mini_soc_top.sv. - Connect the
busport ofu_sysctrltos_sysctrl. - Connect the
m_gpioport ofu_ictos_gpio. - Connect the
s_descport ofu_dmatos_dma. - Connect the
done_irqport ofu_dmatodma_done. - Connect the
irqport ofu_cputoirq_line.
After fixing the RTL, open student/tb/tb_top.sv. Run Simulation from the sidebar. Check the Log panel for the INFO: PASS message. Inspect the Waveform tab to see signal transitions if needed.
Summary
You successfully integrated multiple IP blocks into a cohesive mini-SoC. You correctly assigned clock and reset domains to all AXI interfaces. This capstone exercise demonstrated how to assemble a functional digital system. It showed how to manage hierarchical connections from modular components. By verifying the design with the UVM testbench, you confirmed interaction. The CPU and peripherals interact as expected under power-on conditions.
© 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 Ultimate mini-SoC. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.