Cache Allocation Workflow
The following diagram provides an overview of the steps for reducing cache misses in your real-time application.

Steps:
- Use the Cache Configurator to reserve a portion of cache calledsoftware SRAMwith specific properties (size, memory access latency, and CPU core) based on the requirements for the buffer that real-time applications will allocate through the cache allocation library.Optionally:partition the remaining cache among other agents, such as GPU and I/O.
- Prepare your real-time application to execute with specific CPU affinity based on the cache region reserved in step 2. For details, see Specify CPU Affinity of the Real-time Application.Software SRAM buffers in the L3 cache can be accessed from any core. Software SRAM buffers in the L2 cache must only be accessed by a core local to the cache instance.
- Use Cache Allocation Library APIs in your real-time application to allocate memory in the cache region reserved in step 2.