Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

cache size estimation

Honored Contributor II

Our application size is around 120 KB. 


I would like to know the general rules while fixing the cache sizes (both Instruction and Data cache). What parameter should I be taking into account? 


Thanks ...
0 Kudos
1 Reply
Honored Contributor II

The size of the working set of your program, and how fast you need it to execute! 

If you are using internal memory, then make it all 'tightly coupled' and remove the caches completely (you might need a minimal i-cache for boot/jtag debug). 

You'll need to fiddle with the linker script to get the readonly data out of the code memory. 

If you are using gcc4 you have a problem because any jump tables (for switch statements) get placed in the code area - this can only be fixed by rebuilding gcc.