- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
VHDL 2008 have fixed point types but these feature aren't included in Quartus, downloading from vhdl.org fixed_pkg_c I can use fixed point with add,mul and div but it lack operations like sqrt,exp,sin,etc.. 1) There is a good Fixed Point Math IP or VHDL library? 2) Why Altera have only floating point IP? 3) When fixed point types will be implemented in Quartus? ThanksLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) The package you point to is the arithmatic package, and it works just fine in Quartus (I used it many years ago successfully)
2) because fixed point arithmatic is just integer arithmatic, so no special IP is required 3) No Idea. make an enhancement request for it. The difficulty is in supporting the package generics that 2008 uses. But the '93 compatible versions you have downloaded work just fine.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you
For 1) I mean a libray with trascendental functions like exp,log,etc.. in fixed points without implementing and testing my own algorithm.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I dont know of any. If they exist there may be one on opencores.org. Otherwise you'll have to make your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In folder C:\altera\15.0\quartus\libraries\vhdl\ieee\2008 there are fixed_pkg_vhdl2008.vhd etc.. there is a way to use it without adding files to project?
Because if I add "fixed_float_types_c.vhdl" "fixed_pkg_c.vhdl" to project then Modelsim complaints that (vcom-1295) Function "to_ufixed" has already been defined in this region. and similar messages- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Modelsim have IEEE library with its fixed_pkg_c that conflict with mine in work. There is a way to solve?
Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At the end I created a custom script to compile testbench that exclude fixed_pkg_c and fixed_float_types_c files.
Now all works fine :)
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