Forum Discussion
Altera_Forum
Honored Contributor
12 years agoRead Write to DRAM (main memory)
I am just switching from another fpga to altera. Could you please tell me is this the write way to access main memory. main_memory = (char *) DDR2_SDRAM_BASEADDR; // base address of main...
Altera_Forum
Honored Contributor
12 years agoWell if you are sure that this memory section is never used by other parts of the software, then you can do it this way. If the memory buffer is shared with some hardware (a DMA for example) then remember to flush the cache before the hardware accesses the memory, or use uncached access through alt_remap_uncached()