1
1
CONTENTS
CONTENTSCONTENTS
CONTENTS
Chapter 1 Introduction ............................................................................................................... 3
1.1 Package Contents ................................................................................................................................... 3
1.2 Cyclone V GX Starter Kit System CD ................................................................................................... 4
1.3 Layout and Components ........................................................................................................................ 4
1.4 Block Diagram of the Cyclone V GX Starter Board .............................................................................. 7
1.5 Getting Help ........................................................................................................................................... 7
Chapter 2 Control Panel ............................................................................................................. 8
2.1 Control Panel Setup ................................................................................................................................ 8
2.2 Controlling the LEDs, 7-segment Displays .......................................................................................... 11
2.3 Switches and Push-buttons ................................................................................................................... 13
2.4 SRAM/LPDDR2 Controller and Programmer ..................................................................................... 14
2.5 SD Card ............................................................................................................................................... 16
2.6 ADC ............................................................................................................................................... 17
2.7 UART-USB Communication ................................................................................................................ 17
2.8 HDMI-TX ............................................................................................................................................ 20
2.9 HSMC ............................................................................................................................................... 21
2.10 Overall Structure of the C5G Control Panel ...................................................................................... 21
Chapter 3 Using the Starter Kit ............................................................................................. 23
3.1 Configuration, Status and Setup ........................................................................................................... 23
3.2 General User Input/Output ................................................................................................................... 28
3.3 Clock Circuit ........................................................................................................................................ 33
3.4 RS-232 Serial Port to USB interface .................................................................................................... 35
3.5 SRAM : Static Random Access Memory ............................................................................................. 36
3.6 LPDDR2 Memory ................................................................................................................................ 37
3.7 Micro SD-Card ..................................................................................................................................... 40
3.8 HDMI TX Interface .............................................................................................................................. 41
3.9 Audio Interface ..................................................................................................................................... 43
3.10 HSMC : High-Speed Mezzanine Card ............................................................................................... 44
3.11 Using the 2x20 GPIO Expansion Header ........................................................................................... 49
2
Chapter 4 System Builder ......................................................................................................... 60
4.1 Introduction .......................................................................................................................................... 60
4.2 General Design Flow ............................................................................................................................ 60
4.3 Using C5G System Builder .................................................................................................................. 61
Chapter 5 RTL Based Example Codes .................................................................................... 68
5.1 Factory Configuration .......................................................................................................................... 68
5.2 LPDDR2 SDRAM RTL Test ................................................................................................................ 69
5.3 SRAM RTL Test ................................................................................................................................... 71
Chapter 6 NIOS-II Based Example Codes .............................................................................. 73
6.1 SRAM ............................................................................................................................................... 73
6.2 UART to USB control LED ................................................................................................................. 75
6.3 HDMI TX ............................................................................................................................................. 79
6.4 Transceiver HSMC Loopback test ....................................................................................................... 86
6.5 Audio Recording and Playing .............................................................................................................. 87
6.6 Micro SD Card file system read ........................................................................................................... 90
6.7 SD Card music player demonstration ................................................................................................... 94
6.8 ADC Reading ....................................................................................................................................... 98
3
Chapter 1
Introduction
The Cyclone V GX Starter Kit presents a robust hardware design platform built around the Altera
Cyclone V GX FPGA, which is optimized for the lowest cost and power requirement for transceiver
applications with industry-leading programmable logic for ultimate design flexibility. With Cyclone
V FPGAs, you can get the power, cost, and performance levels you need for high-volume
applications including protocol bridging, motor control drives, broadcast video converter and
capture cards, and handheld devices. The Cyclone V GX Starter Kit development board includes
hardware such as Arduino Header, on-board USB Blaster, audio and video capabilities and much
more. In addition, an on-board HSMC connector with high-speed transceivers allows for an even
greater array of hardware setups. By leveraging all of these capabilities, the Cyclone V GX Starter
Kit is the perfect solution for showcasing, evaluating, and prototyping the true potential of the
Altera Cyclone V GX FPGA.
The Cyclone V GX Starter Kit contains all components needed to use the board in conjunction with
a computer that runs the Microsoft Windows XP or later.
1
1
.
.
1
1
P
P
a
a
c
c
k
k
a
a
g
g
e
e
C
C
o
o
n
n
t
t
e
e
n
n
t
t
s
s
Figure 1-1 shows a photograph of the Cyclone V GX Starter Kit package.
Figure
Figure Figure
Figure 1
11
1-
--
-1
11
1
The
TheThe
The
Cyclone V
Cyclone V Cyclone V
Cyclone V GX
GX GX
GX Starter Kit
Starter KitStarter Kit
Starter Kit
package contents
package contentspackage contents
package contents
The Cyclone V GX Starter Kit package includes:
• The Cyclone V GX Starter board
• Quick Start Guide
• 12V DC Power Supply
• Type A Male to Type B Male USB Cable
4
1
1
.
.
2
2
C
C
y
y
c
c
l
l
o
o
n
n
e
e
V
V
G
G
X
X
S
S
t
t
a
a
r
r
t
t
e
e
r
r
K
K
i
i
t
t
S
S
y
y
s
s
t
t
e
e
m
m
C
C
D
D
The Cyclone V GX Start Kit (C5G) System CD contains the documentation and supporting
materials, including the User Manual, Control Panel, System Builder, reference designs and device
datasheets. User can download this System CD from the web (http://c5g.terasic.com).
1
1
.
.
3
3
L
L
a
a
y
y
o
o
u
u
t
t
a
a
n
n
d
d
C
C
o
o
m
m
p
p
o
o
n
n
e
e
n
n
t
t
s
s
This section presents the features and design characteristics of the board.
A photograph of the board is shown in Figure 1-2 and Figure 1-3. It depicts the layout of the board
and indicates the location of the connectors and key components.
Figure
Figure Figure
Figure 1
11
1-
--
-2
22
2
Development Board (top view)
Development Board (top view)Development Board (top view)
Development Board (top view)