DE0-CV User Manual
48
www.terasic.com
May 4, 2015
5
5
.
.
3
3
S
S
D
D
R
R
A
A
M
M
T
T
e
e
s
s
t
t
i
i
n
n
V
V
e
e
r
r
i
i
l
l
o
o
g
g
DE0_CV system CD offers another SDRAM test with its test code written in Verilog HDL. The
memory size of the SDRAM bank tested is still 64MB.
Function Block Diagram
Figure 5-4
shows the function block diagram of this demonstration. The SDRAM controller uses 50
MHz as a reference clock and generates 100 MHz as the memory clock.
Figure 5-4 Block diagram of the SDRAM test in Verilog
RW_Test module writes the entire memory with a test sequence first before comparing the data read
back with the regenerated test sequence, which is same as the data written to the memory. KEY0
triggers test control signals for the SDRAM, and the LEDs will indicate the test result according to
Table 5-1
.
D
D
e
e
s
s
i
i
g
g
n
n
T
T
o
o
o
o
l
l
s
s
Quartus II v14.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
Project directory: DE0_CV_SDRAM_RTL_Test
Bitstream used: DE0_CV_SDRAM_RTL_Test.sof