Skip to main content

Setup

Install Xilinx FPGA evaluation board​

Identify PCIe device​

Identify the bus/device/function (BDF) identifier of the Xilinx Evaluation board:

In the following example, the BDF of the Xilinx evaluation board is 88:00.0:

lspci | grep Xilinx
88:00.0 Memory controller: Xilinx Corporation Device 7021

Please remember the BDF, as it is required for the VILLASfpga configuration later.

Kernel​

Version​

VILLASfpga requires a recent Linux kernel with a version greater than 4.18.0.

uname -a

Command Line​

VILLASfpga uses the VFIO subsystem to access the FPGA hardware.

VFIO requires an IOMMU.

sudo grubby --update-kernel=ALL --args="intel_iommu=on iommu=pt"
sudo reboot
cat /proc/cmdline

Modules​

VILLASfpga requires that the following kernel modules be loaded:

  • vfio
  • vfio_pci
echo "vfio\nvfio_pci" > /etc/modules-load.d/vfio.conf

FPGA Detection​

  1. Flash FPGA bitstream
  2. echo 1 | sudo tee /sys/bus/pci/rescan