- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i need to define a float data , which it is 16 bits , how can i define it , when i try float a; then my results usually be odd. too big or too small , not the data i want to get . so i think there may be fixed definition for float just like the interay data in altera we define them alt_16.:)
thanks a lotLink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why would you want to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
because i have a fft code that run on int data , but i want to operat with floating data ,so i must change the data type , the int data it defined by alt_16, but in C, if i define a data in float ,it is 32 bit , so the number of bit is different ,, ........when i do so , the result of floating data is not what i want , so i thought the problem may be come from the definition .. whether i am wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunjie,
I missed the part about the NIOS IDE interface. Sorry about that. I would think that this type question would be better answered in the NIOS Forum section, rather then in the "Hardware" type sections that are mostly in here. Good luck, Avatar- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok ,thanks anyway , best wishes for you:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you're on your own with this problem. Some GPUs have a 16-bit floating point data type, but the C compiler for Nios does not.
I'm sure that, if you built a C++ library for 16-bit floating point, other people would be interested in it too.- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page