Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- I'm looking into your solution 3 with the memory buffer, instead of writing directly to the SDRAM. Will the linker utilize the SDRAM for storing the buffer? We are trasmitting images from the pc, so the buffer needs to contain up to 1920x1080 8-bit pixelvalues. Are there any problems with using a buffer of this size? --- Quote End --- I just tested this in my project with a 2000x4000 char buffer and I hadn't any problem. I recommend to define the buffer as a global variable or as static variable inside the function, otherwise I think the compiler would try to allocate it runtime on the stack! To be sure the buffer resides in sdram, open the system Library properties and make sure that sdram (or whatever name you used in sopc builder for ddr2) is selected for r/w data memory section.