DisplayPort IP Design Example User Guide: Agilex™ 5 FPGAs

ID 823560
Date 8/15/2025
Public
Document Table of Contents

1.6. Regenerating the Nios V .elf File

By default, the .elf file is generated when you generate the dynamic design example. However, in some cases, you need to regenerate the .elf file if you modify the software file or regenerate the dp_core.qsys file. Regenerating the dp_core.qsys file updates the .sopcinfo file, which requires you to regenerate the .elf file.
  1. Go to <project directory>/niosv_software and edit the code if necessary.
  2. Go to <project directory>/script and run the following build script:
    On Windows:
    1. Search and open Nios® V Command Shell.
    2. In the Nios® V Command Shell, go to <project directory>/script and run:
      quartus_py .\build_niosv_sw.py -d
    On Linux:
    1. Launch a Nios® V Shell:
      $QUARTUS_ROOTDIR/../niosv/bin/niosv-shell
    2. In the Nios® V Shell, go to <project directory>/script and run:
      quartus_py ./build_niosv_sw.py -d
  3. Make sure an .elf file is generated in <project directory>/niosv_software/build.
  4. Download the generated .elf file into the FPGA without recompiling the .sof file by running the following script:
    niosv-download <project directory>/niosv_software/dp_demo/*.elf
  5. Push the reset button on the FPGA board for the new software to take effect.