Forum Discussion
Altera_Forum
Honored Contributor
17 years agoyou can try to make a pointer that points to the start address you want to write to (somewhere in the address span of the SDRAM).
Then issue memcpy with source and destination pointers. See documentation of memcpy. Or, you can do a loop manually : short* psrc = xxxx //location of the source data short* pdst= yyyy //some address in the SDRAM address space you need to write to for (int k=0; k < 640*480; k++) *pdst++ = *pscr++ If you don't understand this, please try to get some experience on C/C++ first. Stefaan