...
Please refer figure 25-4 Step1 ~ step9.
Figure 25-4 Copy Data Flow
25.3.5 SG(Scatter-gather) DMA Mode
The SG DMA mode is like auto repeat mode of MEMSET or DMA write or DMA read or DMA copy. Through this function, user can read several area data and write to a gather area. User also can read data in a continue area and write to several discontinue area. The max operation times is 32. The control registers are G26.10~15. Below shows the registers setting flow for continue DMA copy:
- Set below registers:
- LLI_ACCESS_INDEX: Determine which LLI(Link List Item) mapping to following registers.
- LAST_LLI_IN_TASK: If this flag setup, it indicate the last LLI.
- dma_mode: Set dma_mode to DMA Copy mode.
- Length: The number of bytes to copy.
- Dest Addr: Copy the data into the address of the DRAM.
- Src Addr: Read the data from the address of the DRAM and write it to Dest DRAM.
- Repeat above action.
- After SG DMA Go, CB_DMA will move data from the DRAM of Src_Addr to the DRAM starting with Dest_Addr according index. After the copy ends, DMA_DONE_FLAG will be set to 1. If the interrupt of DMA_DONE is not masked, there will be an interrupt of DMA_DONE.
25.4 CBDMA Interrupts
The CBDMA interrupt events are connected to the same interrupt vector, please refer to Group 26.5 register. These events generate an interrupt if the corresponding "Enable Control Bit" is set, please refer to Group 26.6 register.
Anchor | ||||
---|---|---|---|---|
|
...
Field Name | Bit | Access | Description |
Reserved | 31:13 | RO | RESERVED |
SG LLI RUN INDEX | 12:8 | RW | The start LLI (Link List Item) index in a task If the task stop cause error occur, SG LLI RUN INDEX will indicate which LLI fail. |
Reserved | 7:5 | RO | RESERVED |
SG LLI ACCESS INDEX | 4:0 | RW | Index for LLI (Link List Item) access Determine which LLI mapping to REG 0x0B 0x0Fregisters G26.11~15 |
26.11 SG DMA CONFIG (sg dma config)
Address: 0x9C000D2C
Reset: 0x00000000
...
26.15 SG MEMSET VALUE (sg memset value)
Address: 0x9C000D3C
Reset: 0x00000000
Field Name | BitAccessBit | Access | Description |
SG MEMSET VALUE | 31:0 0 | RUW | MEMSET Value for LLI (Link List Item) |
...