Visible to Intel only — GUID: sfo1410068808034
Ixiasoft
Visible to Intel only — GUID: sfo1410068808034
Ixiasoft
17.3. Functional Description of the DMA Controller
This section describes the major interfaces and components of the DMAC and its operation.
The DMAC contains an instruction processing block that processes program code to control a DMA transfer. The program code is stored in a region of system memory that the DMAC accesses using its AXI master interface. The DMAC stores instructions temporarily in an internal cache.
The DMAC has eight DMA channels. Each channel supports a single concurrent thread of DMA operation. In addition, a single DMA manager thread exists, and you can use it to initialize the DMA channel threads.
The DMAC executes one instruction per clock cycle. To ensure that it regularly executes each active thread, the DMAC alternates by processing the DMA manager thread and then a DMA channel thread. It performs a round‑robin process when selecting the next active DMA channel thread to execute.
The DMAC uses variable‑length instructions that consist of one to six bytes. It provides a separate program counter (PC) register for each DMA channel.
The DMAC includes a 16-line instruction cache to improve the instruction fetch performance. Each instruction cache line contains eight, four-byte words for a total cache line size of 32 bytes. The DMAC instruction cache size is therefore 16 lines times 32 bytes per line which equals 512 bytes. When a thread requests an instruction from an address, the cache performs a lookup. If a cache hit occurs, then the cache immediately provides the instruction. Otherwise, the thread is stalled while the DMAC performs a cache line fill through the AXI master interface. If an instruction spans the end of a cache line, the DMAC performs multiple cache accesses to fetch the instruction.
When a DMA channel thread executes a load or store instruction, the DMAC adds the instruction to the relevant read or write queue. The DMAC uses these queues as an instruction storage buffer prior to it issuing the instructions on the AXI. The DMAC also contains an MFIFO data buffer in which it stores data that it reads or writes during a DMA transfer.
The DMAC provides multiple interrupt outputs to enable efficient communication of events to the system CPUs. The peripheral request interfaces support the connection of DMA‑capable peripherals to enable memory‑to‑peripheral and peripheral‑to‑memory DMA transfers to occur without intervention from the microprocessor.
Dual slave interfaces enable the operation of the DMAC to be partitioned into the secure state and non‑secure states. You can access status registers and also directly execute instructions in the DMAC with the slave interfaces.