1
0
Fork 0

Use sNaN value for flw, like other single-precision ops

This commit is contained in:
Andrew Waterman 2017-03-07 17:25:19 -08:00 committed by Andrew Waterman
parent cc389bea90
commit f505aba1ac
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ class FPU(cfg: FPUParams)(implicit p: Parameters) extends FPUModule()(p) {
case 32 => rec_s
case 64 =>
val rec_d = hardfloat.recFNFromFN(dExpWidth, dSigWidth, load_wb_data)
Mux(load_wb_single, Cat(UInt((BigInt(1) << (fLen - 32)) - 1), rec_s), rec_d)
Mux(load_wb_single, rec_s | CanonicalNaN.signaling(maxExpWidth, maxSigWidth), rec_d)
}
// regfile