Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Nios DMA problem

Hi, I have a DMA problem.

I use Nios 3.1, QuartusII 4.0, and APEX20K.

When I use DMA to transfer 10 data. I need to know when the DMA start and end its transfer.

I mean the start and the end "clock". Because I need to do some caculation at the "DMA start clock" time.

When I use the nr_dma_copy_range_to_1 function, I can not know the correct starting time(clock) of DMA.

But I really need to know it.

Does anyone can help me?

Thanks a lot. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello!

    Did you already solve this problem?

    I don&#39;t think that a extract clock can be found when DMA finished or started once if you use nios&#39;

    software to control the DMA because the software running can&#39;t be accurate like hardware.

    I have an idea that you&#39;ll design a hardware port directly handling DMA control slave port. Then you

    can attain clock time when DMA start or finish.

    regards!