Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Writing Data In SDRAM

Altera_Forum
Honored Contributor II
1,765 Views

Hello everyone, 

 

I've used some VHDL before but I need help understanding how to write data into SDRAM. I'm currently using Quartus II 11.0 and DE0-Nano. I just need a sample VHDL with some comments in it and I'll try to figure the rest of the stuff. Any help would be appreciated. Thanks.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
687 Views

Are you using SOPC builder?

0 Kudos
Altera_Forum
Honored Contributor II
687 Views

Yes, but I also have access to Qsys. Also, I'm not only limited to the DE0-nano board but also have DE0, DE1, and DE2. If you can help me with any of those boards I would really appreciate it.

0 Kudos
Altera_Forum
Honored Contributor II
687 Views

What is the source of the data and how fast do you need to write the data into the memory?

0 Kudos
Altera_Forum
Honored Contributor II
687 Views

I suggest to have a look at the Avalon specifications and especially the memory mapped master interface. You can write a component in VHDL that uses this interface to access memory, and add it to your SOPC/QSys project.

0 Kudos
Altera_Forum
Honored Contributor II
687 Views

I have to hook some meteorological sensors (digital) to the DE0-Nano and store the data in SDRAM. The board is to read the data every 5 seconds. It will run for approximately 10 mins.

0 Kudos
Altera_Forum
Honored Contributor II
687 Views

Are you sure VHDL is the right solution then? If you have an embedded CPU it may be easier to so it by software, as you have such a low frequency. 

What kind of interface do you have to your sensors?
0 Kudos
Reply