UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
302 Views
Registered: ‎06-22-2018

AXI DMA get data size actually transferred

Jump to solution

I'm using the PS side DMA in Zynq 7020. Becuause my PL side may terminate the transfer earlyer by asserting the TLAST signal. So I want to know when the "XAxiDma_SimpleTransfer()" return, how many bytes it has transferred.

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
281 Views
Registered: ‎07-17-2014

Re: AXI DMA get data size actually transferred

Jump to solution

Oooo - lucky since you're bare metal. Hahah. It's a little weirder in Linux.

Anyway - did you look at the AXI DMA Datasheet?

There's a register that states how many bytes got sent...

Given that you haven't provided a lot of details -- or shown your implementation...

If you look at register 0x28 -> MM2S_LENGTH or 0x58 -> S2MM_LENGTH

I think those might be what you want. I'm looking at PG021 on PDF page 15/16 (but I'm also looking at the v7.1  Ap1 1, 2015 version. Might be on a different page with a newer verion of the guide.)

View solution in original post

1 Reply
Explorer
Explorer
282 Views
Registered: ‎07-17-2014

Re: AXI DMA get data size actually transferred

Jump to solution

Oooo - lucky since you're bare metal. Hahah. It's a little weirder in Linux.

Anyway - did you look at the AXI DMA Datasheet?

There's a register that states how many bytes got sent...

Given that you haven't provided a lot of details -- or shown your implementation...

If you look at register 0x28 -> MM2S_LENGTH or 0x58 -> S2MM_LENGTH

I think those might be what you want. I'm looking at PG021 on PDF page 15/16 (but I'm also looking at the v7.1  Ap1 1, 2015 version. Might be on a different page with a newer verion of the guide.)

View solution in original post