- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To perform the floating point multiplication in the Floating Point Custom Instruction which is inbuilt, how should I pass the values from the nios code?
Do I have to use a specific format for the numbers or use additional instructions in nios code for the floating point multiplication to be offloaded to the custom instruction hardware ?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The custom instructions use the standard ieee format used by C for 'float' variables.
If you want to use the custom instructions you need to ensure that you never use 'double' - so all constants need to be explictly marked (eg 1.5f). You may need to check carefully that none of the C library functions are unexpectedly called.
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