PCA(PCIe Cable Adapter),which is used to connect PCIe upstream slot with downstream target board by a PCIe X4 cable , supports the PCIe X4 & X1 mode. PCA card can provide programmable equalization, amplification, and de-emphasis for PCIe transceiver signal by using 8 select bits. It is also available to optimize performance over a variety of physical mediums by reducing Inter-symbol interference.
• PCIe X4 Gen 2 • Adjustable receiver equalization • Adjustable transmitter amplitude and de-emphasis About the KIT About the KIT The PCA kit will come with the following contents: • PCA card Please visit PCIe_Cable.terasic.com download the PCA user manual.
Getting Help Getting Help Here is information of how to get help if you encounter any problem: Terasic Technologies • Tel: +886-3-550-8800 • Email: support@terasic.com...
Chapter 2 PCA Card Architecture This chapter provides information about architecture and block diagram of the PCA board. Layout and Components Layout and Components The picture of the PCA card is shown in Figure 2-1 Figure 2-2. It depicts the layout of the board and indicates the locations of the connectors and key components.
Figure 2-2 The PCA Card PCB and component diagram (bottom view) Block Diagram of the PCA Board Block Diagram of the PCA Board Figure 2-3 shows the block diagram of the PCA card.
Board Component This chapter describes the specifications of the on board components. PCIe Edge Connector PCIe Edge Connector This Edge connector is used to connect the PCA with PC motherboard PCIe slot, as show Figure Figure 3-2. Figure 3-1 PCA Edge Connector...
Page 10
The pins are numbered as shown with side A on the top of the centerline on the solder side of the board and side B on the bottom of the centerline on the component side of the board. The PCIe interface pins PETpx, PETnx, PERpx, and PERnx are named with the following convention: “PE”...
RSVD Reserved 3.2 PCIe Cable Connector PCIe cable connector is used to connect the PCIe X4 Cable and PCA cable connector, Connect the PCA by using a PCIe X4 Cable, as show Figure 3-3. Figure 3-3 PCIe X4 Cable and PCA To purchase the PCIe X4 Cable, please refer Terasic website PCIe_Cable.terasic.com.
Page 12
Figure 3-4 PCIe Cable connects PCA connector Table 3-2 gives the wiring information of the PCIe Cable connector. Pin Numbers Name Description Ground reference for PCI Express transmitter Lanes PETp0 Differential PCI Express transmitter Lane 0 PETn0 Differential PCI Express...
Page 13
PETp3 Differential PCI Express transmitter Lane 3 PETn3 Differential PCI Express transmitter Lane 3 Ground reference for PCI Express transmitter Lanes CREFCLK+ Differential 100MHz cable reference clock CREFCLK- Differential 100MHz cable reference clock Ground reference for PCI Express transmitter Lanes SB_RTN Signal return for single ended sideband signals...
Switches Switches The PCA contains x2 and x8 switches that allow configuration of the PCA PCIe mode (SW1), equalization and de-emphasis (SW2). The two switches, SW1 and SW2, are located on top of the front side of the PCA card.
Page 15
Figure 3-6 show the SW1 settings Table 3-3 SW1 Settings Pin 2 Pin 1 PCIe Mode(X1/X4) NULL Down Down X4(Default mode) Down Down NULL Figure 3-7 Show the SW2 Settings...
Page 16
The PI2EQX5904 has two channels, A and B, has separate equalization control. show the Figure 3-8 channel A and B inside on the block diagram. Figure 3-8 CH_A and CH_B within PI2EQX5904 Table 3-4 SW2 Settings (Input Equalizer Configuration for Channel A) Pin 1 SEL0_A Pin 2 SEL1_A Pin 3 SEL2_A...
CH_A & CH_B Receiver Detect Disable Please refer the datasheet of PI2EQX5904 to more settings. LEDs LEDs The PCA includes status LEDs, Please refer Table 3-7 for the status of the LED indicator. Board LED name Description Reference Cable PRSNT1n...
Page 18
POWER Power LED SIG_A Signal detect output for CH_A SIG_B Signal detect output for CH_B RX50_A Receiver Detect Output for CH_A0 RX50_B Receiver Detect Output for CH_B0...
Chapter 4 Set up on PCA This chapter illustrates the set up for the PCA card (base on the TR4 Board). To purchase the TR4 board, please visit www.tr4.terasic.com. Introduction Introduction The application reference design shows how to implement fundamental control and data transfer by using PCIE0 port on the TR4.
Page 20
Demonstration Setup • Make sure TR4 and PC are both powered off. • Plug the PCA card into PCIe slot on the PC motherboard. • Use the PCIe cable to connect to the TR4 PCIE0 connector and PCIe adapter card as...
Page 21
• Power on your PC. • Download the tr4_pcie0_fundamental.sof into the TR4 using the Quartus II Programmer. And all seven LEDs on PCA card will be lighted on if work rightly while the PC automatic start • Install PCIe driver if necessary. The driver is located in the folder PCIe_SDK\Driver.
Page 22
Figure 4-3 PCIe Fundamental Demo GUI • Make sure ‘Select FPGA Board’ appears as “VID=1172, DID=E001”. • Press BUTTON0~BUTTON3 on the TR4 and click ‘Read Status’ in the application software. • Check/Uncheck the LED0-3 in this application software and click ‘Set LED’. The LEDs on the TR4 should light and unlight accordingly.
Page 23
Demonstration Source Code Location • Quartus Project: TR4_PCIe0_Fundamental • Borland C++ Project: TR4_PCIe0_Fundamental \pc FPGA Application Design The PCI Express demonstration uses the basic I/O interface and DMA channel on the Terasic PCIe IP to control I/O (Button/LED) and access two internal memories (RAM/FIFO) through the MUX block.
Page 24
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.
Page 25
To write and read FIFO memory, call the functions:...
Need help?
Do you have a question about the PCA and is the answer not in the manual?
Questions and answers