DMA with 5472 - performace

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

DMA with 5472 - performace

1,969 次查看
martinw
Contributor III
Hi,

I'm using dma on a 5472 to transfer data from memory to memory, using single buffer dma.

I want to know what performance I can expect doing this.  I seem to get around 590nS per long transfer. 

CPU clock input is 50MHz, flexbus is 50MHz, internal bus 100MHz, core is 200MHz.

I've tried sram to sram, both on flexbus - 16 bits wide, each 16 bit transfer was around 580nS.

I've tried SDRAM to graphics memory on the flexbus, 32 bits wide, each transfer again around 590nS.

Is this the best I can expect?  I was hoping for much faster.

Is there anything I can do to improve performance?  Is it possible to modify the bus arbitration so that the dma controller gets more bandwidth?

Cheers

MartinW
标签 (1)
0 项奖励
3 回复数

294 次查看
JWW
Contributor V
MartinW,

Can you give us some additional details on your test setup.  My first guess, without seeing a lot of detail is that you have the waitstates on the FlexBus set too high.  The FlexBus can be a fast bus, if configured correctly, but also can be very slow if you are not careful.

If the only thing going on in the system is a DMA copy, then this number seems really large.  Even if you have other things going on, this seems a bit large.

How are you configuring the DMA? 

-JWW
0 项奖励

294 次查看
martinw
Contributor III
Hi JWW,

When doing the 16 bit sram to sram copy, I was looking at the read and write lines using a logic analyser - both read and write pulses were around 60nS, but there was a huge gap between the write and the next read.

My dma test function does a call to StartDMA, then sits and reads the dma status until it is 'done'.

I'll get the setup information together and post it here later this morning.

Thanks for your help

Cheers

Martin W


0 项奖励

294 次查看
martinw
Contributor III
Hi JWW,

I've attached some c code showing the chip select initialisation for the sram, and the dma calls used.

I've also attached a diagram of the signals measure on the actual sram device.

Please let me know if you need any more information.

Regards

Martin W


Message Edited by martinw on 2007-09-14 09:39 AM
0 项奖励