mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 10:15:19 +00:00
Update fcvt.sv
Program clean up
This commit is contained in:
parent
aead7cbe49
commit
e469e4fd20
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// fcvt.sv
|
// fcvt.sv
|
||||||
//
|
//
|
||||||
@ -96,7 +95,7 @@ module fcvt import cvw::*; #(parameter cvw_t P) (
|
|||||||
// int -> fp : | positive integer | 00000... (if needed) |
|
// int -> fp : | positive integer | 00000... (if needed) |
|
||||||
// fp -> fp : | fraction | 00000... (if needed) |
|
// fp -> fp : | fraction | 00000... (if needed) |
|
||||||
assign LzcInFull = IntToFp ? {TrimInt, {P.CVTLEN-P.XLEN+1{1'b0}}} :
|
assign LzcInFull = IntToFp ? {TrimInt, {P.CVTLEN-P.XLEN+1{1'b0}}} :
|
||||||
{Xm, {P.CVTLEN-P.NF{1'b0}}};
|
{Xm, {P.CVTLEN-P.NF{1'b0}}};
|
||||||
|
|
||||||
// used as shifter input in postprocessor
|
// used as shifter input in postprocessor
|
||||||
assign LzcIn = LzcInFull[P.CVTLEN-1:0];
|
assign LzcIn = LzcInFull[P.CVTLEN-1:0];
|
||||||
|
Loading…
Reference in New Issue
Block a user