SRAM vs ITCM VS DTCM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SRAM vs ITCM VS DTCM

跳至解决方案
6,353 次查看
Yellow
Contributor I

Hello,

I'm using S32Kx, i can see there are 3 different RAM. SRAM/ITCM/DTCM. i have few question related to this.

1. what is the Difference between SRAM vs ITCM vs DTCM?

2. if all are RAM why there is difference?

3. what kind of data we can store this RAM's(each)?

4. why this 3 different type of RAM Required?

 

S32K3 

 

 

0 项奖励
回复
1 解答
6,313 次查看
RomanVR
NXP Employee
NXP Employee

Hi @Yellow 

1. What is the Difference between SRAM vs ITCM vs DTCM?
SRAM (Static Random Access Memory) is a type of memory with the purpose of storing and accessing data.
ITCM (Instruction Tightly Coupled Memory) is a type of memory which has a dedicated connection to the core and addressed to use with instructions directly
DTCM (Data Tightly Coupled Memory) is a type of memory similar to ITCM with a dedicated connection to the core but addressed to use with data.


2. If all are RAM why there is difference?
SRAM do not have a dedicated connection to the core, therefore, since ITCM and DTCM have a dedicated connection, access time to both memories is reduced to 1 clock cycle.


3. What kind of data we can store in each RAM?
You can store any kind of your code date in SRAM, however, since ITCM and DTCM are fast access memories, ideally you would use DTCM to store critical variables and frequently updated variables, and ITCM to access critical functions, routines and ISRs.


4. Why this 3 different type of RAM required?
ITCM and DTCM are features with the main purpose to exploit them in real time operating systems thanks to their fast access characteristic, so SRAM can be given a RAM common use.


For more information about S32K3xx family memory types, we provide Memories Guide application note which explains this topic in detail. It can be downloaded from: S32K3 Microcontrollers for Automotive General Purpose > Documentation > AN13388: S32K3 Memories Guide - Application Note.

Have an excellent day! - RomanVR.

 

Best Regards!

在原帖中查看解决方案

1 回复
6,314 次查看
RomanVR
NXP Employee
NXP Employee

Hi @Yellow 

1. What is the Difference between SRAM vs ITCM vs DTCM?
SRAM (Static Random Access Memory) is a type of memory with the purpose of storing and accessing data.
ITCM (Instruction Tightly Coupled Memory) is a type of memory which has a dedicated connection to the core and addressed to use with instructions directly
DTCM (Data Tightly Coupled Memory) is a type of memory similar to ITCM with a dedicated connection to the core but addressed to use with data.


2. If all are RAM why there is difference?
SRAM do not have a dedicated connection to the core, therefore, since ITCM and DTCM have a dedicated connection, access time to both memories is reduced to 1 clock cycle.


3. What kind of data we can store in each RAM?
You can store any kind of your code date in SRAM, however, since ITCM and DTCM are fast access memories, ideally you would use DTCM to store critical variables and frequently updated variables, and ITCM to access critical functions, routines and ISRs.


4. Why this 3 different type of RAM required?
ITCM and DTCM are features with the main purpose to exploit them in real time operating systems thanks to their fast access characteristic, so SRAM can be given a RAM common use.


For more information about S32K3xx family memory types, we provide Memories Guide application note which explains this topic in detail. It can be downloaded from: S32K3 Microcontrollers for Automotive General Purpose > Documentation > AN13388: S32K3 Memories Guide - Application Note.

Have an excellent day! - RomanVR.

 

Best Regards!
%3CLINGO-SUB%20id%3D%22lingo-sub-2007088%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESRAM%E3%80%81ITCM%E3%80%81DTCM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2007088%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20S32Kx%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%88%B0%E6%9C%89%203%20%E4%B8%AA%E4%B8%8D%E5%90%8C%E7%9A%84%20RAM%E3%80%82SRAM%2FITCM%2FDTCM%E3%80%82%E6%88%91%E5%AF%B9%E6%AD%A4%E6%9C%89%E5%87%A0%E4%B8%AA%E7%96%91%E9%97%AE%E3%80%82%3C%2FP%3E%3CP%3E1.%20SRAM%E3%80%81ITCM%20%E5%92%8C%20DTCM%20%E4%B9%8B%E9%97%B4%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB%EF%BC%9F%3C%2FP%3E%3CP%3E2.%20%E5%A6%82%E6%9E%9C%E9%83%BD%E6%98%AF%20RAM%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BC%9A%E6%9C%89%E5%B7%AE%E5%BC%82%EF%BC%9F%3C%2FP%3E%3CP%3E3.%E6%88%91%E4%BB%AC%E5%8F%AF%E4%BB%A5%E5%AD%98%E5%82%A8%E8%BF%99%E4%BA%9B%20RAM%EF%BC%88%E6%AF%8F%E4%B8%AA%EF%BC%89%E4%BB%80%E4%B9%88%E6%A0%B7%E7%9A%84%E6%95%B0%E6%8D%AE%EF%BC%9F%3C%2FP%3E%3CP%3E4.%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E8%BF%99%203%20%E7%A7%8D%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B%E7%9A%84%20RAM%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K3%2Fpd-p%2FS32K3%22%20class%3D%22lia-product-mention%22%20data-product%3D%221688-1%22%20target%3D%22_blank%22%3ES32K3%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2008402%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ASRAM%E3%80%81ITCM%E3%80%81DTCM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2008402%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229600%22%20target%3D%22_blank%22%3E%40Yellow%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20SRAM%E3%80%81ITCM%20%E5%92%8C%20DTCM%20%E4%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