Tightly-Coupled Memory
TCM(Tightly-Coupled Memory),紧耦合内存,位于SOC内部的片上存储区域,具有极低的访问延迟。类似于Cache,TCM也分为L1TCM和L2TCM。根据存储对象,TCM通常也分为ITMC和DTCM。在使用上,TCM与RAM具有相似的特征。
TCM适用对象
TCM is used for a few things:
- FIQ and other interrupt handlers that need deterministic
timing and cannot wait for cache misses. - Idle loops where all external RAM is set to self-refresh
retention mode, so only on-chip RAM is accessible by
the CPU and then we hang inside ITCM waiting for an
interrupt. - Other operations which implies shutting off or reconfiguring
the external RAM controller.
TCM适用于以下场景:
- 快速中断,或其它不能接受Cache miss或需要确定执行时间的中断处理程序
- 当芯片进入低功耗模式时,RAM进入自刷新模式不可访问,只有TCM可以访问,IDLE进程需要在TCM中运行等待中断
- 其他需要在RAM不可访问阶段执行的程序