cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MuzamilFarid
Adventurer
Adventurer
355 Views
Registered: ‎04-12-2020

Axi dma, s2mm length register

Jump to solution

Dear al

can some one please clarify this confusion

i am receiving stream of data on S2MM channel on stream side and want to store that data in DRAM.

S2MM channel has length register to be configured and its 32 bits but according to documentation minimum number of bits have to be 8 bits and maximum can be 26 bits. It also says the length is in bytes.

i am totally confused, can some one please clarify this confusion.

streaming data that s2mm channel recieves from AXI stream IP is 32 bits. So how should this register be configured. Please help.

0 Kudos
Reply
1 Solution

Accepted Solutions
shengjie
Moderator
Moderator
298 Views
Registered: ‎06-30-2019

Hi @MuzamilFarid ,

 

AXI DMA receives AXI-Stream data from upper IP with 32-bit data width. And S2MM_LENGTH register defines how many 32-bit data it will receive. If you want to transfer 10 32-bit data, then 10*4(40) should be written to S2MM_LENGTH.

As for length of S2MM_LENGTH, it defines the maximun value of S2MM_LENGTH. If you set the length to 8bit in vivado configuration GUI, then the S2MM_LENGTH has maximun value of 255. User can request at most 255 byte data to transfer.

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
shengjie
Moderator
Moderator
299 Views
Registered: ‎06-30-2019

Hi @MuzamilFarid ,

 

AXI DMA receives AXI-Stream data from upper IP with 32-bit data width. And S2MM_LENGTH register defines how many 32-bit data it will receive. If you want to transfer 10 32-bit data, then 10*4(40) should be written to S2MM_LENGTH.

As for length of S2MM_LENGTH, it defines the maximun value of S2MM_LENGTH. If you set the length to 8bit in vivado configuration GUI, then the S2MM_LENGTH has maximun value of 255. User can request at most 255 byte data to transfer.

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
MuzamilFarid
Adventurer
Adventurer
266 Views
Registered: ‎04-12-2020

@shengjie 
got it.

thanks.

0 Kudos
Reply