Forum Discussion

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

Writing to SRAM/SDRAM on DE-2 board ?

Hi all,

I've been working on the Digital Camera Development Kit with a DE-2 Board and a Cyclone II FPGA, and I'd like to write data that comes out of the camera, to the SRAM or SDRAM.

I saw that it could be possible by emulating a CPU called Nios-II in the FPGA.

My question is simple : is it possible to have access to the memory without this tool and without the SOPC Builder stuff ?

My worry is that I may have to work on a different FPGA later and I may have to re-use my VHDL code on another platform, and at first glance I thougt that it wouldn't be possible if I used the Nios-II processor.

Thanks for helping !

Best regards,

Antoine

11 Replies

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

    --- Quote Start ---

    @ismagine:

    here is the function to write and read from sdram

    IOWR(SDRAM_BASE+address,my_data)

    IORD(SDRAM_BASE+address)

    you set 'address' value with the index or offset and 'my_data' is the value you want to store

    i found these in this forum too, but i forget in which thread

    hope it can help you

    --- Quote End ---

    thank you Mikio