TC377 Cache Ram and cache Tag Ram

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
FD_aurix
Level 5
Level 5
100 sign-ins 100 replies posted 5 solutions authored
Hi all

I'm trying to figure out how the Cache Ram and Tag cache Ram is intended to work. (Program Cache TAG RAM, Data Cache TAG Ram, Data Cache ram etc). There is some reference?

These RAM section are automatically used by the uC or need to be explicitily "invoked" into the code/linker?

Br
Francesco
0 Likes
3 Replies
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
Cache Ram and cache Tag Ram are used automatically when the cache is switched on (default) and an access to any cached address occurs. There is nothing to define in linker script file for this memory. Please note that Cache Ram and Cache Tag Ram are not directly accessible by any CPU or debugger.
0 Likes
FD_aurix
Level 5
Level 5
100 sign-ins 100 replies posted 5 solutions authored
Thanks Mod for your reply. Where I can get some more information on when is better to use this features (cache/not cached) and when is better to avoid to use it?
You wrote it is not diretly accessibly by the any CPU so who will use these ram section? S
0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
You should always use the cache (increase execution speed). Therefore the cache is enabled per default. Using cache should be avoided for variable which are used by different CPUs or with DMA. Such variables should be places in non cached area.
Not directly accessible by the CPU means that the CPU can't be access this memory via any address. If the cache is enabled then the CPU use this Rams but can't read directly the content via any address.
0 Likes