1. New Project
2. Add schematic files
Note: It seems Nios II projects need to involve schematic programming.
3. Enter Qsys for kernel design
Note: Start After Qsys, the system has added a component clk_0 to the kernel by default.
4. Set the clock name and frequency
Note: The clock input on the Development Board is 50MHz.
5. Add Nios II Core
Note: Select Nios II Core is: Nios ii/f, the other tabs remain the default settings.
6. Perform clock connection operation
7. Add On-chip-memory (RAM) cores
Note: At the same time, you need to set the on-chip memory size, where we set to 40960, that is, 40KB, the other tabs remain the default settings.
8. Connection of clock, data port, instruction Port
Note: Connection rules for data and command ports, if this is a memory type The IP core requires that its slave port be connected to the Data_master and Instruction_master of Nios II, while the other non-memory IP cores simply connect to Nios II's Data_master.
9. Add the system ID peripheral kernel
Note: Enter the System ID number of the + bit.
10. Connection of clock, data port
Note: Because The System ID peripheral is not a memory device and is mounted on Nios II only if it is connected to the Data_master and does not need to be connected to the Instruction_master.
11. Add Jtag UART Core
Note: Keep the default settings.
12. Connection of clock, data port
Note: Because The JTAG UART is not a memory device, and when mounted on Nios II, it only needs to be connected to the data_master and not to the instruction_master.
13. Specify the reset and exception address for Nios II
Configuration The Nios II processor's reset vetor and exception vectors are onchip_ram.s1.
14. Connecting the reset Signal
Click Qsys the "Create Global Reset Network" under "System" in the menu bar of the main interface.
15. Allocation of base sites
Click Qsys "Assign Base Addresses" under "System" in the menu bar of the main interface.
16. Assigning the interrupt number
17. Generate Qsys System
Click Generate HDL.
18. Add the configured kernel to the schematic file
19. Add an IP file to the project
20. Add phase-locked loop
Note: The chip speed level and input frequency parameters need to be input.
21. Pin Generation
Select single symbol, click the mouse button, and click Generate Pins for symbol ports.
22. Configuring the Chip
23. Pin Assignment
24. Turn on Eclipse
25. Create a new app
File-new-nios II application and BSP from Template.
26.Build Project
27. Running the program
Run as----Nios II hardware
First Nios II project using Qsys-------let Qsys Say Hello