Forum Discussion
Altera_Forum
Honored Contributor
14 years agoaccess to every address of SDRAM
I have a problem with reading and writing data on SDRAM, I need to access every address of SDRAM, this is my C code written for Nios: # include <stdio.h> # include <io.h> # define BASE_SDR...
Altera_Forum
Honored Contributor
14 years agoHi,
the byte or word access has nothing to do with the sopc builder settings of the SDRAM. This is a software issue. You can access the RAM bytewise using this : volatile unsigned char *pbRAM = (unsigned char *) (0x80000000 | SDRAM_BASE); With pbRAM[6000] you can access byte 6000 in the SDRAM. Regards, HJS