HAN Pilot Platform
Demonstration Manual
93
www.terasic.com
September 6, 2019
6
6
.
.
2
2
P
P
C
C
P
P
C
C
I
I
E
E
x
x
p
p
r
r
e
e
s
s
s
s
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
S
S
D
D
K
K
The FPGA System CD contains a PC Windows based SDK to allow users to develop their 64-bit
software application on 64-bits Linux. CentOS 7.2 is recommended. The SDK is located in the
“CDROM/Demonstrations/PCIe_SW_KIT/Linux” folder which includes:
PCI Express Driver
PCI Express Library
PCI Express Examples
The kernel mode driver assumes the PCIe vendor ID (VID) is 0x1172 and the device ID (DID) is
0xE003. If different VID and DID are used in the design, users need to modify the PCIe vendor ID
(VID) and device ID (DID) in the driver project and rebuild the driver. The ID is defined in the file
PCIe_SW_KIT/Linux/PCIe_Driver/altera_pcie_cmd.h.
The PCI Express Library is implemented as a single .so file named terasic_pcie_qsys.so. This file is
a 64-bit library file. With the library exported software API, users can easily communicate with the
FPGA. The library provides the following functions:
Basic data read and write
Data read and write by DMA
For high performance data transmission, Altera AVMM DMA is required as the read and write
operations are specified under the hardware design on the FPGA.
6
6
.
.
3
3
P
P
C
C
I
I
E
E
x
x
p
p
r
r
e
e
s
s
s
s
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
S
S
t
t
a
a
c
c
k
k
shows the software stack for the PCI Express application software on 64-bit Linux. The
PCIe library module terasic_pcie_qys.so provides DMA and direct I/O access for user application
program to communicate with FPGA. Users can develop their applications based on this .so library
file. The altera_pcie.ko kernel driver is provided by Altera.
Figure 6-2 PCI Express Software Stack
Содержание HAN Pilot Platform
Страница 1: ......
Страница 92: ...HAN Pilot Platform Demonstration Manual 91 www terasic com September 6 2019...