Forum Discussion
Altera_Forum
Honored Contributor
15 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