mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 03:47:20 -04:00
Restored previous RTL with coverage exclusion
This commit is contained in:
parent
0995c85452
commit
64a741c0b7
1 changed files with 8 additions and 2 deletions
|
@ -154,8 +154,11 @@ module fctrl import cvw::*; #(parameter cvw_t P) (
|
|||
7'b11100??: if (Funct3D == 3'b001 & Rs2D == 5'b00000)
|
||||
ControlsD = `FCTRLW'b0_1_10_00_000_0_0_0_0_0; // fclass
|
||||
else if (Funct3D == 3'b000 & Rs2D == 5'b00000) begin
|
||||
if (~(P.XLEN != 64 & Fmt[1:0] == 2'b01))
|
||||
// coverage off
|
||||
// without Q support, the FMT field is guaranteed to match one of these three, so this line cannot be fully covered
|
||||
if (Fmt[1:0] == 2'b00 | Fmt[1:0] == 2'b10 | (P.XLEN == 64 & Fmt[1:0] == 2'b01))
|
||||
ControlsD = `FCTRLW'b0_1_11_00_000_0_0_0_0_0; // fmv.x.w/d/h fp to int register (double only in RV64)
|
||||
// coverage on
|
||||
end else if (P.ZFA_SUPPORTED & P.XLEN == 32 & P.D_SUPPORTED & Funct7D[1:0] == 2'b01 & Funct3D == 3'b000 & Rs2D == 5'b00001)
|
||||
ControlsD = `FCTRLW'b0_1_11_00_000_0_0_0_1_0; // fmvh.x.d (Zfa)
|
||||
// Q not supported in RV64GC
|
||||
|
@ -164,8 +167,11 @@ module fctrl import cvw::*; #(parameter cvw_t P) (
|
|||
ControlsD = `FCTRLW'b0_1_11_00_000_0_0_0_1_0; // fmvh.x.q (Zfa)
|
||||
// coverage on
|
||||
7'b11110??: if (Funct3D == 3'b000 & Rs2D == 5'b00000) begin
|
||||
if (~(P.XLEN != 64 & Fmt[1:0] == 2'b01))
|
||||
// coverage off
|
||||
// without Q support, the FMT field is guaranteed to match one of these three, so this line cannot be fully covered
|
||||
if (Fmt[1:0] == 2'b00 | Fmt[1:0] == 2'b10 | (P.XLEN == 64 & Fmt[1:0] == 2'b01))
|
||||
ControlsD = `FCTRLW'b1_0_00_00_011_0_0_0_0_0; // fmv.w/d/h.x int to fp reg (double only in RV64)
|
||||
// coverage on
|
||||
end else if (P.ZFA_SUPPORTED & Funct3D == 3'b000 & Rs2D == 5'b00001)
|
||||
ControlsD = `FCTRLW'b1_0_00_00_111_0_0_0_1_0; // fli (Zfa)
|
||||
7'b0100000: if (Rs2D[4:2] == 3'b000 & SupportedFmt2 & Rs2D[1:0] != 2'b00)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue