Nios® V Embedded Processor Design Handbook

ID 726952
Date 1/27/2025
Public
Document Table of Contents

4.6.1.1. Hardware Design Flow

The following sections describe the steps for building a bootable system for a Nios® V processor, which executes in place from the general purpose QSPI flash.

The following example is built using MAX® 10 FPGA Development Kit.

IP Component Settings

  1. Create your Nios® V processor project using Quartus® Prime and Platform Designer.
  2. Add Generic Serial Flash Interface Intel® FPGA IP into your Platform Designer.
    Figure 56. Connections for Nios® V Processor Project
    Figure 57. Generic Serial Flash Interface Intel® FPGA IP Parameter Settings
  3. Change the Device Density (Mb) according to the QSPI flash size.
  4. To access general purpose QSPI flash, enable Disable dedicated Active Serial Interface and Enable SPI pins interface.
  5. Change the addressing mode by modifying bit 8 of the Control Register value in the Default Settings parameter section. Changing bit 8 to 0x0 enables 3-byte addressing, or 0x1 enables 4-byte addressing.
    Note: The Micron N25Q512A83GSF40F devices (in the Intel MAX® 10 FPGA Development Kit) is at 4-byte addressing mode after power cycle.
  6. Export the qspi_pins conduit.
Note: You may configure the SPI Clock Baud-rate Register to modify the flash access speed.

For MAX® 10 FPGA Development Kit, Altera recommends you to apply 0x1 (/2) when the Generic Serial Flash Interface IP is connected to 50 MHz system clock. The default 0x10 (/32) divisor results in QSPI clock of 1.56 MHz, which causes a racing condition when XIP from the QSPI. Increasing the QSPI clock (by reducing the divisor) alleviates the issue.

Reset Agent Settings for Nios® V Processor Execute-In-Place from General Purpose QSPI Method

  1. In the Nios® V processor IP parameter editor, set the Reset Agent to QSPI Flash.
    Figure 58.  Nios® V Parameter Editor Settings
  2. Click Generate HDL, the Generation dialog box appears.
  3. Specify output file generation options and then click Generate.

Quartus® Prime Software Settings

  1. In the Quartus® Prime software, click Assignment > Device > Device and Pin Options > Configuration.
  2. Set the Configuration scheme according to your FPGA configuration scheme.
  3. Click OK to exit the Device and Pin Options window.
  4. Click OK to exit the Device window
  5. Assign the GSFI pin assignment to the general purpose QSPI flash. Refer to MAX® 10 FPGA Development Kit User Guide for more information on the board components and their respective MAX® 10 FPGA pin number.
  6. Click Start Compilation to compile your project.