1
C5P User Manual
October 12, 2018
www.terasic.com.cn
Contents
Chapter 1 C5P Development Kit ................................................................................... 4
1.1 Package Contents ....................................................................................... 4
1.2 C5P System CD .......................................................................................... 5
1.3 Getting Help ................................................................................................ 5
Chapter 2 Introduction of the C5P board..................................................................... 6
2.1 Layout and Components.............................................................................. 6
2.2 Block Diagram of the C5P Board ................................................................. 7
Chapter 3 Using the C5P Board ................................................................................. 10
3.1 Configuring the Cyclone V FPGA .............................................................. 10
3.2 Board Status Elements .............................................................................. 14
3.3 Clock Circuitry ........................................................................................... 15
3.4 Peripherals Connected to the FPGA .......................................................... 16
Chapter 4 C5P System Builder ................................................................................... 35
4.1 Introduction................................................................................................ 35
4.2 General Design Flow ................................................................................. 35
4.3 Using C5P System Builder......................................................................... 36
Chapter 5 Examples of Advanced Demonstrations .................................................. 41
5.1 C5P Factory Default Configuration ............................................................ 41
5.2 Nios II SDRAM Test ................................................................................... 42
5.3 Verilog SDRAM Test .................................................................................. 44
5.4 DDR3 SDRAM Test ................................................................................... 46
5.5 DDR3 SDRAM Test by Nios II .................................................................... 48
5.6 UART Control ............................................................................................ 51
5.7 ADC Reading ............................................................................................. 56
Chapter 6 Programming the EPCQ ............................................................................ 61
6.1 Convert .sof File to .jic File ........................................................................ 61
6.2 Write.jic File to EPCQ ................................................................................ 65
2
C5P User Manual
October 12, 2018
www.terasic.com.cn
6.3 Erase the EPCQ device ............................................................................. 66
Chapter 7 PCIe Reference Design for Windows........................................................ 68
7.1 PCIe System Infrastructure ........................................................................ 68
7.2 PC PCIe Software SDK ............................................................................. 69
7.3 PCIe Software Stack ................................................................................. 69
7.4 PCIe Library API ........................................................................................ 74
7.5 PCIe Reference Design - Fundamental ..................................................... 79
7.6 PCIe Reference Design – DDR3 ............................................................... 85
Chapter 8 PCIe Reference Design for Linux.............................................................. 91
8.1 PCIe System Infrastructure ........................................................................ 91
8.2 PC PCIe Software SDK ............................................................................. 92
8.3 PCIe Software Stack ................................................................................. 92
8.4 PCIe Library API ........................................................................................ 95
8.5 PCIe Reference Design - Fundamental ..................................................... 95
8.6 PCIe Reference Design - DDR3 .............................................................. 101
Chapter 9 Appendix .................................................................................................. 107
9.1 Revision History....................................................................................... 107
9.2 Copyright Statement ................................................................................ 107
3
C5P User Manual
October 12, 2018
www.terasic.com.cn
Chapter 1
C5P Development Kit
The C5P Development Kit presents a robust hardware design platform built around the
Intel Cyclone V FPGA, it also provides a powerful platform of reconfigurable power with
high performance and low power processing system. The C5P Development Kit is
equipped with PCIe Gen1x4, high-speed DDR3 memory, GPIO, Arduino and much more
that promises many exciting applications.
The C5P Development Board is equipped with PCIe Gen1X4 interface, it is low
development cost, and can support users who develop mainstream applications and
OpenCL applications based on PCIe, as well as a wide range of high-speed connectivity
applications.
The C5P Development Board contains all the tools needed to use the board in conjunction
with a computer that runs the Microsoft Windows 7 or later.
1.1 Package Contents
Figure 1-1 C5P package contents
4
C5P User Manual
October 12, 2018
www.terasic.com.cn
◼
C5P package includes
1.
2.
3.
4.
5.
6.
7.
8.
C5P Development Board
C5P Quick Start Guide
PCIe Bracket (Installed)
Fan (Installed)
Screw and Silicon Footstands Package
AC Power Cord
Power Adapter
USB to mini-USB Cable
1.2 C5P System CD
The C5P System CD contains all the documents and supporting materials associated with
C5P, including the user manual, system builder, reference designs, and device datasheets.
Users can download this system CD from the link
c5p.terasic.com.
1.3 Getting Help
Here are the addresses where you can get help if you encounter any problems:
⚫
⚫
⚫
⚫
⚫
Terasic Inc.
9F., No.176, Sec.2, Gongdao 5th Rd, East Dist, Hsinchu City, 30070. Taiwan
Email:support@terasic.com.cn
Tel.:+886-3-575-0880
Website:c5p.terasic.com
5
C5P User Manual
October 12, 2018
www.terasic.com.cn