Professional Documents
Culture Documents
Lab3 - SDRAM - Modified - 2020
Lab3 - SDRAM - Modified - 2020
First, we use QSYS tool to create a simple project which using SDRAM to store
data and instruction. In Figure 2, a diagram of a simple project using SDRAM is
introduced. For further application, we need to add PIO IP (which is introduced in
previous lab) to control leds and buttons. A diagram of this project is shown in
Figure 3.
Second, we use Eclipse Software to program some mini projects: read and write
data from SDRAM, or control LEDS based on data in SDRAM, ….
Reference:
Chapter 3 - Using the DE10-Standard Board (DE10-Standard User Manual.pdf)
Chapter 4 - DE10-Standard System Builder (DE10-Standard User Manual.pdf)
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
which can be manually created using the IP System and SDRAM Clocks for DE-Series
Boards – which is shown in Figure 5.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
III. PROCEDURE
I. Design flow
Figure 6: Design flow of building a project from the beginning to the end
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Step 2: Open project using Quartus 18.1, and choose icon to open Platform
Designer. At tab IP Catalog, search IP and add to our system.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Step 3: Search, config and add NIOS II, JTAG UART, SystemID and PIO which are
the same as previous lab.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Step 5: As discuss in last part, we need to add PLL to create two clocks which deviate
from each other by 3 nanoseconds. Add System and SDRAM Clocks for DE-series
Board.
After this step, we have six IP in qsys windows (5 IPs in picture and 1 IP SystemID-is
not shown picture).
Step 5: In this step, we assign pins’ name for out and in pins which is connected to
peripherals’ pin. In next picture, we see that we need to assign 5 pins:
- Clock Input, Clock Reset, Clock Output: in System and SDRAM Clocks IP.
- Conduit in SDRAM Controller IP.
- Conduit in PIO Controller IP.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Besides, we might to rename PIO IP and SDRAM Controller IP to SDRAM and LEDR.
This name helps us check registers and code easier when coding in Eclipse.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Step 7: Open NIOS-II IP again and change Reset Vector Memory and Exception
Vector Memory to SDRAM.s1. This leads NIOS-II read data and instruction from
SDRAM.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
Step 8: Change System ID in SytemID IP to address of it. This leads eclipse tool can
confirm ID of system when running.
Step 9: Save qsys system and make sure no errors, then generate HDL.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
Lab 3: NIOS-II and SDRAM
III. Homework
In this program, we create an array A containing ten elements of type integer 16 (each element
has random value). After that, create another array B containing arranged elements of array
A. Print to console the position of each elements of arrays A and B.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam