Verilog Code for floating point adder:
Procedure for this stage:
Take the Two 7-bit exponential binary numbers (a and b) and subtracting them. Let the result be named as ‘ediff’. We have to shift (logical right shift) the mantissa of the second number (f2 10digits) based on the ‘ediff’. HERE WE HAVE TO CONSIDER THE HIDDEN BIT IN THE EXPONENTIAL NUMBER.
My Code:
module shifting(a,b,f2,f2_result );
input [6:0]a;
input [6:0]b;
input [9:0]f2;
output...
Read more
Procedure for this stage:
Take the Two 7-bit exponential binary numbers (a and b) and subtracting them. Let the result be named as ‘ediff’. We have to shift (logical right shift) the mantissa of the second number (f2 10digits) based on the ‘ediff’. HERE WE HAVE TO CONSIDER THE HIDDEN BIT IN THE EXPONENTIAL NUMBER.
My Code:
module shifting(a,b,f2,f2_result );
input [6:0]a;
input [6:0]b;
input [9:0]f2;
output...
Read more