Altera_Forum
Honored Contributor
16 years agoNIOS with DDR as Main Memory
Hello everyone,
I am attempting to use the DDR memory as the main memory for the NIOS core. As such, I decided to enable burst transfers for the processor. I have a couple of questions regarding the burst transfers: 1. Are there any constructs to ensure that an arbitrary piece of data (for example a variable of array type) will be transfered in burst mode? - This question relates to blocks of data that I expect to write to the DDR memory. Currently I am using a for loop, but I am not sure if the compiler is smart enough to burst the data in to increase throughput. Perhaps there is a construct that will give the compiler a hint? 2. What if I decide to instead use a standard RAM block for the CPU's main memory, but connect a DDR SDRAM as another data master. Does the compiler know how to optimize the data transfers, especially if I am writing arrays of data into memory, which would naturally work well for bursting? Any insight would be very useful and will enable me to increase my performance. The previous alternative was to disable burst transfers to the DDR which resulted in millions of cycles just to write 4096 bytes of data to the DDR. Thanks