- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey can anybody help me designing an ieee-754 to decimal converter in vhdl.......
as it is obvious dat real data type can not be used..... as it is not synthesizable.....in xilinx...... so please help me out......... please give me the vhdl code for it..........Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have asked the same question before. Apparently no forum member has a ready to use solution or is motivated to share it (if so, they probably have respectable reasons). Personally, I'm not involved with float math up to now.
You also got valuable links by batfink. Additionally, I like to refer to synthesizable float packages, that should basically contain the means needed to handle your project. http://www.vhdl.org/vhdl-200x/vhdl-200x-ft/packages/files.html P.S.: As another remark, I don't think that you specified your intentions completely. decimal doesn't designate a particular number format to my opinion. If you intend e.g. a printable number representation, you should tell in detail. There are many options as true integer, fixed or variable decimal point, that affect the design.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
here decimal means the equivalent real value...........
what i want to do is ............ simply to convert a 32 bit binary(ieee-754) to its equivalent float(real value)...........it is obvious that an ieee-754-binary is represented as 1st bit as sign next 8 bits for exponent and the rest 23 bits for mantisa or fraction part........ and equivalnt is a float value(eg:7.35)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"7.35" is a string rather than a float or real value. Do you intend something like a print function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this is not the answer you are after but I post this just in case..
In hardware few people need to use any number system apart from 2's complement or other fixed-point(limited bitwidth). Software engineers have the convenience of using the wide resource demanding float. In hardware fractional 2's complement is possible but I normally use integer 2's complement to represent fractions. An example will illustrate this: A filter has coeffs(1, .9532 .0567...etc) to be represented on 16 bits signed, you scale up in hardware to say (16384, 15617, 929 ...etc)then you multiply by input stages and divide back(truncate 14 bits = divide by 16384) so you get the effect of 1, .9532,.0567 on the input. similarly you want a gain of .000133: you multiply your input by .000133 * 2^20/2^20 i.e. multiply by 139 then truncate 20 bits off yielding .000133 effect.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thankss.... can you tell me the to convert an integer to string.........
as i thing to represent a float or real value the best way is the string...... so help me out ......
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