URL
https://opencores.org/ocsvn/ft816float/ft816float/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 16 |
Rev 26 |
Line 45... |
Line 45... |
cntlz32 u2 ({mani,9'b111111111}, lz); // '1' bit already unhidden due to denormalized number
|
cntlz32 u2 ({mani,9'b111111111}, lz); // '1' bit already unhidden due to denormalized number
|
|
|
always @*
|
always @*
|
begin
|
begin
|
// sign out always just = sign in
|
// sign out always just = sign in
|
signo = signi;
|
signo <= signi;
|
|
|
// special check for zero
|
// special check for zero
|
if (vz) begin
|
if (vz) begin
|
expo <= 0;
|
expo <= 1'd0;
|
mano <= 0;
|
mano <= 1'd0;
|
end
|
end
|
// convert infinity / nan
|
// convert infinity / nan
|
// infinity in = infinity out
|
// infinity in = infinity out
|
else if (xinf) begin
|
else if (xinf) begin
|
expo <= 15'h7fff;
|
expo <= 15'h7fff;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.