Forum Discussion

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

Avalon ST to Memory DMA Example

There is some simple example for doing DMA between an Avalon streaming source and a memory shared with CPU?

I have seen SGDMA but C API seem very complex..

3 Replies

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

    I don't know if there is an example floating around, but the API is relatively straight forward for simple tasks.

    All you need, basically, is:

    alt_avalon_sgdma_open()

    alt_avalon_sgdma_construct_stream_to_mem_desc()

    alt_avalon_sgdma_do_sync_transfer()
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Parameters of these functions are the very problem, i have not found a simple example

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

    If you post your (non-)working code and ask a specific question, someone may be able to help you.