This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How does the DMAQNUM map channel to a specific queue?

Hi All

   I found the DMAQNUMn definition in the EDMA3 user guide, it describe as bellow

   Each DMA channel and QDMA channel is independently programmed to map to a
specific queue using the DMA queue number register (DMAQNUMn) and the QDMA
queue number register (QDMANUM).

  when a saw the program in the example

  

gEDMACC2Regs->TPCC_DMAQNUM[0]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[1]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[2]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[3]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[4]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[5]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[6]= 0x32103210;
gEDMACC2Regs->TPCC_DMAQNUM[7]= 0x32103210;

What does this value mean?

there are 8 channel in total, and each queue is 16-entries deep

how does this map channel to a specific queue?

 Best Regards

Yewkui Wang

  • Hi Wang,

    Thanks for your post.

    As we know, the DMA channel queue number register (DMAQNUMn) allows us to program the DMA channels and its associated events to map to any event queue in the EDMA CC, but there is a mapping between DMA channels and their corresponding bits in DMAQNUMn, kindly refer Table 4-7 from keystone EDMA user guide as below:

    http://www.ti.com/lit/ug/sprugs5a/sprugs5a.pdf

    The above table would provide you the meaning of each value it holds in each DMA queue number DMAQNUM[n] as per your post. Also refer section 4.2.1.5 and Table 4-6 for DMAQNUMn field descriptions.

    To my opinion, if a particular DMA event En and its corresponding bit fields holds the value of "0", then the respective events are queued on DMA event queue number 0. Likewise, if it holds the value of "1", then the corresponding events are queued on queue number 1 and similarly, if it holds "2", events are queued on queue number 2 and if holds "3", events are queued on queue number 3 and so on.

    Thanks & regards,

    Sivaraj K

    ----------------------------------------------------------------------------------------------------------------

    Please click the "Verify Answer" button on this post if it answers your question.

    ----------------------------------------------------------------------------------------------------------------

  • Hi Sivaraj K

    Thank you for your response.
    Thank you so much.

    Best Regards

    Yewkui Wang