Forum Discussion
Altera_Forum
Honored Contributor
13 years agoSign bit : Exponent (8 bits) : Mantissa (23 bits)
Keep in mind that the mantissa has the implied '1' that DSL referred to which isn't stored as part of the manatissa field. Back when I was working on floating point stuff I found this webpage very handy: http://www.h-schmidt.net/floatconverter/ieee754.html So DSL said to subtract bits [30:23] and divide bits {1'b1, [22:0]}. For the sign bit you could just XOR those bits since both positive or both negative should result in a positive result (sign bit = 0).