Forum Discussion
Altera_Forum
Honored Contributor
10 years agoWhen building your code, the nios tools print the size of your code as well as how much memory is available for your stack and heap. It's up to you to figure out how much non code memory your application will need. IIRC the NIOS tools come with some memory use measuring tools. You might check the documentation.
A good starting point would be to use a small portion (20-30%) of the on chip memory so that FPGA routing resources aren't used up. Enlarge/shrink to fit your application.