Forum Discussion
Chris039
Occasional Contributor
3 years agoFloating point not working in Nios V
Hi,
I run the code below using both Nios V processor and online C code compiler,
#include <stdio.h>
int main() { double total = 5; int number = 1; float percentage = number / total ; pr...
KellyJialin_Goh
Frequent Contributor
3 years agoHi,
Have you added the hardware floating point component on platform designer to carry out the calculation? If not, the Floating Point Hardware component is under Embedded Processors on the Component Library tab.
We do have NIOS II Custom Instruction guide which should be similar to the application of NIOS V for your reference here: https://www.intel.com/content/www/us/en/docs/programmable/683242/current/nios-ii-floating-point-hardware-2-component.html
Thank you.
Regards,
Kelly