Nios® V Embedded Processor Design Handbook

ID 726952
Date 4/04/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.5.2.1.1. Hardware Design Flow

The following sections describe a step-by-step method for building a bootable system for a Nios V processor application copied from configuration QSPI flash to RAM using SDM Bootloader. The example below is built using Intel Stratix 10 SX SoC L-Tile.

IP Component Settings

  1. Create your Nios® V processor project using Intel® Quartus® Prime and Platform Designer.
  2. Add the Mailbox Client Intel® FPGA IP into your Platform Designer system.
    Figure 47. Connections for Nios V Processor Project
    Figure 48. On-Chip Memory (RAM or ROM) Intel FPGA IP Parameter Settings
  3. Change the On-Chip Memory (RAM or ROM) Intel FPGA IP Parameter Settings according to the memory function. Check that you have a total of four memories in the system.
Memory Memory Type Total Memory Size

Memory initialization

Bootloader ROM

ROM (Read-only)

6144 bytes or more

Enable the following settings:
  • Initialize memory content
  • Enable non-default initialization file with bootcopier_rom.hex
Bootloader RAM

RAM (Writable)

6144 bytes or more

Leave all settings unchecked.
User Application RAM

RAM (Writable)

Depends on your application 9

Leave all settings unchecked.
Exception RAM

RAM (Writable)

Depends on your application 9

Leave all settings unchecked.

Reset and Exception Agent Settings for Nios Processor

  1. In the Nios V Processor parameter editor, set the Reset Agent to Bootloader ROM and Exception Agent to Exception RAM.
    Figure 49. Nios V Parameter Editor Settings
  2. Click Generate HDL, the Generation dialog box appears.
  3. Specify output file generation options and then click Generate.

Intel Quartus Prime Software Settings

  1. In the Intel Quartus Prime software, click Assignment > Device > Device and Pin Options > Configuration.
  2. Set Configuration scheme to Active Serial x4 (can use Configuration Device).
  3. Set VID mode of operation according to your board design.
  4. Set the Active serial clock source to 100 MHz Internal Oscillator.
    Figure 50. Device and Pin Options
  5. Click OK to exit the Device and Pin Options window.
  6. Click OK to exit the Device window.
  7. Click Start Compilation to compile your project.
9 Your application size varies according to the usage. Set the memory size according to your design.