Forum Discussion

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

Help using SDRAM!

Hi, I'm creating a project on the DE2 Educational Board which has to display images in 256 colors and a resolution of 640x480 on a screen. However I don't know how to use de SDRAM (which has 8 Mb) without using NIOS. Could please someone post an example of this???

Thanks.

3 Replies

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

    Hello.

    I also make a progect with image processing in resolution 640*480,using sdram,but I just started learning sdram.

    If you have some explanation how to use it,or examples,

    I'll appreciate if you could send to me.

    Thank you,

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

    Hi,

    I have a working sdram vhdl controller. But it is meant for the device MT48LC2M32B. It is too big and involved and was used for some deep interleaving. I chopped off to leave a demo which may/may not work but should give you some idea about sdram in general.

    The demo module writes 128 bits of input data to sdram which has a 32bit bus,then reads it back. It needs row/column address as input to control the functionality as required. The sdram module must be fast enough to accomodate all states of the design per data clock cycle. The sdram clock and data clock domains must be related(153.6/8.53333... = 18 exactly)

    You will need to get the datasheet for above device to understand the vhdl.

    edit:you also need to connect the sdram datain/out to the one bidirectional bus. For readability I left the correct row/column addressing to you.