Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi Steffen,
The Altera University Program has a nice write-up of a hardware design and Linux driver they have created for the DE4 board: ftp://ftp.altera.com/up/pub/altera_material/12.1/tutorials/using_pcie_on_de4.pdf ftp://ftp.altera.com/up/pub/altera_material/12.1/tutorials/using_pcie_on_de4_design_files.zip I haven't used it, but it looks like it would suit your needs. Note that they have 'cheated' in that the hardware design creates a 2GB Avalon-MM slave window onto the host PC address space, and then the Linux driver is forced to only allocate addresses between 0 and 2GB. This limitation is due to the fact that the Altera Qsys DMA controller is not really designed for use with PCIe. A true PCIe DMA controller would bridge between PCIe and Avalon-MM and would have scatter-gather entries with both Avalon-MM and PCIe addresses. Cheers, Dave