How freecores/dma_ahb works
Project Type and Purpose
• This is an open-source hardware IP core written in Verilog: a generic, high-performance dual-core AHB DMA engine.
• It provides two builds (32-bit and 64-bit) for on-chip data movement via the AMBA AHB bus, with an APB-based register interface for control.
File Structure Analysis
• Top-level:
• README.txt (project overview)
• doc/PR201_trm_rev1.5.pdf (technical reference manual)
• src/
– dma_ahb32/ (32-bit build)
– dma_ahb64/ (64-bit build)
• Each build directory contains:
• dma_ahbXX.v (top-level wrapper)
• dma_ahbXX_dual_core.v (combines two cores)
• dma_ahbXX_core0*.v (core‐specific channel, arbiter, timeout, FIFO, etc.)
• dma_ahbXX_reg*.v (APB slave register interface)
• prgen_*.v (generic helper modules: mux, FIFO, stall logic, min, scatter/gather, etc.)
Key Insights from README
• The core instantiates two identical “core0” engines under a dual-core wrapper.
• Control/configuration is performed over an APB slave interface (register block).
• Data movement occurs as an AHB master, with separate read/write channels per core.
• The prgen_* library provides reusable building blocks across both builds.