Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20693 Discussions

Source Code for Driver and Application for DMA Read/Write using PCIE Avalon-MM Design

Altera_Forum
Honored Contributor II
2,192 Views

Hi, 

 

Iam working on PCIE Avalon-MM Design using Arria 10 FPGA. 

Iam using the example design from the below doc to perform the DMA transfer. 

https://www.altera.com/en_us/pdfs/literature/ug/archives/ug-01145_avmm_dma-1.1.pdf 

 

Iam testing this example design in Hardware using the application “altera_pcie_gui.exe” and the windows 64-bit driver for DMA Read/Write from the below link: 

http://alterawiki.com/wiki/reference_design:_gen3x8_avmm_dma_-_arria_10 

 

This application run read DMA (move data from system memory to the on-chip memory in the FPGA), write DMA (move data from on-chip memory to system memory), or simultaneous read and write.  

 

is it possible to get the source code of this driver (altera_pcie_win_driver) and the application as we need to modify this driver to build our own application to perform similar DMA Read/Write. 

 

Please let me know where can I find the source code for this driver software. 

 

Thanks.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
924 Views

Hi, 

 

I'm also working on the same and need Linux driver code, application code for doing dma transfer between system memory and on-chip memory 

 

Thanks,
0 Kudos
Altera_Forum
Honored Contributor II
924 Views

Hi, 

 

Altera does not provide the Windows source code for the PCIe driver. The reference design and Linux source can be found from related links in the AN690: 

https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/an/an690.pdf 

 

There is an example simple version source code from the following link that perhaps could be use as reference: 

http://www.alterawiki.com/wiki/pci_express_in_qsys_example_designs 

 

Please be aware, the material from the wiki page can be publish by anyone and it is provided as-is and is not supported by Altera. 

 

Regards, 

nyusof 

(This message was posted on behalf of Intel Corporation)
0 Kudos
Reply