什么是ARM TCM内存 [英] what's ARM TCM memory

查看:1182
本文介绍了什么是ARM TCM内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是ARM处理器TCM存储器,它是驻留旁边,其被配置为TCM ??的RAM处理器或只是一个区域的专用存储器

what is TCM memory on ARM processors, is it a dedicated memory which resides next to the processor or just a region of RAM which is configured as TCM??.

如果它是一个专用的内存,为什么我们配置它的位置和大小?

if it's a dedicated memory, why can we configure it's location and size?.

推荐答案

TCM,紧耦合存储器是一个(或多个),该顾名思义是非常接近CPU的小型专用内存区域。它的主要优点是,该CPU可以访问TCM每个周期。相反,普通内存没有介入的高速缓存,这使得所有的内存访问predictable。

TCM, Tightly-Coupled Memory is one (or multiple) small, dedicated memory region that as the name implies is very close to the CPU. The main benefit of it is, that the CPU can access the TCM every cycle. Contrary to the ordinary memory there is no cache involved which makes all memory accesses predictable.

主要采用中医是存储性能的关键数据和code。中断处理程序,对于实时任务和OS控制结构的数据是一个常见的​​例子

The main use of TCM is to store performance critical data and code. Interrupt handlers, data for real-time tasks and OS control structures are a common example.

如果它是一个专用的内存,我们为什么可以配置
  它的位置和大小。

if it's a dedicated memory, why can we configure it's location and size

使之成为可配置只会地址的所有内存解码复杂化,同时仍对一个固定的地址范围内没有真正的好处访问。因此,它可能是更容易和更快,只要将中药以一个固定的地址。

Making it configurable would just complicate the address decoding for all memory accesses while giving no real benefit over a fixed address range. So it was probably easier and faster to just tie the TCM to a fixed address.

顺便说一句,如果你的工作,有一个中医的系统上并没有使用它,试着将你的筹码存在。这通常让你的性能增益的百分之一些免费的,因为所有的堆栈存储器存取现单周期,不要再污染数据高速缓存。

Btw, if you are working on a system that has a TCM and you aren't using it yet, try placing your stack there. That usually gives you some percent of performance gain for free since all stack memory accesses are now single cycle and don't pollute the data-cache anymore.

这篇关于什么是ARM TCM内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆