Forum Discussion

Benitez__Domingo's avatar
Benitez__Domingo
Icon for Occasional Contributor rankOccasional Contributor
4 months ago
Solved

Issue after upgrading a Nios V/g core from version 1.0.0 to 4.0.0

Hi, I have developed a Quartus project based on the Nios V/g processor for the Terasic DE0-Nano board using Quartus Prime Standard Edition 23.1. The board is connected to a PC via the USB interface....
  • Benitez__Domingo's avatar
    Benitez__Domingo
    4 months ago

    Hi,

    Thank you very much for your suggestions. I checked them all, but I was not successful.

    However, this issue could be fixed as follows.

    The "Branch Prediction" option of the Nios V/g 4.0.0 IP was enabled (24.1std).

    This option is unavailable for the Nios V/g 1.0.0 IP (23.1std).

    I used the software debugger (OpenOCD and riscv32-unknown-elf-gdb) and noted that branches were never taken.

    My program has some branches that are taken and output messages on the display.

    After unchecking the "Branch Prediction" checkbox, the issue was solved, and the program ran correctly.

    Perhaps the issue lies in the branch prediction module of the Nios V/g 4.0.0 IP.

    Regards.
    Domingo.