Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Remember 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. --- Quote End --- Ok, that makes a lot more sense now. Im having a bit of an issue with reading the data saved in SDRAM from the 5 MP camera though. I think I will just make a post in the dev kit section as it is not really a NIOS problem anymore. In case someone is very kind, when I read the value of an address from SDRAM and compare it with the value I read from the System Control GUI for the DE2. Typically the first 10 addresses match exactly and the addresses after the values are slightly off. E.g. Address 1 = 4AC04AC on both, but address 122 is 4AD4AB in NIOS window and 4AD4AC in the system control Edit: Instead of my previous problem, is there a way to dump the data from SDRAM other than printing onto the console. I tried dumping into a text file until I realized that the nios II processor has no communication with my laptop. I searched through other posts on the forums but didn't find anything on a data dump,.