AN 985: Nios® V Processor Tutorial

ID 784468
Date 8/28/2025
Public
Document Table of Contents

3.2.1.2. Creating a Platform Designer System

  1. Click New, select Qsys System File and click OK.
    Figure 106. New Window
    Figure 107. Default Platform Designer System
  2. In Clock Source IP, configure the Clock frequency as 50000000 Hz (50 MHz).

Adding Nios® V/m Processor IP

  1. Search for Nios V/m Processor in the IP Catalog.
  2. Add the Nios V/m Microcontroller IP under Processors and Peripherals > Embedded Processors section. The New IP Variation window appears.
  3. Click Finish to instantiate the processor. Leave it at the default settings.
    Figure 108.  Nios® V/m Processor IP Parameter Editor

Adding On-Chip Memory (RAM or ROM) IP

  1. Search for On-Chip Memory in the IP Catalog.
  2. Add the On-Chip Memory (RAM or ROM) IP under Basic Functions > On Chip Memory. The New IP Variation window appears.
  3. Configure the Total memory size as 159744.
  4. Turn on the option Enable non-default initialization file and provide the filename helloworld.hex.
  5. Leave other settings at default.
  6. Click Finish to instantiate the peripheral.
Figure 109. On-Chip Memory (RAM or ROM) IP Parameter Editor

Adding JTAG UART IP

  1. Search for JTAG UART in the IP Catalog.
  2. Add the JTAG UART IP under Interface Protocols > Serial section. The New IP Variation window appears.
  3. Click Finish to instantiate the peripheral. Leave it at the default settings.
Figure 110. JTAG UART Parameter Editor

Adding System ID Peripheral IP

  1. Search for System ID in the IP Catalog.
  2. Add the System ID Peripheral IP under Basic Function > Simulation; Debug and Verification > Debug and Performance section. The New IP Variation window appears.
  3. Click Finish to instantiate the peripheral. Leave it at the default settings.
Figure 111. System ID Parameter Editor

Connect Interfaces and Signals

Connect the clock source and Nios® V processor to the peripherals.
Table 6.  Connection between Host and Agent
IP Host Peripheral
Clock Source IP clk intel_niosv_m_0.clk
onchip_memory2_0.clk
jtag_uart_0.clk
sysid_qsys_0.clk
clk_reset intel_niosv_m_0.reset
onchip_memory2_0.reset1
jtag_uart_0.reset
sysid_qsys_0.reset
Nios V/m Processor IP platform_irq_x jtag_uart_0.irq
instruction_manager onchip_memory2_0.s1
data_manager onchip_memory2_0.s1
jtag_uart_0.avalon_jtag_slave
sysid_qsys_0.control_slave
Figure 112. Full System Connection

Clear System Warnings and Errors

  1. Navigate to the System menu bar.
  2. Click Assign Base Addresses.
    Figure 113. Example of System Connectivity Issue

Configuring the Reset Vector of the Nios® V Processor

  1. Double click on Nios V Processor IP to open the IP Parameter Editor.
  2. Navigate to the Vectors tab.
  3. Configure as follows:
    1. Reset Agent: onchip_memory1_0.s1
    2. Reset Offset: 0x0
    Figure 114. Reset Vector

Saving and Generating System HDL

  1. Navigate to the File menu bar.
  2. Click Save.
  3. Save your QSYS design as niosv_top.qsys and click Save.
  4. Click Generate HDL at the bottom right corner of the Platform Designer.
  5. Ensure that the Nios V processor hardware system is successfully generated.
    Figure 115. Successful Generation
  6. The Platform Designer generates a folder named niosv_top, which stores the system generation files.
  7. Exit the Platform Designer and return to the project front page.
Figure 116. Generated Project Files