83
6
6
.
.
4
4
T
T
r
r
a
a
n
n
s
s
c
c
e
e
i
i
v
v
e
e
r
r
H
H
S
S
M
M
C
C
L
L
o
o
o
o
p
p
b
b
a
a
c
c
k
k
t
t
e
e
s
s
t
t
The XCVR HSMC loopback demonstration is a project to test XCVR HSMC Loopback function.
The system generate data pattern and transport data through the xcvr channel. Meanwhile, the
system receives the data through the loopback daughter card and checks it. Altera IP
data pattern
generator
and
data pattern checker
are responsible for generating and checking the data pattern.
The Nios II CPU checks the test result. The test result is shown through LEDG0~LEDG3 and also
displayed in the nios2-treminal period. If the loopback test function not working , the program will
terminal and the LEDs will all turn off.
Design Tools
•
Quartus II 13.0
•
Nios II Eclipse 13.0
Demonstration Source Code
•
Quartus Project directory: C5G_XCVR_LOOPBACK
•
Nios II Eclipse:
C5G_XCVR_LOOPBACK\Software
Nios II Project Compilation
Before you attempt to compile the reference design under Nios II Eclipse, make sure the project is
cleaned first by clicking ‘Clean’ from the ‘Project’ menu of Nios II Eclipse.
Demonstration Batch File
Demo Batch File Folder:
C5G_HSMC_XCVR_LOOPBACK_TEST\demo_batch
The demo batch file includes following files:
•
Batch File for USB-Blaster: C5G_HSMC_XCVR_LOOPBACK_TEST.bat,
C5G_HSMC_XCVR_LOOPBACK_TEST.sh
•
FPGA Configure File : C5G_HSMC_XCVR_LOOPBACK_TEST
.sof
•
Nios II Program: C5G_HSMC_XCVR_LOOPBACK_TEST
.elf
Demonstration Setup
•
Make sure Quartus II and Nios II are installed on your PC.
•
Connect Connect USB Blaster to the C5G board and install USB Blaster driver if necessary.
•
Install the HSMC loopback daughter card on C5G board.
•
Power on the C5G board.