Module Definition
dashboard | hierarchy | modlist | groups | tests | asserts

Module : kmac_staterd
SCORELINECONDTOGGLEFSMBRANCHASSERT
90.00 100.00 70.00 100.00

Source File(s) :
/workspaces/repo/scratch/os_regression_2024_08_24/kmac_masked-sim-vcs/default/sim-vcs/../src/lowrisc_ip_kmac_0.1/rtl/kmac_staterd.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_staterd 90.00 100.00 70.00 100.00



Module Instance : tb.dut.u_staterd

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
90.00 100.00 70.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
89.90 89.96 81.09 88.54 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
98.76 98.75 96.74 100.00 100.00 97.06 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_slicer[0].u_state_slice 100.00 100.00 100.00
gen_slicer[1].u_state_slice 100.00 100.00 100.00
u_tlul_adapter 89.67 89.39 81.51 87.78 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : kmac_staterd
Line No.TotalCoveredPercent
TOTAL1010100.00
ALWAYS8744100.00
CONT_ASSIGN9511100.00
ALWAYS10133100.00
CONT_ASSIGN12111100.00
CONT_ASSIGN12311100.00

86 always_ff @(posedge clk_i or negedge rst_ni) begin 87 1/1 if (!rst_ni) begin Tests: T1 T2 T3  88 1/1 tlram_rdata <= '0; Tests: T1 T2 T3  89 1/1 end else if (tlram_req & ~tlram_we) begin Tests: T1 T2 T3  90 1/1 tlram_rdata <= conv_endian32(tlram_rdata_endian, endian_swap_i); Tests: T1 T2 T3  91 end MISSING_ELSE 92 end 93 94 // Always grant 95 1/1 assign tlram_gnt = tlram_req & ~tlram_we; Tests: T1 T2 T3  96 97 // always no error on reading 98 assign tlram_rerror = '0; 99 100 always_ff @(posedge clk_i or negedge rst_ni) begin 101 2/2 if (!rst_ni) tlram_rvalid <= 1'b0; Tests: T1 T2 T3  | T1 T2 T3  102 1/1 else tlram_rvalid <= tlram_req & !tlram_we; Tests: T1 T2 T3  103 end 104 105 logic [31:0] muxed_state [Share]; 106 107 108 for (genvar i = 0 ; i < Share ; i++) begin : gen_slicer 109 prim_slicer #( 110 .InW (sha3_pkg::StateW), 111 .OutW (32), 112 .IndexW (StateAddrW) 113 ) u_state_slice ( 114 .sel_i (tlram_addr[StateAddrW-1:0]), 115 .data_i (state_i[i]), 116 .data_o (muxed_state[i]) 117 ); 118 end : gen_slicer 119 120 logic [SelAddrW-1:0] addr_sel; 121 1/1 assign addr_sel = tlram_addr[StateAddrW+:SelAddrW]; Tests: T1 T2 T3  122 123 1/1 assign tlram_rdata_endian = int'(addr_sel) < Share ? muxed_state[addr_sel] : 0; Tests: T1 T2 T3 

Cond Coverage for Module : kmac_staterd
TotalCoveredPercent
Conditions10770.00
Logical10770.00
Non-Logical00
Event00

 LINE       89
 EXPRESSION (tlram_req & ((~tlram_we)))
             ----1----   ------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       95
 EXPRESSION (tlram_req & ((~tlram_we)))
             ----1----   ------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       102
 EXPRESSION (tlram_req & ((!tlram_we)))
             ----1----   ------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       123
 EXPRESSION ((int'(addr_sel) < Share) ? muxed_state[addr_sel] : 0)
             ------------1-----------
-1-StatusTests
0Unreachable
1CoveredT1,T2,T3

Branch Coverage for Module : kmac_staterd
Line No.TotalCoveredPercent
Branches 6 6 100.00
TERNARY 123 1 1 100.00
IF 87 3 3 100.00
IF 101 2 2 100.00


123 assign tlram_rdata_endian = int'(addr_sel) < Share ? muxed_state[addr_sel] : 0; -1- ==> ==> (Unreachable)

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Unreachable


87 if (!rst_ni) begin -1- 88 tlram_rdata <= '0; ==> 89 end else if (tlram_req & ~tlram_we) begin -2- 90 tlram_rdata <= conv_endian32(tlram_rdata_endian, endian_swap_i); ==> 91 end MISSING_ELSE ==>

Branches:
-1--2-StatusTests
1 - Covered T1,T2,T3
0 1 Covered T1,T2,T3
0 0 Covered T1,T2,T3


101 if (!rst_ni) tlram_rvalid <= 1'b0; -1- ==> 102 else tlram_rvalid <= tlram_req & !tlram_we; ==>

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T1,T2,T3

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%