mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed formatting
This commit is contained in:
parent
1badc8a8c5
commit
4c1a07eb9c
@ -27,22 +27,22 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// convert shift
|
// convert shift
|
||||||
// fp -> int: | `XLEN zeros | Mantissa | 0's if nessisary | << CalcExp
|
// fp -> int: | `XLEN zeros | Mantissa | 0's if necessary | << CalcExp
|
||||||
// process:
|
// process:
|
||||||
// - start - CalcExp = 1 + XExp - Largest Bias
|
// - start - CalcExp = 1 + XExp - Largest Bias
|
||||||
// | `XLEN zeros | Mantissa | 0's if nessisary |
|
// | `XLEN zeros | Mantissa | 0's if necessary |
|
||||||
//
|
//
|
||||||
// - shift left 1 (1)
|
// - shift left 1 (1)
|
||||||
// | `XLEN-1 zeros |bit| frac | 0's if nessisary |
|
// | `XLEN-1 zeros |bit| frac | 0's if necessary |
|
||||||
// . <- binary point
|
// . <- binary point
|
||||||
//
|
//
|
||||||
// - shift left till unbiased exponent is 0 (XExp - Largest Bias)
|
// - shift left till unbiased exponent is 0 (XExp - Largest Bias)
|
||||||
// | 0's | Mantissa | 0's if nessisary |
|
// | 0's | Mantissa | 0's if necessary |
|
||||||
// | keep |
|
// | keep |
|
||||||
//
|
//
|
||||||
// fp -> fp:
|
// fp -> fp:
|
||||||
// - if result is subnormal or underflowed:
|
// - if result is subnormal or underflowed:
|
||||||
// | `NF-1 zeros | Mantissa | 0's if nessisary | << NF+CalcExp-1
|
// | `NF-1 zeros | Mantissa | 0's if necessary | << NF+CalcExp-1
|
||||||
// process:
|
// process:
|
||||||
// - start
|
// - start
|
||||||
// | mantissa | 0's |
|
// | mantissa | 0's |
|
||||||
@ -55,10 +55,10 @@
|
|||||||
// | keep |
|
// | keep |
|
||||||
//
|
//
|
||||||
// - if the input is subnormal:
|
// - if the input is subnormal:
|
||||||
// | lzcIn | 0's if nessisary | << ZeroCnt+1
|
// | lzcIn | 0's if necessary | << ZeroCnt+1
|
||||||
// - plus 1 to shift out the first 1
|
// - plus 1 to shift out the first 1
|
||||||
//
|
//
|
||||||
// int -> fp: | lzcIn | 0's if nessisary | << ZeroCnt+1
|
// int -> fp: | lzcIn | 0's if necessary | << ZeroCnt+1
|
||||||
// - plus 1 to shift out the first 1
|
// - plus 1 to shift out the first 1
|
||||||
|
|
||||||
// fma shift
|
// fma shift
|
||||||
|
Loading…
Reference in New Issue
Block a user