Visible to Intel only — GUID: jym1713307929455
Ixiasoft
1.1. Hardware and Software Requirements
1.2. Generating the Design
1.3. Directory Structure
1.4. Simulating the Design Example Testbench
1.5. Compiling the Compilation-Only Project
1.6. Compiling and Configuring the Design Example in Hardware
1.7. Testing the eCPRI Intel FPGA IP Design Example
1.8. Generating and Downloading the Executable and Linking Format (.elf) Programming File
Visible to Intel only — GUID: jym1713307929455
Ixiasoft
1.8. Generating and Downloading the Executable and Linking Format (.elf) Programming File
This task describes how to generate and build a Nios V processor software project. For a streamlined build flow, ensure you create the same directory tree in your design project as in this task..
- In your design project directory,, create a directory software.
- In the software directory,, create two directories app and bsp.
- Copy all the files in <design_example_dir>/synthesis/ed_fw to <design_example_dir>/synthesis/quartus/software/app.
The design files are:
c2_reconfig.h c3_funtion.c c3_recongifg.c c3_reconfig.h flow.c flow.h main.c
- Generate the BSP:
- Launch the Nios V Command Shell
- Go to <design_example_dir>/synthesis/quartus/software directory.
- Run the following command.
niosv-bsp -c --quartus-project=../ecpri_ed.qpf -- qsys=../../ip_components/nios_system.qsys --type=hal ./bsp/settings.bsp
- Generate the application project:
niosv-app --bsp-dir=./bsp --app-dir=./app --srcs=./app/ --elf-name=nios_system.elf
- Build the application project:
cmake -G "Unix Makefiles" -S ./app -B ./app/build make -C ./app/build
The nios_system.elf file is generated in the <design_example_dir>/synthesis/quartus/software/app/build directory. - Program the Nios V processor:
- Go to <design_example_dir>/synthesis/quartus/software/app/build
- Type the following command in the Nios V Command Shell.
- For Stratix 10 devices:
niosv-download -g -r nios_system.elf -c 1 -d 1 -i 0
- For Agilex 7 devices:
niosv-download -g -r nios_system.elf -c 1 -d 0 -i 0
- For Stratix 10 devices: