- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am confused in trying to differentiate among the two options:
Changing the default data width(32 bits) in Altera floating point ip cores vs Using fixed point ip. Are these two things not the same? If I can reduce the data width of a Altera floating point ip to something of my choice then will it not be the same and as good as using fixed point arithmetic? Thanks for any replies.Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page