- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm running Quartus 11.0sp1
I think I found an error for the ALTFP_SINCOS megafunction in cosine mode. For negative inputs the result comes out with the wrong sign. Example: cos(-0.1) = -0.995. Since cosine is an even function i.e., cos(x) = cos(-x) it is not that hard to workaround this problem. I have a question about the workaround/fix (solution id: rd12212011_626) for the ALTFP_SINCOS megafunction in sine mode. To workaround this, change the <altfp_sincos_variant_file_name>.vhd file, line 22850 as follows: Change from: wire_mantissanorm_add_datab <= ( "0000000000000000000000" & mantissanormnode_w(12)); Change to: wire_mantissanorm_add_datab <= ( "0000000000000000000000" & mantissanormnode_w(11)); Am I supposed to make the same change in cosine mode?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you get 0.1 into ALTFP_SINCOS?
I try it with declaration real rho = 0.1; But ALTFP_SINCOS cannot accept with real number. Thanks for your reading, waiting for your reply!![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
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