Forum Discussion
Issue after upgrading a Nios V/g core from version 1.0.0 to 4.0.0
- 1 year 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.
Hello,
Here some suggestions you can check.
- Verify using "System Console" that your NIOSV does not have any reset/clock issue. Navigate to "System Explorer", then unroll the drop-down menu "device"-><device>-> look for warnings or issues in the view.
- Try using the juart-terminal with - d <#> -i <#> switches (looking for other <#>)
- Using the programmer, you can slowdown the JTAG clocking. In the Quartus Programmer, go to "Hardware Setup.." and reduce the frequency in "Hardware Frequency"
- Have you try generating a .hex file for your program and using it in the CPU RAM?
- Please verify after doing the "Automatic Upgrade" that nothing was disconnected in your "Platform Designer Project" (this could happen)
Just to clarify, are you seeing any printing in the "juart-terminal" at all? Or the CPU starts to execute and then stalls?
Thanks,
~E.V
- Benitez__Domingo1 year ago
Occasional Contributor
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.