Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHow much ram to allocate for Exception memory?
I'm wondering how big of on-chip memory is recommended if pointing the exception vector to it in qsys/bsp? Is it always a fixed size (like an interrupt vector table), or does it grow dynamicall...
Altera_Forum
Honored Contributor
11 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.