SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
The most basic transfer performed by the EDMA is a block move. During device operation it is often necessary to transfer a block of data from one location to another, usually between on-chip and off-chip memory.
In this example, a section of data is to be copied from external memory to internal L2 SRAM as shown in Figure 11-21.
The source address for the transfer is set to the start of the data block in external memory, and the destination address is set to the start of the data block in L2. If the data block is less than 64K bytes, the PaRAM configuration shown in Figure 11-22 holds true with the synchronization type set to A-synchronized and indexes cleared to 0. If the amount of data is greater than or equal to 64K bytes, EDMA_TPCC_ABCNT_n[31:16] BCNT and the B-indexes need to be set appropriately with the synchronization type set to AB-synchronized. The EDMA_TPCC_OPT_n[3] STATIC bit is set to prevent linking.
This transfer example may also be set up using QDMA. For successive transfer submissions, of a similar nature, the number of cycles used to submit the transfer are fewer depending on the number of changing transfer parameters. The QDMA trigger word must be programed to be the highest numbered offset in the PaRAM set that undergoes change.
Figure 11-22 shows the parameters Block Move transfer.
(a) EDMA Parameters |
Parameter Contents | Parameter | |||||
0010 0008h | Channel Options Parameter (OPT) | |||||
Channel Source Address (SRC) | Channel Source Address (SRC) | |||||
0001h | FFFFh | Count for 2nd Dimension (BCNT) | Count for 1st Dimension (ACNT) | |||
Channel Destination Address (DST) | Channel Destination Address (DST) | |||||
0000h | 0000h | Destination BCNT Index (DBIDX) | Source BCNT Index (SBIDX) | |||
0000h | FFFFh | BCNT Reload (BCNTRLD) | Link Address (LINK) | |||
0000h | 0000h | Destination CCNT Index (DCIDX) | Source CCNT Index (SCIDX) | |||
0000h | 0001h | Reserved | Count for 3rd Dimension (CCNT) |
(b)Channel Options Parameter (OPT) Content