why instruction accesses add one wait state at the core?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why instruction accesses add one wait state at the core?

1,345 Views
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 Kudos
Reply
4 Replies

1,338 Views
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,294 Views
Ahmad_bozorgi
Contributor II

Thanks for your kind reply.

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

0 Kudos
Reply

1,331 Views
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 Kudos
Reply

1,312 Views
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 Kudos
Reply