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++

cache size estimation

Altera_Forum
Honored Contributor II
817 Views

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
Altera_Forum
Honored Contributor II
81 Views

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.
Reply