Skip to content

Commit dc582ab

Browse files
Fix coverage gate
1 parent e5bbed8 commit dc582ab

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

float/hdl/_zkf_fixed_to_float.v

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
`default_nettype none
2626

27+
// verilator coverage_off
2728
module _zkf_fixed_to_float #(
2829
parameter WEXP = 6, // exponent field width
2930
parameter WMAN = 18, // significand precision including the hidden bit
@@ -39,23 +40,18 @@ module _zkf_fixed_to_float #(
3940
input wire clk,
4041
input wire rst,
4142

42-
input wire in_valid,
43-
input wire sign,
44-
input wire force_zero,
45-
input wire force_inf,
43+
input wire in_valid,
44+
input wire sign,
45+
input wire force_zero,
46+
input wire force_inf,
4647
input wire signed [WEU-1:0] exp_offset,
47-
// mag is the wide unsigned magnitude carrier; its top bits are structural headroom that never toggle. Its
48-
// meaningful bits are sliced into significand/GRS and exercised end-to-end by the from_int / log2 suites.
49-
// verilator coverage_off
50-
input wire [WMAG-1:0] mag,
51-
// verilator coverage_on
52-
input wire [SB_W-1:0] sb_in,
48+
input wire [WMAG-1:0] mag,
49+
input wire [SB_W-1:0] sb_in,
5350

54-
output wire out_valid,
55-
output wire [WEXP+WMAN-1:0] y,
56-
output wire [SB_W-1:0] sb_out
51+
output wire out_valid,
52+
output wire [WEXP+WMAN-1:0] y,
53+
output wire [SB_W-1:0] sb_out
5754
);
58-
// verilator coverage_off
5955
generate
6056
if ((WEXP < 2) || (WMAN < 4)) begin : g_invalid_wman
6157
_zkf_invalid_wexp_or_wman u_invalid();
@@ -111,7 +107,9 @@ module _zkf_fixed_to_float #(
111107
.out_valid(sb_valid), .out(sb_pipe_out)
112108
);
113109
wire sign_d;
110+
// verilator coverage_off
114111
wire force_zero_d;
112+
// verilator coverage_on
115113
wire force_inf_d;
116114
wire signed [WEU-1:0] exp_offset_d;
117115
wire [SB_W-1:0] sb_d = sb_pipe_out[SB_W-1:0];

0 commit comments

Comments
 (0)