Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21601 Discussions

The problem of reading the data of the memory

Altera_Forum
Honored Contributor II
1,646 Views

hello! 

i know the address of memory and i want to read the data. 

for example: 

i know the address of SDRAM is 0x01000000, 

what should i do to read the data from the SDRAM. 

 

thanks in advance.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
757 Views

Do you use a SDRAM controller? 

Do you want to access it from a CPU or from custom hardware?
0 Kudos
Altera_Forum
Honored Contributor II
757 Views

yes i have a sdram controller; 

i want to read the data from the address through the application. 

thank you very much.
0 Kudos
Altera_Forum
Honored Contributor II
757 Views

You can use C pointers for that. 

Do you also use the sdram to store the software itself? In that case you'll have to use a memory allocation function, such as malloc(), to allocate a memory area. If not, you can just get the address and size of your memory area from system.h.
0 Kudos
Altera_Forum
Honored Contributor II
757 Views

thank you for your suggestion,i need more consideration.

0 Kudos
Reply