MPC5777C External RAM read/write speed

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

MPC5777C External RAM read/write speed

跳至解决方案
2,679 次查看
1620773328
Contributor II

Hello

I have two question about MPC5777C platform.

Q1How to improve external SRAM read/write speed

We extended a piece of SRAM(CY7C1480BV33-167AXI) into our design. The r/w speed is not fast as expected. Did i miss some configurations?

Time cost :1320us, 10KB data copy (byte rw).from external sRAM to external sRAM

The project configuration shows blow.

(1) Enable MMU, Enable DCache and ICache

(2) EBI:66Mhz CLK\32bit mode

1620773328_0-1599530396547.png

(2) MMU:Enable Cache for external RAM and internal RAM

微信截图_20200906115342.png

Q2: Is there any example test to determine if the CPU running at highest speed?

We want to know CPU capacity.

 Regards,

Jinus

标签 (1)
0 项奖励
回复
1 解答
2,670 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, The configuration seems to be correct. You should test performance ideally with 64-bit aligned burst accesses.

You can measure CLKOUT frequency by scope as easiest scope.

Otherwise I can offer clock configurator:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Excel-MPC5777C-clock-configurator/ta-p/1112260

 

在原帖中查看解决方案

3 回复数
2,671 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, The configuration seems to be correct. You should test performance ideally with 64-bit aligned burst accesses.

You can measure CLKOUT frequency by scope as easiest scope.

Otherwise I can offer clock configurator:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Excel-MPC5777C-clock-configurator/ta-p/1112260

 

2,659 次查看
1620773328
Contributor II

Hi,

Thanks very much!

Yes, the CLKOUT configuration was incorrect. The rw speed has great improved after set sram clock to 66Mhz.

I have a new question about cache. Whether writing external or internal RAM, The writing costs should be identical if cache was enabled and has enough memory to hold the data. My test result shows blow.

Why these two platforms behave differently?微信截图_20200911103131.png

 

Regards,

Jinus

0 项奖励
回复
2,645 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

If cache access is configured as write-through (it is being chosen firstly in the MMU TLB and secondly in the cache configuration itself) then write goes directly to the target memory. By default and typically write-through mode is used because it removes potential coherency issues.

If you want basically test only cache write access time, choose copy-back mode.

0 项奖励
回复