Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
775 Views

cache 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? 

 

Thanks ...
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
39 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