Fixed Point as an Integer:Īssume we want to represent 8.25 as an integer with the binary point to the left of the 7's bit.
To do this you should make use of the Floating point registers. Your program should output the Floating Point number. You can assume values given will not be out of range. The second value will be a 32-bit Fixed Point number (read as an integer). First value will be the location to the left of the binary point. Your code MUST handle 0 input and negative input.įor Part 1 you will receive two inputs representing the Fixed Point value.A Floating Point tutorial can be found here.In the second part you will extend your program to support the opposite, Floating Point to Fixed Point. In the first part you will develop a Verilog program to convert a Fixed Point binary number to a single precision Floating point number.
CS 161L - Lab 3 Lab 3 - Converting Fixed Point to Floating Point Intro: