mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed bug in testbench_fp for XLEN > FLEN
This commit is contained in:
parent
0b3bb72280
commit
d182a2925e
@ -821,8 +821,8 @@ module testbench_fp;
|
|||||||
case (UnitVal)
|
case (UnitVal)
|
||||||
`FMAUNIT: Res = FpRes;
|
`FMAUNIT: Res = FpRes;
|
||||||
`DIVUNIT: Res = FpRes;
|
`DIVUNIT: Res = FpRes;
|
||||||
`CMPUNIT: Res = {{(FLEN-XLEN){1'b0}}, CmpRes};
|
`CMPUNIT: Res = {{(FLEN > XLEN ? FLEN-XLEN : XLEN-FLEN){1'b0}}, CmpRes};
|
||||||
`CVTINTUNIT: if (WriteIntVal) Res = {{(FLEN-XLEN){1'b0}}, IntRes}; else Res = FpRes;
|
`CVTINTUNIT: if (WriteIntVal) Res = {{(FLEN > XLEN ? FLEN-XLEN : XLEN-FLEN){1'b0}}, IntRes}; else Res = FpRes;
|
||||||
`CVTFPUNIT: Res = FpRes;
|
`CVTFPUNIT: Res = FpRes;
|
||||||
endcase
|
endcase
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user