Write to host DDR on EC2 F1 Instance

0

Is there any utility in the aws-fpga github repository that helps transfering data to host DDR memory? I would like to use a DMA in the FPGA to transfer data directly to the host using the "S_AXI_PCIM" interface instead of writing the data to the FPGA DDR memory and then read that data from the host. Enter image description here

I'm wondering if there is any utility provided that helps with this or I must develop a linux driver from scratch in order to get the physical address in host DDR where the FPGA DMA can write to.

Thanks in advance. Ismael.

iperez
asked a year ago274 views
2 Answers
0

Hi Ismael,

Could you share some more information on the design you're planning to implement? Do you plan to implement a DMA for the Host -> FPGA over PCIS as well as a DMA for FPGA -> Host over PCIM?

Thanks!

-Joe

answered a year ago
0

Hello,

Thank you for reaching out to AWS with your question. The S_AXI_PCIM interface provides a way for the Customer Design to initiate PCIe transaction cycles to the Host memory. The interface supports full AXI4 protocol with 512-bit wide datapath. Customers can easily interface their kernel, custom DMA, Xilinx IP with AXI4, etc, to S_AXI_PCIM interface to reach Host Memory.

AWS provides Streaming Data Mover, a custom Data Mover with AXI4-to-AXIS conversion to move data between FPGA and Host. Important links regarding SDE below:

SDE IP Guide

Example CL design using SDE IP

Please note, while the S_AXI_PCIM and above SDE IPs allow customer design to access host memory directly, they require Physical Memory Address of the Host and not the virtual memory address. Please refer to your Operating System details for Virtual-to-Physical Memory Address Translation.

Please let us know if you have any questions.

Thanks!

Chakra

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions