Jul 20, 2011 #1 C chikaofili Junior Member level 3 Joined Jun 29, 2011 Messages 30 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,510 Hello, I know there is the $realtobits and $bitstoreal. But that is for double precision. I need help in converting from integer to floating point (single precision). Are there libraries for that in Verilog? Thanks in advance Chika
Hello, I know there is the $realtobits and $bitstoreal. But that is for double precision. I need help in converting from integer to floating point (single precision). Are there libraries for that in Verilog? Thanks in advance Chika
Jul 20, 2011 #2 K kalyanasv Full Member level 3 Joined May 17, 2011 Messages 189 Helped 48 Reputation 96 Reaction score 46 Trophy points 1,308 Location NY Activity points 2,455 Hi, This is library for the floating point operations: **broken link removed**. Converting an integer to IEEE 754 is rather straightforward: wherein you need the fraction part (divide to make it a fraction), exponent and sign. I presume your implementing this. System C has a few more data types as well.
Hi, This is library for the floating point operations: **broken link removed**. Converting an integer to IEEE 754 is rather straightforward: wherein you need the fraction part (divide to make it a fraction), exponent and sign. I presume your implementing this. System C has a few more data types as well.