74
TR10a-LPQ User Manual
December
10,
2018
Once the driver is successfully installed, users can see the
Altera PCI API Driver
under the device manager window, as shown in
Figure 6-8 Altera PCI API Driver in Device Manager
◼
Create a Software Application
All the files needed to create a PCIe software application are located in the directory
CDROM\demonstration\PCIe_SW_KIT\PCIe_Library. It includes the following files:
⚫
TERASIC_PCIE_AVMM.h
⚫
TERASIC_PCIE_AVMM.DLL (64-bit DLL)
Below lists the procedures to use the SDK files in users’ C/C++ project :
1.
Create a 64-bit C/C++ project.
2.
Include "TERASIC_PCIE_AVMM.h" in the C/C++ project.
3.
Copy "TERASIC_PCIE_AVMM.DLL" to the folder where the project.exe is located.
4.
Dynamically load "TERASIC_PCIE_AVMM.DLL" in C/C++ program. To load the
DLL, please refer to the PCIe fundamental example below.
5.
Call the SDK API to implement the desired application.
Users can easily communicate with the FPGA through the PCIe bus through the
"TERASIC_PCIE_AVMM.DLL" API. The details of API are described below: