Forum Discussion

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

FPGA to SDRAM AXI Transfer

Hello,

I'm doing a project with Arria V SoC using the HPS and FPGA parts. In the FPGA, I have a custom IP with AXI Master interface on it.

This IP should read and write from/to the SDRAM directly. However, I can only do read operation! The write operation does not work.

The data in SDRAM is provided by HPS (running Linux). For now, I'm using /dev/mem to write the data to the SDRAM.

Using the same method, I found that the data is never written from FPGA.

1. Can you help me with this issue? Anyone has already done a work using AXI and SDRAM?

2. In Qsys, my AXI master should be connected to the SDRAM, right? Did I do some mistake? I connect it to f2h_sdram0_data, not f2h_axi_slave on hps_0.

3. Is there any configuration that I need to do in the AXI to perform read and write?

Thank you so much for your help.

4 Replies

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

    Never mind. Found it.

    --- Quote Start ---

    Hello,

    I'm doing a project with Arria V SoC using the HPS and FPGA parts. In the FPGA, I have a custom IP with AXI Master interface on it.

    This IP should read and write from/to the SDRAM directly. However, I can only do read operation! The write operation does not work.

    The data in SDRAM is provided by HPS (running Linux). For now, I'm using /dev/mem to write the data to the SDRAM.

    Using the same method, I found that the data is never written from FPGA.

    1. Can you help me with this issue? Anyone has already done a work using AXI and SDRAM?

    2. In Qsys, my AXI master should be connected to the SDRAM, right? Did I do some mistake? I connect it to f2h_sdram0_data, not f2h_axi_slave on hps_0.

    3. Is there any configuration that I need to do in the AXI to perform read and write?

    Thank you so much for your help.

    --- Quote End ---

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

    --- Quote Start ---

    Never mind. Found it.

    --- Quote End ---

    If you post your solution it can help others in the future, who will most likely be very grateful!
  • MSene1's avatar
    MSene1
    Icon for New Contributor rankNew Contributor

    Hi,

    I am reopenning this issue because I am having the same problem.

    Only my read interface is working but the write doesn't work.

    If someone knows the solution I would be thankful.

    thank you for your help