cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xilinxcocuk
Adventurer
Adventurer
241 Views
Registered: ‎11-06-2020

Questions to AXI DMA

Hello, I have a 12 Bit ADC. I want to write the incoming data to the Arty S7s DDR3. I am using a FIFO to buffer the data, the FIFO is connected to the AXI DMA IP. 
I looked up the AXI DMA documentation and it says when not using "Scatter Gather Engine" a destination adress inside the DDR3 will be specified, where my ADC data is stored. I am not really sure where the destination adress is. But I think it should be 0x80000000?

FrageDMA.PNG

 

Where can I see the destination adress (S2MM from AXI DMA to DDR3)?

 

 

 

Thank you!

Tags (3)
1 Reply
abouassi
Moderator
Moderator
123 Views
Registered: ‎03-25-2019

Hi @xilinxcocuk,

First check how the DMA is programmed in Simple mode, by reading the "Programming Sequence > Direct register Mode" of PG021:

abouassi_0-1627923975556.png

abouassi_1-1627923986249.png

As you could see, the destination address should be set on S2MM_DA.

From Table 2-6, you can see the offset of the S2MM_DA, which is 0x48:

abouassi_2-1627924178765.png

abouassi_3-1627924224262.png
The S2MM_DA address will be the DMA base address + this offset.
From the screenshot you sent, the DMA base address is 0x41E0_0000:

abouassi_4-1627924336978.png

So, S2MM_DA address is 0x41E0_0048.

 

Best regards,
Abdallah
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos