28
The Camera Link camera captures and caches the video frames in DDR2 memory via DDR2 Write
port. Using ALTERA Hard PCIe and DMA Channel of Terasic PCIe IP, the user application on the
PC terminal can access the DDR2 frame buffer via DDR2 Read port.
The user application on PC terminal is developed based on the PCIe Software Stack, which is
described in detail in the chapter 6 (PCI Express Reference Design) in DE4 manual. The PCIe
vender ID and device ID is 0x1172 and 0xE001, respectively.
Locate the project directory from the CD-ROM included and follow the steps below:
Directory: Demonstration / DE4_230/530_PCIe_CLR
FPGA Bitstream Used: top.sof
PC Application Software: PC/PCIe Monitor.exe
1.
Ensure the connection is made correctly as shown in
X
Figure 5-8
X
. Make sure the CLR Card is
connected to
J21 (HSMC PORT B)
and with two
THCB-HMF2
interface cards which are
bundled in the DE4 kit.
2.
Insert the DDR2 memory card into J9 (DDR2 SO-DIMM), and turn on the
PCIe X8 detection
(SW9)
.
3.
Connect a camera to
BASE1 (J2)
of the CLR card with a Camera Link cable.
4.
Install the DE4 board on the PC.
5.
Copy the directory DE4_230/530_PCIe_CLR from HSMC-CLR System CD-ROM to the host
computer.
6.
Download the bitstream (top.sof) to the DE4 board.
7.
Restart windows.
8.
Installed PCIe driver if necessary. The driver is located in the folder PCIe_SDK\Driver
9.
Launch PC program Terasic PCIe Monitor.exe, Click
Play
button on the control panel.
10. Press
Button [0]
on the DE4 board to reset the circuit.
Note: the PC Application software development tool is Borland C++ Builder, and the PCI
EXPRESS SDKs are provided in PCIe_SDK directory on System CD.