Forum Discussion

AJung123's avatar
AJung123
Icon for Occasional Contributor rankOccasional Contributor
6 years ago

mSGDMA Read/Write Address Fields

Hello,

I was wondering if these addresses are physical addresses or can they also be virtual addresses; if it can be virtual, how do I make it so it knows which address space being referenced? I want to write a program that uses the mSGDMAs to move data in software (for example, transfer data from array A to another array B in the same program).

7 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello.

    The addresses used here should be physical addressing. Virtual address is applicable only when you have memory management unit (MMU) in your design; this is mostly applicable when you have OS.

    I would like to know if you are willing to use mSGDMA with Nios II or HPS. If you want to use it with Nios II, you can refer to this video:

    https://www.youtube.com/watch?v=iaRkjkpMBH8

    It shows an explanation of how to instantiate this IP and how to write a simple software to transfer the data.

    Hope this might help.

    Thank you.

    • AJung123's avatar
      AJung123
      Icon for Occasional Contributor rankOccasional Contributor

      Hello,

      I am currently using the HPS and would not like to use the Nios ii. Is there a way to do the task mentioned above using the HPS?

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello sir.

    The files cannot be migrated due to kernel module dependencies.

    I am working on a workaround to overcome this issue,

    thank you

    • AJung123's avatar
      AJung123
      Icon for Occasional Contributor rankOccasional Contributor

      Hello,

      Please let me know when you are able to overcome this issue

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello sir,

    I was able to fine the original design files of the datamover application, however, it doesnt have any zImage file. You can refer to the source code of Nios II and the linux module developed to communicate with DMAs.

    We are still working on finding the alternative design, yet it takes longer time for verification.

    Thank you

    • AJung123's avatar
      AJung123
      Icon for Occasional Contributor rankOccasional Contributor

      Alright, thank you Ill be sure to have a look