Hi,
I have to implement mathématical function in VHDL. That function was previously done in C and uses floating point as input and output. I wonder how to simply deal with floating point in VHDL. It does not seem to be a predefined type from VHDL packages and I see 2 ways of doing it:
- Define my own type and use it as a normal type like integer or signed inside langage but I guess I also need to create my own function for mathematical operation (+, -, *, /)
- Instantiate floating point unit IP, but in that case I become target dependant (in case using core generator from Xilinx).
If you got any clue doing it simply it would help me.
Thanks.
I have to implement mathématical function in VHDL. That function was previously done in C and uses floating point as input and output. I wonder how to simply deal with floating point in VHDL. It does not seem to be a predefined type from VHDL packages and I see 2 ways of doing it:
- Define my own type and use it as a normal type like integer or signed inside langage but I guess I also need to create my own function for mathematical operation (+, -, *, /)
- Instantiate floating point unit IP, but in that case I become target dependant (in case using core generator from Xilinx).
If you got any clue doing it simply it would help me.
Thanks.