www.terasic.com
May 11, 2018
• Quartus II v16.0
• Nios II Eclipse v16.0
D
D
e
e
m
m
o
o
n
n
s
s
t
t
r
r
a
a
t
t
i
i
o
o
n
n
S
S
o
o
u
u
r
r
c
c
e
e
C
C
o
o
d
d
e
e
• Quartus project directory: \SDRAM_Nios_Test
• Nios II Eclipse directory: \SDRAM_Nios_Test \Software
N
N
i
i
o
o
s
s
I
I
I
I
P
P
r
r
o
o
j
j
e
e
c
c
t
t
C
C
o
o
m
m
p
p
i
i
l
l
a
a
t
t
i
i
o
o
n
n
• Click “Clean” from the “Project” menu of Nios II Eclipse before compiling the reference design
in Nios II Eclipse.
D
D
e
e
m
m
o
o
n
n
s
s
t
t
r
r
a
a
t
t
i
i
o
o
n
n
B
B
a
a
t
t
c
c
h
h
F
F
i
i
l
l
e
e
The files are located in the director: \SDRAM_Nios_Test\demo_batch
The folder includes the following files:
• Batch file for USB-Blaster : test.bat and test.sh
• FPGA configuration file : DE10_LITE_SDRAM_Nios_Test.sof
• Nios II program: DE10_LITE_SDRAM_Nios_Test.elf
D
D
e
e
m
m
o
o
n
n
s
s
t
t
r
r
a
a
t
t
i
i
o
o
n
n
S
S
e
e
t
t
u
u
p
p
• Quartus II v16.0 and Nios II v16.0 must be pre-installed on the host PC.
• Connect the DE10-Lite board (J3) to the host PC with a USB cable and install the USB-Blaster
driver if necessary.
• Execute the demo batch file “test.bat” from the directory \SDRAM_Nios_Test\demo_batch
• After the program is downloaded and executed successfully, a prompt message will be displayed
in nios2-terminal.
• Press any button (KEY0~KEY1) to start the SDRAM verification process. Press KEY0 to run
the test continuously.
• The program will display the test progress and result, as shown in Figure 5-3.