Forum Discussion

Yogesh's avatar
Yogesh
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

How to write/read data to DDR in NIOS II eclipse tool ?

suppose I have an array of data as below

array[10000] = {1,2,3,4,5...................10000};

How to write this data in 10000 address locations of DDR?

Please reply with a sample code

4 Replies

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

    Hi Yogesh!

    The way for doing this depends on what you're using :

    Do not hesitate to let me know any questions you may have .

    Regards!

    -Eliath Guzman

    • Yogesh's avatar
      Yogesh
      Icon for Occasional Contributor rankOccasional Contributor
      Hi Eliath,
      I am interested in the 2nd design (FPGA DDR)which you mentioned.
      I went through the design provided by you . But I didn't find the c code( NIOS eclipse code) which is used to store data in DDR .Am I seeing something wrong?
      I just want to understand (code wise) how data is written to FPGA DDR using Eclipse c code.
      Please guide me.

      Thankyou
      Regards
      Yogesh
      • Yogesh's avatar
        Yogesh
        Icon for Occasional Contributor rankOccasional Contributor

        document of 2nd link(FPGA DDR) is not accessable.

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

    Hi Yogesh,

    Hoping you're doing well, I wonder if I can close this thread,

    I found another post of you with almost the same question and I've seen

    my colleague gave you a solution.

    Is there anything else I can do for you?


    Best regards,

    -Eliath