Results 1 to 6 of 6

Thread: little problem in understanding MODULAR sgDMA ?

  1. #1
    Join Date
    Apr 2018
    Posts
    15
    Rep Power
    1

    Default little problem in understanding MODULAR sgDMA ?

    hello all,

    I have created a SoC in platform designer which have a modular SG-DMA. I have a confusion on what to pass the arguments while using HAL API function calls.

    ex: alt_msgdma_standard_descriptor_async_transfer( argument 1 , argument 2);

    argument 1 : it is simply a pointer to msgdma instance (i have clarity on this)
    argument 2 : <alt_msgdma_standard_descriptor *desc> which says *desc : a pointer to a standard descriptor structure.

    In the address editor of qsys tool , descriptor port of msgdma has 0x0208_1040 address.

    what should i give in this argument 2. ???

    The same confusion while using another API : alt_msgdma_construct_standard_mm_to_mm_descriptor (arg1,arg2,arg3,arg4,arg5,arg6);
    arg1 : device instance
    arg2 : a pointer to a standard descriptor structure (????)
    arg3 : read_address
    arg4 : write_address
    arg5 : length
    arg6: control

    coming to hardware part, It has nios, ocm,msgdma, myown 4kb memory (burst capable) acts as source, another instance as destination.

    I am attaching c file and as well as qsys IP integration.

    my questions are
    1. am i missing any other function call
    2. how to use the arg2 as i asked above.
    3. any fundamental mistake is there in my SoC ,please check zip file.

    please somebody help me to sort out this issue.


    Hope this will resolve this time at-least.
    Thanks
    Anil
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2004
    Location
    Texas Y'all
    Posts
    2,369
    Rep Power
    1

    Default Re: little problem in understanding MODULAR sgDMA ?

    I have never used the driver but it's documented in chapter 26 of this document: https://www.altera.com/content/dam/a...mbedded_ip.pdf

    It looks like you call the construction API to create your descriptor then you pass it into the transfer function so that the driver will send the descriptor to the DMA.

  3. #3
    Join Date
    Apr 2018
    Posts
    15
    Rep Power
    1

    Default Re: little problem in understanding MODULAR sgDMA ?

    Thanks for your time. The issue resolved .

  4. #4
    Join Date
    Apr 2018
    Posts
    10
    Rep Power
    1

    Default Re: little problem in understanding MODULAR sgDMA ?

    Quote Originally Posted by anilinaltera View Post
    Thanks for your time. The issue resolved .
    How was this issue resolved?

  5. #5
    Join Date
    Apr 2018
    Posts
    15
    Rep Power
    1

    Default Re: little problem in understanding MODULAR sgDMA ?

    By following the arguments shown in the prototype of driver implementation function calls .

  6. #6
    Join Date
    Apr 2018
    Posts
    10
    Rep Power
    1

    Default Re: little problem in understanding MODULAR sgDMA ?

    Anil, where did you find your driver? Did you write it yourself?

Similar Threads

  1. Replies: 2
    Last Post: February 1st, 2017, 05:21 AM
  2. Modular SGDMA Streaming
    By arash.moghimi in forum Quartus II and EDA Tools Discussion
    Replies: 3
    Last Post: January 27th, 2016, 07:33 AM
  3. Modular SGDMA
    By rob in forum IP Discussion
    Replies: 0
    Last Post: August 28th, 2013, 11:25 AM
  4. Replies: 3
    Last Post: July 5th, 2013, 07:10 AM
  5. Modular SGDMA ST to memory streaming: write problem
    By xenon in forum General Discussion Forum
    Replies: 1
    Last Post: December 28th, 2012, 09:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •