Forum Discussion
Altera_Forum
Honored Contributor
15 years agoURGENT: IOWR problem
hello, i have a problem writing data into sdram on de2 board. when i generate 10 numbers (0-9) and write into sdram, it works fine. if i generate 100 numbers (0-99), it has a problem. here is my code...
Altera_Forum
Honored Contributor
15 years agoAs Daixiwen said, there's normally no reason to use IOWR/IORD to access SDRAM. Anyway, if you really want to use IOWR you must be sure you are writing to a free ram area; you can do something like this:
int sdram_array;
for(x = 0;x < 100; x++){
IOWR(SDRAM_BASE, &sdram_array, x);
/* this is equivalent to sdram_array = x */
} Cris