mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Unpackinput cleanup
This commit is contained in:
parent
99da6537cc
commit
efe4b3e8fe
@ -262,23 +262,12 @@ module unpackinput (
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
// is the exponent all 0's
|
// Output logic
|
||||||
assign ExpZero = ~ExpNonZero;
|
assign ExpZero = ~ExpNonZero; // is the exponent all 0's?
|
||||||
|
assign Man = {ExpNonZero, Frac}; // add the assumed one (or zero if denormal or zero) to create the significand
|
||||||
// add the assumed one (or zero if denormal or zero) to create the mantissa
|
// *** - force to be a NaN if it isn't properly Nan Boxed
|
||||||
assign Man = {ExpNonZero, Frac};
|
assign NaN = ExpMax & ~FracZero; // is the input a NaN?
|
||||||
|
assign SNaN = NaN&~Frac[`NF-1]; // is the input a singnaling NaN?
|
||||||
// is the input a NaN
|
assign Inf = ExpMax & FracZero; // is the input infinity?
|
||||||
// - force to be a NaN if it isn't properly Nan Boxed
|
assign Zero = ExpZero & FracZero; // is the input zero?
|
||||||
assign NaN = ExpMax & ~FracZero;
|
|
||||||
|
|
||||||
// is the input a singnaling NaN
|
|
||||||
assign SNaN = NaN&~Frac[`NF-1];
|
|
||||||
|
|
||||||
// is the input infinity
|
|
||||||
assign Inf = ExpMax & FracZero;
|
|
||||||
|
|
||||||
// is the input zero
|
|
||||||
assign Zero = ExpZero & FracZero;
|
|
||||||
|
|
||||||
endmodule
|
endmodule
|
Loading…
Reference in New Issue
Block a user