why instruction accesses add one wait state at the core?

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

why instruction accesses add one wait state at the core?

1,369 次查看
Ahmad_bozorgi
Contributor II

Hi.

I have 2 question about memory,

1.why instruction accesses add one wait state at the core?

2. why backdoor access to SRAM (L or U) needs "Minimum two cycles for  read and one cycle for write"? is that correct "if we use DMA as a master for access data in SRAM, speed will be decreased"?

 

Thanks.

0 项奖励
回复
4 回复数

1,362 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Ahmad,

1.

Could you elaborate?

Instructions can be fetched from the Cache, SRAM or from the Flash module via the Crossbar switch.

2.

The DMA accesses SRAM through the Crossbar switch, it can't access SRAM directly like the core.

danielmartynek_0-1601995088351.png

 

Regards,

Daniel

1,318 次查看
Ahmad_bozorgi
Contributor II

Thanks for your kind reply.

Thanks for kind reply. why read wants more cycle rather than read?

0 项奖励
回复

1,355 次查看
Ahmad_bozorgi
Contributor II

Thanks for reply. 

1. in "AN4745" it mentioned:

an4745.JPG

Core has access to SRAM_U from System bus which its speed is like I/D Bus. so Where does this delay come from?

 

2. it RM says that crossbar connect masters to slaves simultaneously, so there is should not be delay! (in my opinion). you say because of the crossbar, DMA access speed to SRAM, will be less than Core? (i.e. Core clock = 80MHz, sys_clk = 80MHz, DMA access clock will be 80MHz or less?)

0 项奖励
回复

1,336 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Ahmad,

To both the questions, this is not about the clock but the architecture.

1.

You may refer to this thread:

https://community.nxp.com/t5/Kinetis-Microcontrollers/Internal-SRAM-wait-states/m-p/386848

2.

I see you meant something different.

danielmartynek_0-1602162581235.png

But anyway, there is arbitration in the crossbar switch and in the SRAM controller which can delay the access.


Regards,

Daniel

0 项奖励
回复