This document gives a basic introduction to configuring different IPs, which is part of OptiFlash.
RL2 is, basically, an L2 cache controller. Highlighting the controller
keyword here, because, unlike the L1 cache controller, which has internal cache memory, RL2 does not have internal cache memory. RL2 needs to be configured, and a part of On-chip SRAM needs to be assigned for RL2 cache memory.
There are three configurations that are largely needed:
Before configuring RL2, 1st requirement is to allocate a part of L2 memory as cache bank. To do this:
Memory Region
:
Make sure that size of the memory region is more than the size of the cache that is required for the application. Here, since it is required to have 128KB of application, therefore, the size of this memory region L2_CACHE_BANK
has been set to 128KB.
Now once memory region has been created, RL2 can now be configured and its configuration can be done from syscfg as follows:
By selecting Layer2 Cache
from the OptiFlash
drop-down, the above configurations come:
External Flash cached region start address
and External Flash cached region end address
define the range of addresses that need to be cached in L2 Cache.Size of cache
is the size of L2 cache that is required to be configured.L2_CACHE_BANK
which was configured above. Similarly, if some other cache size has to be selected then the size of the cache bank has to be changed correspondingly.FLC is a simplified DMA. To configure FLC, in syscfg, it can be done by clicking to the Fast Local Copy
nav menu item under OptiFlash drop down menu at the bottom.
Use Add
button to to add FLC instances. For am263px case, there are a total of 4 FLC instances per R5 core. All info that needs to be given is source address, destination address and size. Make sure that all these fields are 4K aligned.
Region base address translation or RAT can be configured using the following fields.
Region Size
: Size of RAT region.
Region Base Address (hex)
: Size aligned base address
Region Translated Address (hex)
: Size aligned translated address