Forum Discussion
Altera_Forum
Honored Contributor
16 years agoMp3 decoder too slow on NiosII
Hi,all I'm now designing a mp3 player for DE2 board, which use libmad for mp3 decoding. But currently, the speed is too slow for real time playing. The core is NiosII fastest core,i cache=8kb, ...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Thank you. I shall try -O3 or -O2 again. I don't know how to create onchip RAM and move any function to it. I just know how to add the onchip RAM componet to the system using SOPC, what else should I do? --- Quote End --- Use this before functions going into onchip ram:
void function(void) __attribute__((section(".onchip_mem")));
void function(void)
{
}
Of course onchip_mem has to match the name used in SOPC. Bill