SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Table 32-24 shows the sequence for configuring EDMA transfer to the branch metrics FIFO is a VCP1XEVT and VCP2XEVT frames synchronized transfer. The parameters should be set as:
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Intermediate transfer complete chaining is disabled | EDMA.EDMA_TPCC_OPT_n[23] ITCCHEN | 0x0: Disable |
Transfer complete chaining is disabled | EDMA.EDMA_TPCC_OPT_n[22] TCCHEN | 0x0: Disable |
Intermediate transfer complete interrupt is disabled | EDMA.EDMA_TPCC_OPT_n[21] ITCINTEN | 0x0: Disable |
Transfer complete interrupt is enabled | EDMA.EDMA_TPCC_OPT_n[20] TCINTEN | 0x1: Enabled |
Backward compatibility mode | EDMA.EDMA_TPCC_OPT_n[19] WIMODE | 0x0: Normal operation |
Transfer complete code | EDMA.EDMA_TPCC_OPT_n[17:12] TCC | 1 to 63 |
Transfer complete code mode | EDMA.EDMA_TPCC_OPT_n[11] TCCMODE | 0x0: Normal completion |
FIFO width | EDMA.EDMA_TPCC_OPT_n[10:8] FWID | x |
Static Entry | EDMA.EDMA_TPCC_OPT_n[3] STATIC | 0x0: Entry is updated as normal. |
Transfer Synchronization Dimension | EDMA.EDMA_TPCC_OPT_n[2] SYNCDIM | 0x1: AB-Sync, Each event triggers the transfer of BCNT arrays of ACNT elements. |
Destination Address Mode | EDMA.EDMA_TPCC_OPT_n[1] DAM | 0x0: INCR, Dst addressing within an array increments. Dst is not a FIFO. |
Source Address Mode | EDMA.EDMA_TPCC_OPT_n[0] SAM | 0x0: Source Address within an array increments. Source is not a FIFO. |
Source Address | EDMA.EDMA_TPCC_SRC_n[31:0] SRC | xxxx: Branch Metrics Array start addressBranch Metrics Array start address. |
Number of branch metrics bytes in an array | EDMA.EDMA_TPCC_ABCNT_n[15:0] ACNT | 0x8, where
Equation 26. ACNT = 4×(SYMX+1) x 2(r-1) |
Number of arrays in a frame Where TNBM is Total Number of Branch Metrics in Bytes To calculate total number of branch metrics data in bytes: Total number of Branch metrics = (F + K - 1) ×(2(r - 1)) for mixed and tailed traceback mode In case of convergent mode, Total number of Branch metrics = (F + C) ×(2(r - 1)) | EDMA.EDMA_TPCC_ABCNT_n[15:0] BCNT | Equation 23. BCNT = CEIL(TNBM/ACNT) |
Destination Address | EDMA.EDMA_TPCC_DST_n[31:0] DST | VCP_VCPWBM Branch Metrics FIFO Address - 32-bit destination address parameters. |
Source 2nd Dimension Index | EDMA.EDMA_TPCC_BIDX_n[15:0] SBIDX | = ACNT (to create incrementing transfer) |
Destination 2nd Dimension Index | EDMA.EDMA_TPCC_BIDX_n[31:16] DBIDX | 0x00 (to access the FIFO) |
Source Frame Index | EDMA.EDMA_TPCC_CIDX_n[15:0] SCIDX | ACNT × BCNT |
Destination Frame Index | EDMA.EDMA_TPCC_CIDX_n[31:16] DCIDX | 0x00 (to access the FIFO) |
C byte count. Count for 3rd Dimension | EDMA.EDMA_TPCC_CCNT_n[15:0] CCNT | 0x1: One frame in the block |
Upon completion, this EDMA transfer is linked to one of the following:
Do not link to a NULL transfer, as the Secondary Event Register will set the event flag for Event 1. The final VCPnXEVT is generated upon the reading of the decisions and output registers, which is intended to transfer the input configuration of the next user channel. If a NULL transfer link is in place, the final VCPnXEVT will set the event 1 flag of SER and no further VCP execution will occur until it is cleared.