NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Cache Visualization

From Texas Instruments Wiki
Jump to: navigation, search

This topic gives technical details on usage of how to visualize cache effects with both the Simulator and XDS560 Trace.

Download the presentation at SystemLevelCacheVisualization08.pdf

Topics

  • Cache Effect Analysis with XDS560 Trace
  • Cache Analysis with Simulation Tools
  • System Level Cache Optimization

Note you can use the Advanced Event Triggering to collect basic cache information in counters built onto selected devices. See: Unified Breakpoint Manager

Q: CacheTune General Adivce

CacheTune is a new tool that helps the developer attain high levels of cache efficiency by addressing the issues in cache visualization, analysis and optimization. It graphically visualizes program and data cache accesses over time, which enables quick and effective reorganization of non-optimal cache utilization. The tool also provides proactive advice in guiding the developer to analyze the memory accesses patterns and tune the cache memory subsystem to meet performance goals.
You may manually open the CacheTune adivce window by selecting the menu item under CCS-> Profile ->Tuning->CacheTune.
This application reports SPRA001 introduces the CacheTune tool development flow to tune your application for a high level of cache efficiency.
For more information on CacheTune, you can also refer to CCS contextual help
 

Q: Is cache coherence automatically maintained between external memory and L2 cache?

When external memory caching is enabled, the cache controller does not maintain coherence between the external memory and L2/L1 cache. It is the responsibility of the user to maintain this coherence. CPU accesses will see the contents of cacheable external memory through the L1D and L2 cache. The values held in cache may not match what is held in external memory. Since the cache controller does not maintain coherence, the CPU may not see the same data as a peripheral or DMA would if it accessed the same address in external memory. If and when required, coherence between CPU and peripheral accesses to external memory can be achieved by manually issuing cache coherence commands to the cache controller.

This application report SPRU656 explains the fundamentals of memory caches and describes how to efficiently utilize the TMS320C6000 DSP two-level cache-based memory architecture. It shows how to maintain coherence with external memory, how to use DMA to reduce memory latencies, and how to optimize your code to improve cache efficiency.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Cache Visualization here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Cache Visualization here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Cache Visualization here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Cache Visualization here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Cache Visualization here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Cache Visualization here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Cache Visualization here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Cache Visualization here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Cache Visualization here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity