Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to fill SDRAM with dummy values
I am working with the Altera DE2 board and want to use the SDRAM to store pictures. I fill my SDRAM chip with a dummy value (all x00 or xFF) and when I see a value that is different I know that is wh...
Altera_Forum
Honored Contributor
14 years agoRemember your C.
Accesses via pointers and array indexing are interchangeable. So buffer[n] is absolutely equivalent to *(buffer + n) and to n[buffer] for that matter! Although your SDRAM chip might be 4M by 16bits, it will be accessed as 2M by 32bits. All this also assumes that you code is running from the fpga's internal memory blocks, if your program (etc) is loaded into the SDRAM you will be overwriting your code.