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_irqAXI interface to theperiph_subsysteminstance. - Connect the
s_dmaAXI interface to thedma_engine_topinstance. - Route the
irq_oanddma_donesignals 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
- Open
student/rtl/design.svin the editor. - Locate the
u_periphinstance and complete the.irq_oport connection. - Locate the
u_dmainstance and complete the.s_descand.done_irqport connections. - Save the file.
- 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
- 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 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.