I am working on designing a hardware for floating point unit used in MAC of dsp's. In order to verify functionality of the hardware, the inputs are to be a real number obtained from matlab. Since, in verilog real datatype inputs are not possible, what is the algorithm to convert a real number to binary. All the other sources on the internet seems to explain the ways for conversion of fractions that have denominators in the power of 2. But, I am finding real difficulty in understanding the conversion of any general number like 0.367, etc.

More Raiyyan Masumdar's questions See All
Similar questions and discussions