RTL Studio Open IDE

3.5 · RV SYS CLASS

Core idle DMA fill

Verify DMA memory fill operation with CPU idle state and interrupt handling.

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

What you practice

Core idle DMA fill (3.5). Verify DMA memory fill operation with CPU idle state and interrupt handling. It is in Core idle + DMA fill — Part 3 · Interrupts & DMA 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

This lesson teaches you how to verify a DMA engine that fills memory while the CPU is idle. You will observe how the system handles interrupts and memory transfers without CPU intervention. This is a critical pattern for high-performance embedded systems.

Learning objectives

  • Understand the role of the DMA engine in offloading memory tasks from the CPU.
  • Learn to interpret status registers and interrupt lines during DMA operations.
  • Verify that the CPU halts or remains idle while the DMA completes its transfer.
  • Inspect memory contents to confirm the DMA fill operation succeeded.

Theory

The DMA (Direct Memory Access) engine allows peripherals to transfer data directly to/from memory without CPU involvement. This frees the CPU to perform other tasks or enter low-power states. In this lesson, the CPU is configured to idle while the DMA fills a memory region. The system uses interrupts to signal completion or errors. You will verify that the gpio_out register reflects the expected data pattern after the DMA transfer. The halted signal indicates the CPU state, ensuring it did not interfere with the transfer.

Practice

  1. Open RtlStudio and select chapter 3.5.
  2. Open student/rtl/design.sv in the Explore panel.
  3. Notice the __TODO__[0] placeholders in the axi_if instance declarations.
  4. Replace each __TODO__[0] with the correct address width value 32.
  5. Open student/tb/tb_top.sv in the Explore panel.
  6. Run Simulation from the sidebar.
  7. Check the Log panel for INFO: lines and the final INFO: PASS.
  8. If the simulation fails, inspect the gpio_out and halted signals in the Waveform tab.

Summary

You practiced configuring the DMA engine to perform memory fills while the core remains idle. By polling the status register, you verified that the transfer completed successfully without CPU intervention. This exercise demonstrated the efficiency of offloading data movement tasks to hardware peripherals.

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