The vendor ID is defined as 0x1172 and the device ID is defined as 0xE001. The BUTTON/LED
register address is 0x04 based on PCIE_BAR1.
A C++ class
PCIE
is designed to encapsulate the DLL dynamic loading for TERASIC_PCIE.DLL.
A PCIE instance is created with the name
m_hPCIE
. To enumerate all PCIe cards in system, call
the function
where wVendorID and wDeviceID are zeros. The return value dwDeviceNum represents the
number of PCIe cards found in the system. The m_szPcieInfo array contains detailed information
for each PCIe card.
To connect the selected PCIe card, the functions are called:
where nSel is selected index in the ‘Selected FPGA Board’ poll-down menu. Based on the return
m_szPcieInfo, we can find the associated PID and DID which can br used to specifiy the target
PCIe card.
To read the BUTTON status, the function is called:
To set LED status, the function is called:
To write and read memory-mapped memory, call the functions:
23
Содержание PCA
Страница 1: ......
Страница 8: ...Figure 2 3 Block Diagram of PCA card 7 ...
Страница 25: ...To write and read FIFO memory call the functions 24 ...