Forum Discussion
Altera_Forum
Honored Contributor
15 years agocache size estimation
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? ...
Altera_Forum
Honored Contributor
15 years agoThe 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.