HAN Pilot Platform
Demonstration Manual
110
www.terasic.com
September 6, 2019
Figure 6-19
Hardware block diagram of the PCIe_DDR4 reference design
Linux Based Application Software Design
The application software project is built by Visual C++ 2012. The project includes the following
major files:
NAME
Description
PCIE_FUNDAMENTAL.cpp Main program
PCIE.c
Implement dynamically load for terasic_pcie_qsys.so library file
PCIE.h
TERASIC_PCIE_AVMM.h
SDK library file, defines constant and data structure
The main program PCIE_DDR4.cpp includes the header file "PCIE.h" and defines the controller
address according to the FPGA design.
The base address of BUTTON and LED controllers are 0x4000010 and 0x4000020 based on
PCIE_BAR4, in respectively. The on-chip memory base address is 0x00000000 relative to the
DMA controller.
The above definition is the same as those in PCIe Fundamental demo
.
Before accessing the FPGA through PCI Express, the application first calls PCIE_Load to
dynamically load the TERASIC_PCIE_AVMM.DLL. Then, it call PCIE_Open to open the PCI
Содержание HAN Pilot Platform
Страница 1: ......
Страница 92: ...HAN Pilot Platform Demonstration Manual 91 www terasic com September 6 2019...