Visible to Intel only — GUID: sss1409203718650
Ixiasoft
1.5.1. Install the Design Files
1.5.2. Analyze System Requirements
1.5.3. Start the Software and Open the Example Project
1.5.4. Create a New System
1.5.5. Define the System in
1.5.6. Integrate the System into the Project
1.5.7. Download the Hardware Design to the Target FPGA
1.5.8. Develop Software Using the SBT for Eclipse
1.5.9. Run the Program on Target Hardware
1.5.5.1. Specify Target FPGA and Clock Settings
1.5.5.2. Add the On-Chip Memory
1.5.5.3. Add the Processor Core
1.5.5.4. Add the JTAG UART
1.5.5.5. Add the Interval Timer
1.5.5.6. Add the System ID Peripheral
1.5.5.7. Add the PIO
1.5.5.8. Specify Base Addresses and Interrupt Request Priorities
1.5.5.9. Generate the System
Visible to Intel only — GUID: sss1409203718650
Ixiasoft
1.5.5.3. Add the Nios II Processor Core
You will add the Nios II/f core and configure it to use 2 KB of on-chip instruction cache memory, no data cache and use static branch prediction. For this tutorial, the Nios II/f core is configured to provide a balanced trade-off between performance and resource utilization. To add a Nios II/f core to the system, perform the following steps:
- On the IP Catalog tab, expand Processors and Peripherals, and then click Nios II Gen2 Processor.
- Click Add.
The Nios II Processor parameter editor appears, displaying the Core Nios II tab.
- In the Main Tab under Select an Implementation, select Nios II/f.
- Click Finish and return to the Qsys System Contents tab.
The Nios II core instance appears in the system contents table. Ignore the exception and reset vector error messages. You resolve these errors in future steps.
- In the Name column, right-click the Nios II processor and click Rename.
- Type cpu and press Enter.
- In the Connections column, connect the clk port of the clk_0 clock source to both the clk1 port of the on-chip memory and the clk port of the Nios II processor by clicking the hollow dots on the connection line. The dots become solid indicating the ports are connected.
- Connect the clk_reset port of the clk_0 clock source to both the reset1 port of the on-chip memory and the reset_n port of the Nios II processor.
- Connect the s1 port of the on-chip memory to both the data_master port and instruction_master port of the Nios II processor.
- Double-click the Nios II processor row of the system contents table to reopen the Nios II Processor parameter editor.
- Under Reset Vector in Vectors tab, select onchip_mem.s1 in the Reset vector memory list and type 0x0 in the Reset vector offset box.
- Under Exception Vector, select onchip_mem.s1 in the Exception vector memory list and type 0x20 in the Exception vector offset box.
- Click the Caches and Memory Interfaces tab.
- In the Instruction cache list, select 2 Kbytes.
- Choose None for Data Cache size and do not change other default settings.
- In Advanced Features tab, select Static branch prediction type.
- Click Finish. You will return to the Qsys System Contents tab.
Do not change any settings on the MMU and MPU Settings and JTAG Debug tabs.