mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 10:15:19 +00:00
removed underflow from inexactct calculation
This commit is contained in:
parent
d6f1fc12db
commit
7268b4b334
@ -1,2 +1,2 @@
|
|||||||
vsim -do "do wally-pipelined.do rv64gc arch64d"
|
vsim -do "do wally-pipelined.do rv32gc wally32periph"
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ module flags(
|
|||||||
|
|
||||||
// Set Inexact flag if the res is diffrent from what would be outputed given infinite precision
|
// Set Inexact flag if the res is diffrent from what would be outputed given infinite precision
|
||||||
// - Don't set the underflow flag if an underflowed res isn't outputed
|
// - Don't set the underflow flag if an underflowed res isn't outputed
|
||||||
assign FpInexact = (S|Overflow|R|Underflow)&~(InfIn|NaNIn|DivByZero);
|
assign FpInexact = (S|Overflow|R)&~(InfIn|NaNIn|DivByZero);
|
||||||
|
|
||||||
// if the res is too small to be represented and not 0
|
// if the res is too small to be represented and not 0
|
||||||
// | and if the res is not invalid (outside the integer bounds)
|
// | and if the res is not invalid (outside the integer bounds)
|
||||||
|
@ -114,7 +114,7 @@ logic [3:0] dummy;
|
|||||||
"arch32f": if (`F_SUPPORTED) tests = arch32f;
|
"arch32f": if (`F_SUPPORTED) tests = arch32f;
|
||||||
"imperas32i": tests = imperas32i;
|
"imperas32i": tests = imperas32i;
|
||||||
"imperas32f": if (`F_SUPPORTED) tests = imperas32f;
|
"imperas32f": if (`F_SUPPORTED) tests = imperas32f;
|
||||||
"wally32d": if (`D_SUPPORTED) tests = wally32d;
|
// "wally32d": if (`D_SUPPORTED) tests = wally32d;
|
||||||
"imperas32m": if (`M_SUPPORTED) tests = imperas32m;
|
"imperas32m": if (`M_SUPPORTED) tests = imperas32m;
|
||||||
"wally32a": if (`A_SUPPORTED) tests = wally32a;
|
"wally32a": if (`A_SUPPORTED) tests = wally32a;
|
||||||
"imperas32c": if (`C_SUPPORTED) tests = imperas32c;
|
"imperas32c": if (`C_SUPPORTED) tests = imperas32c;
|
||||||
|
Loading…
Reference in New Issue
Block a user