DE10-Standard
User Manual
69
www.terasic.com
January 19, 2017
Figure 5-6 Block diagram of the SDRAM test in Nios II
The system flow is controlled by a program running in Nios II. The Nios II program writes test
patterns into the entire 64MB of SDRAM first before calling the Nios II system function,
alt_dcache_flush_all, to make sure all the data are written to the SDRAM. It then reads data from
the SDRAM for data verification. The program will show the progress in nios-terminal when
writing/reading data to/from the SDRAM. When the verification process reaches 100%, the result
will be displayed in nios-terminal.
Design Tools
Quartus II v16.1
Nios II Eclipse v16.1
Demonstration Source Code
Quartus project directory: SDRAM_Nios_Test
Nios II Eclipse directory: SDRAM_Nios_Test \Software
Nios II Project Compilation