mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed formatting
This commit is contained in:
parent
2846a2f567
commit
70599d3153
@ -47,7 +47,7 @@ module cvtshiftcalc import cvw::*; #(parameter cvw_t P) (
|
|||||||
|
|
||||||
// seclect the input to the shifter
|
// seclect the input to the shifter
|
||||||
// fp -> int:
|
// fp -> int:
|
||||||
// | P.XLEN zeros | mantissa | 0's if nessisary |
|
// | P.XLEN zeros | mantissa | 0's if necessary |
|
||||||
// .
|
// .
|
||||||
// Other problems:
|
// Other problems:
|
||||||
// - if shifting to the right (neg CalcExp) then don't a 1 in the round bit (to prevent an incorrect plus 1 later durring rounding)
|
// - if shifting to the right (neg CalcExp) then don't a 1 in the round bit (to prevent an incorrect plus 1 later durring rounding)
|
||||||
@ -58,7 +58,7 @@ module cvtshiftcalc import cvw::*; #(parameter cvw_t P) (
|
|||||||
// | P.NF-1 zeros | mantissa | 0's if nessisary |
|
// | P.NF-1 zeros | mantissa | 0's if nessisary |
|
||||||
// .
|
// .
|
||||||
// - otherwise:
|
// - otherwise:
|
||||||
// | LzcInM | 0's if nessisary |
|
// | LzcInM | 0's if necessary |
|
||||||
// .
|
// .
|
||||||
// change to int shift to the left one
|
// change to int shift to the left one
|
||||||
always_comb
|
always_comb
|
||||||
@ -95,8 +95,6 @@ module cvtshiftcalc import cvw::*; #(parameter cvw_t P) (
|
|||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// determine if the result underflows ??? -> fp
|
// determine if the result underflows ??? -> fp
|
||||||
// - if the first 1 is shifted out of the result then the result underflows
|
// - if the first 1 is shifted out of the result then the result underflows
|
||||||
// - can't underflow an integer to fp conversions
|
// - can't underflow an integer to fp conversions
|
||||||
|
Loading…
Reference in New Issue
Block a user