Introduction
In modern high-performance computing, the CPU should ideally be offloaded from data movement tasks to focus on computation. This is the primary role of a Direct Memory Access Controller (DMAC). However, traditional DMACs are optimized for "bulk" transfers—moving large, contiguous blocks of memory. Modern workloads, such as machine learning and graph analytics, frequently involve "irregular" data transfers where small chunks of data are scattered across memory.
Standard DMACs suffer from a "small-transfer tax" in these scenarios because their instruction packets (descriptors) are often too large and fetched too slowly. When the overhead of reading these instructions approaches the size of the data being moved, bus utilization drops significantly. Researchers from ETH Zurich and the University of Bologna have developed a lightweight DMAC specifically designed to overcome these inefficiencies, achieving up to 3.6× better bus utilization and 1.66× lower latency than industry-standard solutions.
Architecture and Design
The proposed DMAC architecture is split into two main components: a DMA Frontend and a DMA Backend. The Frontend manages the programming interface and descriptor handling, while the Backend executes the actual AXI transactions.
Key innovations in this design include:
- Lightweight Descriptor Format: The descriptor size was reduced to a minimal 256-bit (32-byte) format. This matches the width of a standard 256-bit memory interface, allowing a descriptor to be fetched in a single cycle.
- Speculative Descriptor Prefetching: To hide memory latency, the DMAC speculatively fetches subsequent descriptors from sequential memory addresses before the current transfer finishes. If the prediction is correct, the next transfer starts immediately; if incorrect, the data is discarded with no additional latency penalty.
- Descriptor Chaining: This allows the DMAC to process complex, non-contiguous data patterns autonomously, reducing CPU intervention.
Performance Evaluation
The design was evaluated using an Out-of-Context (OOC) testbench, FPGA emulation on a Xilinx Kintex-7, and ASIC synthesis in 12nm FinFET technology. A key metric for irregular transfers is bus utilization relative to transfer size.
As shown in the evaluation results, the new DMAC significantly outperforms the Xilinx LogiCORE IP DMA, particularly for small payloads. For 64-byte transfers—a common cache line size—the design achieves 3.6× higher bus utilization in deep memory systems. Furthermore, the hardware footprint is highly efficient; the design uses 11% fewer Lookup Tables (LUTs) and 23% fewer Flip-Flops than the LogiCORE IP, while requiring zero Block RAM (BRAM).
Conclusion
By optimizing metadata efficiency and employing speculative prefetching, this DMAC architecture effectively eliminates the performance bottleneck for fine-grained data transfers. In 12nm silicon, the controller can operate at over 1.44 GHz with a tiny footprint of 49.5 kGE. The successful integration into a 64-bit Linux-capable RISC-V SoC (CVA6) demonstrates its readiness for real-world operating system deployment. Future work may explore multi-dimensional stride support to further enhance handling of complex data patterns.
Summary updated