Forum Discussion

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

sdram and other memories

hello everyone

can any one guide me how to use the SDRAM or any other memory .

how can i write the program to access it..

can i access through c-program where i write my custom instruction..

and can i access any memory both by c-prog and h/w block(custom instruction)

bye

3 Replies

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

    Yes, to all questions. I would advise going through both the HW and SW tutorials, prior to trying anything else.

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

    --- Quote Start ---

    originally posted by ramesh_8051@Aug 16 2005, 04:18 AM

    how can i write the program to access it..

    can i access through c-program where i write my custom instruction..

    and can i access any memory both by c-prog and h/w block(custom instruction)

    --- Quote End ---

    It's going to look like any other memory, no special instructions needed.

    As for Nios2 custom instructions, they live in the ALU and don't access memory themselves; the Nios2 CPU handles the memory access.

    Did you mean custom hardware, like custom DMA peripherals? Custom hardware (Avalon bus masters) will see the SDRAM like any other memory. Additionally, custom hardware can take advantage of pipelined reads to increase bandwidth for block transfers; those details are in the Avalon Bus Specification, avazilable on the Altera web site.