Forum Discussion

vsath's avatar
vsath
Icon for New Contributor rankNew Contributor
6 years ago

usage of SGDMA IP for data transfer to and from DDR3

Hi,

I want to develop a system with NIOS II Processor on Arria V of one of our custom boards for DDR3 memory transfers.

where as there will be a sensor which will be giving around 128 bit data per clock cycle, and that data we want to transfer to DDR3 on our board itself using SGDMA and NIOS II processor and after that we wanted to read the data also from DDR3 using NIOS II and SGDMA to a USB connection which is connected to FPGA.

Can you help us in finding a sample design in this point of view where as data transfer happens using SGDMA and NIOS II between FPGA and DDR3?

Its been important for us to complete this but couldn't able to find any correct design as example for this as starting point to us.

By the way I am new to quartus where as our previous development used to go with Xilinx(vivado).

Please help us in fastening our development process by providing some useful tutorials and links to solve the above mentioned task.

9 Replies

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

    Hi,

    Also you may refer to Intel FPGA wiki that consist some generic MSGDMA and EMIF design.

    Hope this helps.

    Thanks

    Regards,

    NAli1

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

    Dear Vsath1,

    Please allow me some time to look into your issue. I shall come back to you with finding.

    Thank you for your patience.

    Regards,

    NAli1

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

    Hi Vsath1,

    I can give you idea on how to debug the issue. I will suggest you signaltap (stp) the avalon-MM interface (interface between DDR3 and MSGDMA) and check which signal is not behave unexpected. You can compare the stp waveform with the working design like NIOS II to DDR3.

    Thanks

    Regards,

    NAli1

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

      yes.. I will look in that way also and tell you if anything I find.. meanwhile please review the project I have sent and if possible if you have the kit i mentioned you also run once and see the result please. Actually I already enable signal tap also in the project i gave. You can see that also once.

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

        Hi VSath1,

        Just to let you know that we are still working on the design to isolate the root cause. I'll let you know the results once we have done.

        Thanks.

        Regards,

        NAli1

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

    Hi,

    Got the example for arria 10 with NIOS using MSGDMA from the following link

    https://fpgawiki.intel.com/wiki/MSGDMA_design_example#Steps_to_Run_Design_Example

    and I have another example for cyclone V for DDR3 test using NIOS processor SoCkit_v.2.0.1_SystemCD.zip

    I tried to integrate both.

    Things which are working are

    1. NIOS II <---> DDR3 communciton
    2. MSGDMA <---> OnchipMemory
    3. NIOS II <---> OnchipMemory

    Things which are not working are

    1. MSGDMA <---> DDR3 communication

    Technically I don't see any problem in my code or project and connections realted but why DDR3 communication not working not getting because even MSGDMA registers also in NIOS Debug for both case MSGDMA to onchipmemory and MSGDMA to DDR3 are responding in the same way. But, don't know why writing to DDR3 using MSGDMA is not working. Any idea that you can tell for this...?

    Zip file of the project also has been attached . You can review it once and help us.

    The FPGA kit we are using for this test is available in the following link for your reference.

    https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=205&No=816&PartNo=2

    You can review our design once and help us in correcting it if there is any mistake or error?

    Awaiting for your reply.

    Hope we will get the help soon.