RTL Studio Open IDE

5.3 · SOC CLASS

Attach DMA + IRQ to fabric

Attach DMA engine and IRQ lines to the SoC fabric by completing port connections in the design module.

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

What you practice

Attach DMA + IRQ to fabric (5.3). Attach DMA engine and IRQ lines to the SoC fabric by completing port connections in the design module. It is in Attach DMA and IRQ — 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

Today you will connect the DMA engine and IRQ lines to the SoC fabric. This step completes the internal wiring of the peripheral subsystem. You will learn how to route signals between the interconnect and the DMA controller.

Learning objectives

  • Connect the s_irq AXI interface to the periph_subsystem instance.
  • Connect the s_dma AXI interface to the dma_engine_top instance.
  • Route the irq_o and dma_done signals to the top-level ports.
  • Verify the design by running the simulation and checking the log output.

Theory

The System-on-Chip (SoC) fabric uses a multi-slave interconnect to route CPU requests to peripherals. The periph_subsystem module aggregates GPIO, timer, UART, and IRQ logic. The dma_engine_top module handles data movement and generates a completion signal. You must connect the AXI slave interfaces from the interconnect to these modules. You also need to wire the top-level output ports irq_o and dma_done to the internal signals generated by the DMA and IRQ logic. This ensures the CPU can interact with the DMA and receive interrupts.

Practice

  1. Open student/rtl/design.sv in the editor.
  2. Locate the u_periph instance and complete the .irq_o port connection.
  3. Locate the u_dma instance and complete the .s_desc and .done_irq port connections.
  4. Save the file.
  5. Run Simulation from the left sidebar and check the Log panel for PASS.

Summary

You successfully connected the DMA engine and IRQ lines to the SoC fabric by instantiating the DMA module and routing its completion signal. You also ensured proper signal routing for the peripheral subsystem. This integration allows the DMA engine to operate independently while signaling the CPU via interrupt requests. The simulation confirmed that all connections were established correctly, resulting in a passing test log.

© 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 lesson workspace in the IDE. The fabric and the peripheral are one simulation.
  2. Run Verilator and follow the address, write data, and read response on the waveform.
  3. A passing log is not enough when decode or an IRQ line is the point of the lesson — those show up on the VCD.
  4. Run Yosys on the RTL island you just integrated when you want the mapped cells.

The lesson is done when the simulation matches Attach DMA + IRQ to fabric. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.