Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
The FP MegaFunction data width can't be reduced below 32 bit single precision. FP format (it's using a normalized mantissa and an exponent) is basically different from fixed point format.
- Altera_Forum
Honored Contributor
--- Quote Start --- The FP MegaFunction data width can't be reduced below 32 bit single precision. FP format (it's using a normalized mantissa and an exponent) is basically different from fixed point format. --- Quote End --- So, if I wanted to use fixed point arithmetic would that mean that I would have to write my own cores for all the arithmetic(+,-,/,*,exp) myself? - Altera_Forum
Honored Contributor
I now understand the difference between fixed and floating point well. So to use the fixed point arithmetic with Verilog, is there no library support like in VHDL? Also consider the following:
reg [7:0] a; reg [7:0] b; reg [15:0] c; c<=a*b; c<=a/b; c<=a+b; c<=a-b; Would the following expressions be valid for +,-,/,* operations in fixed point arithmetic? Thanks for the pointers.