Skip to content

Commit

Permalink
el2_dbg: exclude more lines from coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Wojciech Sipak <[email protected]>
  • Loading branch information
wsipak committed Oct 4, 2024
1 parent 8faf6d0 commit 44814ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions design/dbg/el2_dbg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ import el2_pkg::*;
dbg_nxtstate = IDLE;
dbg_state_en = dmstatus_reg[17]; // resume ack has been updated in the dmstatus register
end
/* All legal values are handled above. Exclude the default part from coverage. */
/*verilator coverage_off*/
default : begin
dbg_nxtstate = IDLE;
dbg_state_en = 1'b0;
Expand All @@ -565,6 +567,7 @@ import el2_pkg::*;
sb_abmem_cmd_done_en = 1'b0;
sb_abmem_data_done_en = 1'b0;
end
/*verilator coverage_on*/
endcase
end // always_comb begin

Expand Down Expand Up @@ -677,6 +680,8 @@ import el2_pkg::*;
sbcs_sbbusy_din = 1'b0;
sbaddress0_reg_wren1 = sbcs_reg[16] & (sbcs_reg[14:12] == 3'b0); // auto increment was set and no error. Update to new address after completing the current command
end
/* All legal values are handled above. Exclude the default part from coverage. */
/*verilator coverage_off*/
default : begin
sb_nxtstate = SBIDLE;
sb_state_en = 1'b0;
Expand All @@ -686,6 +691,7 @@ import el2_pkg::*;
sbcs_sberror_din[2:0] = 3'b0;
sbaddress0_reg_wren1 = 1'b0;
end
/*verilator coverage_on*/
endcase
end // always_comb begin

Expand Down

0 comments on commit 44814ad

Please sign in to comment.