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

Module : hmac
SCORELINECONDTOGGLEFSMBRANCHASSERT
83.24 94.90 77.89 100.00 40.00 86.67 100.00

Source File(s) :
/workspace/default/sim-vcs/../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut 84.28 94.90 84.09 100.00 40.00 86.67 100.00



Module Instance : tb.dut

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
84.28 94.90 84.09 100.00 40.00 86.67 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
96.82 98.36 96.63 100.00 90.62 95.83 99.49


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
tb


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_alert_tx[0].u_prim_alert_sender 100.00 100.00
hmac_csr_assert 100.00 100.00
intr_hw_fifo_empty 100.00 100.00 100.00 100.00 100.00
intr_hw_hmac_done 100.00 100.00 100.00 100.00 100.00
intr_hw_hmac_err 100.00 100.00 100.00 100.00 100.00
tlul_assert_device 100.00 100.00 100.00 100.00
u_hmac 96.79 97.17 95.45 100.00 94.55
u_msg_fifo 100.00 100.00 100.00 100.00 100.00
u_packer 100.00 100.00 100.00 100.00 100.00
u_prim_sha2_256 96.14 96.46 94.87 100.00 93.22
u_reg 99.52 99.83 97.74 100.00 100.00 100.00
u_tlul_adapter 97.46 98.54 100.00 98.44 92.86

Line Coverage for Module : hmac
Line No.TotalCoveredPercent
TOTAL15714994.90
CONT_ASSIGN12111100.00
CONT_ASSIGN12211100.00
CONT_ASSIGN12311100.00
ALWAYS13515960.00
ALWAYS17733100.00
CONT_ASSIGN18511100.00
CONT_ASSIGN18611100.00
ALWAYS18988100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN21411100.00
CONT_ASSIGN21711100.00
CONT_ASSIGN21811100.00
CONT_ASSIGN21911100.00
CONT_ASSIGN22011100.00
CONT_ASSIGN22111100.00
CONT_ASSIGN22211100.00
CONT_ASSIGN22311100.00
CONT_ASSIGN22411100.00
CONT_ASSIGN22611100.00
CONT_ASSIGN22711100.00
CONT_ASSIGN22811100.00
CONT_ASSIGN22911100.00
CONT_ASSIGN23211100.00
CONT_ASSIGN23311100.00
CONT_ASSIGN23811100.00
CONT_ASSIGN23911100.00
CONT_ASSIGN24011100.00
ALWAYS24366100.00
ALWAYS25344100.00
ALWAYS26866100.00
ALWAYS28144100.00
CONT_ASSIGN28711100.00
CONT_ASSIGN33111100.00
CONT_ASSIGN33411100.00
CONT_ASSIGN33811100.00
CONT_ASSIGN33911100.00
CONT_ASSIGN34111100.00
CONT_ASSIGN34211100.00
CONT_ASSIGN34311100.00
CONT_ASSIGN34411100.00
CONT_ASSIGN39811100.00
ALWAYS40333100.00
ALWAYS41111981.82
CONT_ASSIGN43011100.00
CONT_ASSIGN43111100.00
CONT_ASSIGN43911100.00
CONT_ASSIGN44011100.00
CONT_ASSIGN55111100.00
CONT_ASSIGN57911100.00
CONT_ASSIGN58011100.00
CONT_ASSIGN58111100.00
ALWAYS58466100.00
CONT_ASSIGN60011100.00
ALWAYS60566100.00
CONT_ASSIGN63311100.00
CONT_ASSIGN65211100.00
CONT_ASSIGN65611100.00
ALWAYS65833100.00
CONT_ASSIGN66411100.00
ALWAYS68666100.00
ALWAYS69366100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' or '../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
121 1 1
122 1 1
123 1 1
135 1 1
136 1 1
138 1 1
140 1 1
142 1 1
143 1 1
145 0 1
MISSING_ELSE
150 1 1
151 1 1
152 1 1
MISSING_ELSE
157 0 1
161 0 1
==> MISSING_ELSE
166 0 1
167 0 1
168 0 1
==> MISSING_ELSE
177 1 1
178 1 1
180 1 1
185 1 1
186 1 1
189 1 1
190 1 1
191 1 1
192 1 1
193 1 1
195 1 1
196 1 1
197 1 1
MISSING_ELSE
MISSING_ELSE
206 8 8
208 8 8
209 8 8
214 1 1
217 1 1
218 1 1
219 1 1
220 1 1
221 1 1
222 1 1
223 1 1
224 1 1
226 1 1
227 1 1
228 1 1
229 1 1
232 1 1
233 1 1
238 1 1
239 1 1
240 1 1
243 1 1
244 1 1
245 1 1
246 1 1
247 1 1
248 1 1
MISSING_ELSE
253 1 1
254 1 1
261 1 1
262 1 1
MISSING_ELSE
268 1 1
269 1 1
270 1 1
271 1 1
272 1 1
273 1 1
MISSING_ELSE
281 1 1
282 1 1
283 1 1
284 1 1
MISSING_ELSE
287 1 1
331 1 1
334 1 1
338 1 1
339 1 1
341 1 1
342 1 1
343 1 1
344 1 1
398 1 1
403 1 1
404 1 1
405 1 1
411 1 1
412 1 1
414 1 1
415 1 1
416 0 1
MISSING_ELSE
418 1 1
419 0 1
MISSING_ELSE
MISSING_ELSE
422 1 1
423 1 1
424 1 1
425 1 1
MISSING_ELSE
430 1 1
431 1 1
439 1 1
440 1 1
551 1 1
579 1 1
580 1 1
581 1 1
584 1 1
585 1 1
586 1 1
587 1 1
588 1 1
MISSING_ELSE
592 1 1
600 1 1
605 1 1
606 1 1
608 1 1
612 1 1
616 1 1
620 1 1
633 1 1
652 1 1
656 1 1
658 1 1
659 1 1
661 1 1
664 1 1
686 2 2
687 2 2
688 2 2
MISSING_ELSE
693 2 2
694 2 2
695 2 2
MISSING_ELSE


Cond Coverage for Module : hmac
TotalCoveredPercent
Conditions957477.89
Logical957477.89
Non-Logical00
Event00

 LINE       157
 EXPRESSION (sha_message_length[8:0] == '0)
            ---------------1---------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       226
 EXPRESSION (reg2hw.cmd.hash_start.qe & reg2hw.cmd.hash_start.q)
             ------------1-----------   -----------2-----------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       227
 EXPRESSION (reg2hw.cmd.hash_stop.qe & reg2hw.cmd.hash_stop.q)
             -----------1-----------   -----------2----------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Not Covered

 LINE       228
 EXPRESSION (reg2hw.cmd.hash_continue.qe & reg2hw.cmd.hash_continue.q)
             -------------1-------------   -------------2------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Not Covered

 LINE       229
 EXPRESSION (reg2hw.cmd.hash_process.qe & reg2hw.cmd.hash_process.q)
             -------------1------------   ------------2------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       238
 EXPRESSION (reg_hash_start & sha_en & ((~cfg_block)))
             -------1------   ---2--   -------3------
-1--2--3-StatusTests
011CoveredT1,T2,T3
101CoveredT4,T5,T6
110CoveredT7,T4,T5
111CoveredT1,T2,T3

 LINE       239
 EXPRESSION (reg_hash_continue & sha_en & ((~cfg_block)))
             --------1--------   ---2--   -------3------
-1--2--3-StatusTests
011CoveredT1,T2,T3
101Not Covered
110Not Covered
111Not Covered

 LINE       240
 EXPRESSION (hash_start | hash_continue)
             -----1----   ------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       247
 EXPRESSION (reg_hash_done || reg_hash_stop)
             ------1------    ------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       261
 EXPRESSION (((!cfg_block)) && reg2hw.cfg.hmac_en.qe)
             -------1------    ----------2----------
-1--2-StatusTests
01CoveredT3,T8,T7
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       287
 EXPRESSION (fifo_empty & ((~fifo_empty_q)))
             -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       331
 EXPRESSION (msg_fifo_req & ((~msg_fifo_we)))
             ------1-----   --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Not Covered

 LINE       334
 EXPRESSION (msg_fifo_req & ((~hmac_fifo_wsel)) & packer_ready)
             ------1-----   ---------2---------   ------3-----
-1--2--3-StatusTests
011CoveredT1,T2,T3
101Not Covered
110UnreachableT2,T9,T10
111CoveredT1,T2,T3

 LINE       343
 EXPRESSION ((hmac_fifo_wsel && fifo_wready) ? hmac_fifo_wvalid : reg_fifo_wvalid)
             ---------------1---------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T11

 LINE       343
 SUB-EXPRESSION (hmac_fifo_wsel && fifo_wready)
                 -------1------    -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T11

 LINE       344
 EXPRESSION (hmac_fifo_wsel ? ('{data:digest[hmac_fifo_wdata_sel][31:0], mask:'1}) : reg_fifo_wentry)
             -------1------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T11

 LINE       351
 EXPRESSION (fifo_wvalid & sha_en)
             -----1-----   ---2--
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       398
 EXPRESSION (msg_fifo_req & msg_fifo_we & ((~hmac_fifo_wsel)) & msg_allowed)
             ------1-----   -----2-----   ---------3---------   -----4-----
-1--2--3--4-StatusTests
0111CoveredT1,T2,T3
1011Not Covered
1101Not Covered
1110CoveredT7,T4,T5
1111CoveredT1,T2,T3

 LINE       424
 EXPRESSION (msg_write && sha_en && packer_ready)
             ----1----    ---2--    ------3-----
-1--2--3-StatusTests
011CoveredT1,T2,T3
101Not Covered
110UnreachableT2,T9,T10
111CoveredT1,T2,T3

 LINE       446
 EXPRESSION (msg_write & sha_en)
             ----1----   ---2--
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       446
 EXPRESSION (fifo_wready & ((~hmac_fifo_wsel)))
             -----1-----   ---------2---------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T11
11CoveredT1,T2,T3

 LINE       551
 SUB-EXPRESSION (reg2hw.alert_test.q & reg2hw.alert_test.qe)
                 ---------1---------   ----------2---------
-1--2-StatusTests
01CoveredT12,T13,T14
10CoveredT1,T2,T3
11CoveredT12,T14,T15

 LINE       579
 EXPRESSION ((reg_hash_start | reg_hash_continue) & ((~sha_en)))
             ------------------1-----------------   -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT4,T5,T6

 LINE       579
 SUB-EXPRESSION (reg_hash_start | reg_hash_continue)
                 -------1------   --------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       580
 EXPRESSION ((reg_hash_start | reg_hash_continue) & cfg_block)
             ------------------1-----------------   ----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT7,T4,T5

 LINE       580
 SUB-EXPRESSION (reg_hash_start | reg_hash_continue)
                 -------1------   --------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       581
 EXPRESSION (msg_fifo_req & ((~msg_allowed)))
             ------1-----   --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT7,T4,T5

 LINE       600
 EXPRESSION (((~reg2hw.intr_state.hmac_err.q)) & (hash_start_sha_disabled | update_seckey_inprocess | hash_start_active | msg_push_not_allowed))
             ----------------1----------------   -----------------------------------------------2----------------------------------------------
-1--2-StatusTests
01CoveredT7,T4,T5
10CoveredT1,T2,T3
11CoveredT3,T7,T4

 LINE       600
 SUB-EXPRESSION (hash_start_sha_disabled | update_seckey_inprocess | hash_start_active | msg_push_not_allowed)
                 -----------1-----------   -----------2-----------   --------3--------   ----------4---------
-1--2--3--4-StatusTests
0000CoveredT1,T2,T3
0001CoveredT7,T4,T5
0010CoveredT7,T4,T5
0100CoveredT3,T7,T4
1000CoveredT4,T5,T6

 LINE       652
 EXPRESSION (((!reg_fifo_wvalid)) && ((!fifo_rvalid)) && hmac_core_idle && sha_core_idle)
             ----------1---------    --------2-------    -------3------    ------4------
-1--2--3--4-StatusTests
0111Not Covered
1011Not Covered
1101CoveredT1,T2,T11
1110CoveredT1,T2,T3
1111CoveredT1,T2,T3

Toggle Coverage for Module : hmac
TotalCoveredPercent
Totals 30 30 100.00
Total Bits 346 346 100.00
Total Bits 0->1 173 173 100.00
Total Bits 1->0 173 173 100.00

Ports 30 30 100.00
Port Bits 346 346 100.00
Port Bits 0->1 173 173 100.00
Port Bits 1->0 173 173 100.00

Port Details
NameToggleToggle 1->0TestsToggle 0->1TestsDirection
clk_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
rst_ni Yes Yes T7,T16,T5 Yes T1,T2,T3 INPUT
tl_i.d_ready Yes Yes T3,T17,T12 Yes T1,T2,T3 INPUT
tl_i.a_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.cmd_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.instr_type[3:0] Yes Yes T2,T10,T18 Yes T2,T10,T18 INPUT
tl_i.a_user.rsvd[4:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_mask[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_address[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_param[2:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_opcode[2:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_o.a_ready Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_error Yes Yes T7,T19,T20 Yes T7,T19,T20 OUTPUT
tl_o.d_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[5:0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[6] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_sink Unreachable Unreachable Unreachable OUTPUT
tl_o.d_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_param[2:0] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_opcode[0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_opcode[2:1] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_i[0].ack_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i[0].ack_p Yes Yes T12,T14,T15 Yes T12,T14,T15 INPUT
alert_rx_i[0].ping_n Unreachable Unreachable Unreachable INPUT
alert_rx_i[0].ping_p Unreachable Unreachable Unreachable INPUT
alert_tx_o[0].alert_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_tx_o[0].alert_p Yes Yes T12,T14,T15 Yes T12,T14,T15 OUTPUT
intr_hmac_done_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
intr_fifo_empty_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
intr_hmac_err_o Yes Yes T3,T7,T4 Yes T3,T7,T4 OUTPUT
idle_o[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT

*Tests covering at least one bit in the range

FSM Coverage for Module : hmac
Summary for FSM :: done_state_q
TotalCoveredPercent
States 4 2 50.00 (Not included in score)
Transitions 5 2 40.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: done_state_q
statesLine No.CoveredTests
DoneAwaitCmd 152 Covered T1,T2,T3
DoneAwaitHashComplete 161 Not Covered
DoneAwaitHashDone 142 Covered T1,T2,T3
DoneAwaitMessageComplete 145 Not Covered


transitionsLine No.CoveredTests
DoneAwaitCmd->DoneAwaitHashDone 142 Covered T1,T2,T3
DoneAwaitCmd->DoneAwaitMessageComplete 145 Not Covered
DoneAwaitHashComplete->DoneAwaitCmd 168 Not Covered
DoneAwaitHashDone->DoneAwaitCmd 152 Covered T1,T2,T3
DoneAwaitMessageComplete->DoneAwaitHashComplete 161 Not Covered



Branch Coverage for Module : hmac
Line No.TotalCoveredPercent
Branches 60 52 86.67
TERNARY 343 2 2 100.00
TERNARY 344 2 2 100.00
CASE 138 10 4 40.00
IF 177 2 2 100.00
IF 189 4 4 100.00
IF 243 4 4 100.00
IF 253 3 3 100.00
IF 268 4 4 100.00
IF 281 3 3 100.00
IF 411 9 7 77.78
IF 585 2 2 100.00
CASE 606 5 5 100.00
IF 658 2 2 100.00
IF 686 4 4 100.00
IF 693 4 4 100.00

WARNING: The source file /workspace/default/sim-vcs/../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' or '../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv was not found/opened, so annotated branch coverage report could not be generated.

LineNo. Expression -1-: 343 ((hmac_fifo_wsel && fifo_wready)) ?

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


LineNo. Expression -1-: 344 (hmac_fifo_wsel) ?

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


LineNo. Expression -1-: 138 case (done_state_q) -2-: 140 if (sha_hash_process) -3-: 143 if (reg_hash_stop) -4-: 150 if (reg_hash_done) -5-: 157 if ((sha_message_length[8:0] == '0)) -6-: 166 if ((!hash_running))

Branches:
-1--2--3--4--5--6-StatusTests
DoneAwaitCmd 1 - - - - Covered T1,T2,T3
DoneAwaitCmd 0 1 - - - Not Covered
DoneAwaitCmd 0 0 - - - Covered T1,T2,T3
DoneAwaitHashDone - - 1 - - Covered T1,T2,T3
DoneAwaitHashDone - - 0 - - Covered T1,T2,T3
DoneAwaitMessageComplete - - - 1 - Not Covered
DoneAwaitMessageComplete - - - 0 - Not Covered
DoneAwaitHashComplete - - - - 1 Not Covered
DoneAwaitHashComplete - - - - 0 Not Covered
default - - - - - Not Covered


LineNo. Expression -1-: 177 if ((!rst_ni))

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


LineNo. Expression -1-: 189 if ((!rst_ni)) -2-: 191 if (wipe_secret) -3-: 193 if ((!cfg_block))

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


LineNo. Expression -1-: 243 if ((!rst_ni)) -2-: 245 if (hash_start_or_continue) -3-: 247 if ((reg_hash_done || reg_hash_stop))

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


LineNo. Expression -1-: 253 if ((!rst_ni)) -2-: 261 if (((!cfg_block) && reg2hw.cfg.hmac_en.qe))

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


LineNo. Expression -1-: 268 if ((!rst_ni)) -2-: 270 if (hash_start_or_continue) -3-: 272 if (packer_flush_done)

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


LineNo. Expression -1-: 281 if ((!rst_ni)) -2-: 283 if ((!hmac_fifo_wsel))

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


LineNo. Expression -1-: 411 if ((!rst_ni)) -2-: 414 if ((!cfg_block)) -3-: 415 if (reg2hw.msg_length_lower.qe) -4-: 418 if (reg2hw.msg_length_upper.qe) -5-: 422 if (hash_start) -6-: 424 if (((msg_write && sha_en) && packer_ready))

Branches:
-1--2--3--4--5--6-StatusTests
1 - - - - - Covered T1,T2,T3
0 1 1 - - - Not Covered
0 1 0 - - - Covered T1,T2,T3
0 1 - 1 - - Not Covered
0 1 - 0 - - Covered T1,T2,T3
0 0 - - - - Covered T1,T2,T3
0 - - - 1 - Covered T1,T2,T3
0 - - - 0 1 Covered T1,T2,T3
0 - - - 0 0 Covered T1,T2,T3


LineNo. Expression -1-: 585 if (cfg_block)

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


LineNo. Expression -1-: 606 case (1'b1)

Branches:
-1-StatusTests
hash_start_sha_disabled Covered T4,T5,T6
update_seckey_inprocess Covered T3,T7,T4
hash_start_active Covered T7,T4,T5
msg_push_not_allowed Covered T7,T4,T5
default Covered T1,T2,T3


LineNo. Expression -1-: 658 if ((!rst_ni))

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


LineNo. Expression -1-: 686 if ((!rst_ni)) -2-: 687 if (reg_hash_process) -3-: 688 if (reg_hash_done)

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


LineNo. Expression -1-: 693 if ((!rst_ni)) -2-: 694 if (hash_start_or_continue) -3-: 695 if (reg_hash_process)

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


Assert Coverage for Module : hmac
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 13 13 100.00 13 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 13 13 100.00 13 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AlertKnownO_A 367591876 367521080 0 0
FpvSecCmRegWeOnehotCheck_A 367591876 120 0 0
IntrFifoEmptyOKnown 367591876 367521080 0 0
IntrHmacDoneOKnown 367591876 367521080 0 0
TlOAReadyKnown 367591876 367521080 0 0
TlODValidKnown 367591876 367521080 0 0
ValidHashProcessAssert 367591876 40786 0 0
ValidHmacEnConditionAssert 367591876 10186 0 0
ValidWriteAssert 367591876 22839114 0 0
gen_assert_wmask_bytealign[0].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[1].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[2].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[3].unnamed$$_0 367591876 22839114 0 0


AlertKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

FpvSecCmRegWeOnehotCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 120 0 0
T23 8121 30 0 0
T24 0 30 0 0
T25 0 20 0 0
T26 0 10 0 0
T27 0 30 0 0
T28 335555 0 0 0
T29 73317 0 0 0
T30 5050 0 0 0
T31 32724 0 0 0
T32 306846 0 0 0
T33 1005 0 0 0
T34 102340 0 0 0
T35 413116 0 0 0
T36 1475 0 0 0

IntrFifoEmptyOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

IntrHmacDoneOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

TlOAReadyKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

TlODValidKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

ValidHashProcessAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 40786 0 0
T1 16424 7 0 0
T2 15443 6 0 0
T3 240080 194 0 0
T9 106473 36 0 0
T10 31187 10 0 0
T11 14163 39 0 0
T12 1037 0 0 0
T17 101861 25 0 0
T18 0 13 0 0
T21 9830 26 0 0
T22 239168 39 0 0

ValidHmacEnConditionAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 10186 0 0
T1 16424 5 0 0
T2 15443 3 0 0
T3 240080 0 0 0
T9 106473 18 0 0
T10 31187 4 0 0
T11 14163 20 0 0
T12 1037 0 0 0
T17 101861 11 0 0
T18 0 1 0 0
T21 9830 15 0 0
T22 239168 17 0 0
T37 0 2 0 0

ValidWriteAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[0].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[1].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[2].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[3].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

Line Coverage for Instance : tb.dut
Line No.TotalCoveredPercent
TOTAL15714994.90
CONT_ASSIGN12111100.00
CONT_ASSIGN12211100.00
CONT_ASSIGN12311100.00
ALWAYS13515960.00
ALWAYS17733100.00
CONT_ASSIGN18511100.00
CONT_ASSIGN18611100.00
ALWAYS18988100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20611100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20811100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN20911100.00
CONT_ASSIGN21411100.00
CONT_ASSIGN21711100.00
CONT_ASSIGN21811100.00
CONT_ASSIGN21911100.00
CONT_ASSIGN22011100.00
CONT_ASSIGN22111100.00
CONT_ASSIGN22211100.00
CONT_ASSIGN22311100.00
CONT_ASSIGN22411100.00
CONT_ASSIGN22611100.00
CONT_ASSIGN22711100.00
CONT_ASSIGN22811100.00
CONT_ASSIGN22911100.00
CONT_ASSIGN23211100.00
CONT_ASSIGN23311100.00
CONT_ASSIGN23811100.00
CONT_ASSIGN23911100.00
CONT_ASSIGN24011100.00
ALWAYS24366100.00
ALWAYS25344100.00
ALWAYS26866100.00
ALWAYS28144100.00
CONT_ASSIGN28711100.00
CONT_ASSIGN33111100.00
CONT_ASSIGN33411100.00
CONT_ASSIGN33811100.00
CONT_ASSIGN33911100.00
CONT_ASSIGN34111100.00
CONT_ASSIGN34211100.00
CONT_ASSIGN34311100.00
CONT_ASSIGN34411100.00
CONT_ASSIGN39811100.00
ALWAYS40333100.00
ALWAYS41111981.82
CONT_ASSIGN43011100.00
CONT_ASSIGN43111100.00
CONT_ASSIGN43911100.00
CONT_ASSIGN44011100.00
CONT_ASSIGN55111100.00
CONT_ASSIGN57911100.00
CONT_ASSIGN58011100.00
CONT_ASSIGN58111100.00
ALWAYS58466100.00
CONT_ASSIGN60011100.00
ALWAYS60566100.00
CONT_ASSIGN63311100.00
CONT_ASSIGN65211100.00
CONT_ASSIGN65611100.00
ALWAYS65833100.00
CONT_ASSIGN66411100.00
ALWAYS68666100.00
ALWAYS69366100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' or '../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
121 1 1
122 1 1
123 1 1
135 1 1
136 1 1
138 1 1
140 1 1
142 1 1
143 1 1
145 0 1
MISSING_ELSE
150 1 1
151 1 1
152 1 1
MISSING_ELSE
157 0 1
161 0 1
==> MISSING_ELSE
166 0 1
167 0 1
168 0 1
==> MISSING_ELSE
177 1 1
178 1 1
180 1 1
185 1 1
186 1 1
189 1 1
190 1 1
191 1 1
192 1 1
193 1 1
195 1 1
196 1 1
197 1 1
MISSING_ELSE
MISSING_ELSE
206 8 8
208 8 8
209 8 8
214 1 1
217 1 1
218 1 1
219 1 1
220 1 1
221 1 1
222 1 1
223 1 1
224 1 1
226 1 1
227 1 1
228 1 1
229 1 1
232 1 1
233 1 1
238 1 1
239 1 1
240 1 1
243 1 1
244 1 1
245 1 1
246 1 1
247 1 1
248 1 1
MISSING_ELSE
253 1 1
254 1 1
261 1 1
262 1 1
MISSING_ELSE
268 1 1
269 1 1
270 1 1
271 1 1
272 1 1
273 1 1
MISSING_ELSE
281 1 1
282 1 1
283 1 1
284 1 1
MISSING_ELSE
287 1 1
331 1 1
334 1 1
338 1 1
339 1 1
341 1 1
342 1 1
343 1 1
344 1 1
398 1 1
403 1 1
404 1 1
405 1 1
411 1 1
412 1 1
414 1 1
415 1 1
416 0 1
MISSING_ELSE
418 1 1
419 0 1
MISSING_ELSE
MISSING_ELSE
422 1 1
423 1 1
424 1 1
425 1 1
MISSING_ELSE
430 1 1
431 1 1
439 1 1
440 1 1
551 1 1
579 1 1
580 1 1
581 1 1
584 1 1
585 1 1
586 1 1
587 1 1
588 1 1
MISSING_ELSE
592 1 1
600 1 1
605 1 1
606 1 1
608 1 1
612 1 1
616 1 1
620 1 1
633 1 1
652 1 1
656 1 1
658 1 1
659 1 1
661 1 1
664 1 1
686 2 2
687 2 2
688 2 2
MISSING_ELSE
693 2 2
694 2 2
695 2 2
MISSING_ELSE


Cond Coverage for Instance : tb.dut
TotalCoveredPercent
Conditions887484.09
Logical887484.09
Non-Logical00
Event00

 LINE       157
 EXPRESSION (sha_message_length[8:0] == '0)
            ---------------1---------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       226
 EXPRESSION (reg2hw.cmd.hash_start.qe & reg2hw.cmd.hash_start.q)
             ------------1-----------   -----------2-----------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       227
 EXPRESSION (reg2hw.cmd.hash_stop.qe & reg2hw.cmd.hash_stop.q)
             -----------1-----------   -----------2----------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Not Covered

 LINE       228
 EXPRESSION (reg2hw.cmd.hash_continue.qe & reg2hw.cmd.hash_continue.q)
             -------------1-------------   -------------2------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Not Covered

 LINE       229
 EXPRESSION (reg2hw.cmd.hash_process.qe & reg2hw.cmd.hash_process.q)
             -------------1------------   ------------2------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       238
 EXPRESSION (reg_hash_start & sha_en & ((~cfg_block)))
             -------1------   ---2--   -------3------
-1--2--3-StatusTests
011CoveredT1,T2,T3
101CoveredT4,T5,T6
110CoveredT7,T4,T5
111CoveredT1,T2,T3

 LINE       239
 EXPRESSION (reg_hash_continue & sha_en & ((~cfg_block)))
             --------1--------   ---2--   -------3------
-1--2--3-StatusTests
011CoveredT1,T2,T3
101Not Covered
110Not Covered
111Not Covered

 LINE       240
 EXPRESSION (hash_start | hash_continue)
             -----1----   ------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       247
 EXPRESSION (reg_hash_done || reg_hash_stop)
             ------1------    ------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       261
 EXPRESSION (((!cfg_block)) && reg2hw.cfg.hmac_en.qe)
             -------1------    ----------2----------
-1--2-StatusTests
01CoveredT3,T8,T7
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       287
 EXPRESSION (fifo_empty & ((~fifo_empty_q)))
             -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       331
 EXPRESSION (msg_fifo_req & ((~msg_fifo_we)))
             ------1-----   --------2-------
-1--2-StatusTestsExclude Annotation
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11Excluded VC_COV_UNR

 LINE       334
 EXPRESSION (msg_fifo_req & ((~hmac_fifo_wsel)) & packer_ready)
             ------1-----   ---------2---------   ------3-----
-1--2--3-StatusTests
011CoveredT1,T2,T3
101Not Covered
110UnreachableT2,T9,T10
111CoveredT1,T2,T3

 LINE       343
 EXPRESSION ((hmac_fifo_wsel && fifo_wready) ? hmac_fifo_wvalid : reg_fifo_wvalid)
             ---------------1---------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T11

 LINE       343
 SUB-EXPRESSION (hmac_fifo_wsel && fifo_wready)
                 -------1------    -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T11

 LINE       344
 EXPRESSION (hmac_fifo_wsel ? ('{data:digest[hmac_fifo_wdata_sel][31:0], mask:'1}) : reg_fifo_wentry)
             -------1------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T11

 LINE       351
 EXPRESSION (fifo_wvalid & sha_en)
             -----1-----   ---2--
-1--2-StatusTestsExclude Annotation
01CoveredT1,T2,T3
10Excluded VC_COV_UNR
11CoveredT1,T2,T3

 LINE       398
 EXPRESSION (msg_fifo_req & msg_fifo_we & ((~hmac_fifo_wsel)) & msg_allowed)
             ------1-----   -----2-----   ---------3---------   -----4-----
-1--2--3--4-StatusTestsExclude Annotation
0111CoveredT1,T2,T3
1011Excluded VC_COV_UNR
1101Excluded VC_COV_UNR
1110CoveredT7,T4,T5
1111CoveredT1,T2,T3

 LINE       424
 EXPRESSION (msg_write && sha_en && packer_ready)
             ----1----    ---2--    ------3-----
-1--2--3-StatusTestsExclude Annotation
011CoveredT1,T2,T3
101Excluded VC_COV_UNR
110UnreachableT2,T9,T10
111CoveredT1,T2,T3

 LINE       446
 EXPRESSION (msg_write & sha_en)
             ----1----   ---2--
-1--2-StatusTestsExclude Annotation
01CoveredT1,T2,T3
10Excluded VC_COV_UNR
11CoveredT1,T2,T3

 LINE       446
 EXPRESSION (fifo_wready & ((~hmac_fifo_wsel)))
             -----1-----   ---------2---------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T11
11CoveredT1,T2,T3

 LINE       551
 SUB-EXPRESSION (reg2hw.alert_test.q & reg2hw.alert_test.qe)
                 ---------1---------   ----------2---------
-1--2-StatusTests
01CoveredT12,T13,T14
10CoveredT1,T2,T3
11CoveredT12,T14,T15

 LINE       579
 EXPRESSION ((reg_hash_start | reg_hash_continue) & ((~sha_en)))
             ------------------1-----------------   -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT4,T5,T6

 LINE       579
 SUB-EXPRESSION (reg_hash_start | reg_hash_continue)
                 -------1------   --------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       580
 EXPRESSION ((reg_hash_start | reg_hash_continue) & cfg_block)
             ------------------1-----------------   ----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT7,T4,T5

 LINE       580
 SUB-EXPRESSION (reg_hash_start | reg_hash_continue)
                 -------1------   --------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       581
 EXPRESSION (msg_fifo_req & ((~msg_allowed)))
             ------1-----   --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT7,T4,T5

 LINE       600
 EXPRESSION (((~reg2hw.intr_state.hmac_err.q)) & (hash_start_sha_disabled | update_seckey_inprocess | hash_start_active | msg_push_not_allowed))
             ----------------1----------------   -----------------------------------------------2----------------------------------------------
-1--2-StatusTests
01CoveredT7,T4,T5
10CoveredT1,T2,T3
11CoveredT3,T7,T4

 LINE       600
 SUB-EXPRESSION (hash_start_sha_disabled | update_seckey_inprocess | hash_start_active | msg_push_not_allowed)
                 -----------1-----------   -----------2-----------   --------3--------   ----------4---------
-1--2--3--4-StatusTests
0000CoveredT1,T2,T3
0001CoveredT7,T4,T5
0010CoveredT7,T4,T5
0100CoveredT3,T7,T4
1000CoveredT4,T5,T6

 LINE       652
 EXPRESSION (((!reg_fifo_wvalid)) && ((!fifo_rvalid)) && hmac_core_idle && sha_core_idle)
             ----------1---------    --------2-------    -------3------    ------4------
-1--2--3--4-StatusTestsExclude Annotation
0111Excluded VC_COV_UNR
1011Not Covered
1101CoveredT1,T2,T11
1110CoveredT1,T2,T3
1111CoveredT1,T2,T3

Toggle Coverage for Instance : tb.dut
TotalCoveredPercent
Totals 30 30 100.00
Total Bits 346 346 100.00
Total Bits 0->1 173 173 100.00
Total Bits 1->0 173 173 100.00

Ports 30 30 100.00
Port Bits 346 346 100.00
Port Bits 0->1 173 173 100.00
Port Bits 1->0 173 173 100.00

Port Details
NameToggleToggle 1->0TestsToggle 0->1TestsDirection
clk_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
rst_ni Yes Yes T7,T16,T5 Yes T1,T2,T3 INPUT
tl_i.d_ready Yes Yes T3,T17,T12 Yes T1,T2,T3 INPUT
tl_i.a_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.cmd_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.instr_type[3:0] Yes Yes T2,T10,T18 Yes T2,T10,T18 INPUT
tl_i.a_user.rsvd[4:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_mask[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_address[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_param[2:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_opcode[2:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_o.a_ready Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_error Yes Yes T7,T19,T20 Yes T7,T19,T20 OUTPUT
tl_o.d_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[5:0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[6] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_sink Unreachable Unreachable Unreachable OUTPUT
tl_o.d_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_param[2:0] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_opcode[0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_opcode[2:1] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_i[0].ack_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i[0].ack_p Yes Yes T12,T14,T15 Yes T12,T14,T15 INPUT
alert_rx_i[0].ping_n Unreachable Unreachable Unreachable INPUT
alert_rx_i[0].ping_p Unreachable Unreachable Unreachable INPUT
alert_tx_o[0].alert_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_tx_o[0].alert_p Yes Yes T12,T14,T15 Yes T12,T14,T15 OUTPUT
intr_hmac_done_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
intr_fifo_empty_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
intr_hmac_err_o Yes Yes T3,T7,T4 Yes T3,T7,T4 OUTPUT
idle_o[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT

*Tests covering at least one bit in the range

FSM Coverage for Instance : tb.dut
Summary for FSM :: done_state_q
TotalCoveredPercent
States 4 2 50.00 (Not included in score)
Transitions 5 2 40.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: done_state_q
statesLine No.CoveredTests
DoneAwaitCmd 152 Covered T1,T2,T3
DoneAwaitHashComplete 161 Not Covered
DoneAwaitHashDone 142 Covered T1,T2,T3
DoneAwaitMessageComplete 145 Not Covered


transitionsLine No.CoveredTests
DoneAwaitCmd->DoneAwaitHashDone 142 Covered T1,T2,T3
DoneAwaitCmd->DoneAwaitMessageComplete 145 Not Covered
DoneAwaitHashComplete->DoneAwaitCmd 168 Not Covered
DoneAwaitHashDone->DoneAwaitCmd 152 Covered T1,T2,T3
DoneAwaitMessageComplete->DoneAwaitHashComplete 161 Not Covered



Branch Coverage for Instance : tb.dut
Line No.TotalCoveredPercent
Branches 60 52 86.67
TERNARY 343 2 2 100.00
TERNARY 344 2 2 100.00
CASE 138 10 4 40.00
IF 177 2 2 100.00
IF 189 4 4 100.00
IF 243 4 4 100.00
IF 253 3 3 100.00
IF 268 4 4 100.00
IF 281 3 3 100.00
IF 411 9 7 77.78
IF 585 2 2 100.00
CASE 606 5 5 100.00
IF 658 2 2 100.00
IF 686 4 4 100.00
IF 693 4 4 100.00

WARNING: The source file /workspace/default/sim-vcs/../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv' or '../src/lowrisc_ip_hmac_0.1/rtl/hmac.sv was not found/opened, so annotated branch coverage report could not be generated.

LineNo. Expression -1-: 343 ((hmac_fifo_wsel && fifo_wready)) ?

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


LineNo. Expression -1-: 344 (hmac_fifo_wsel) ?

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


LineNo. Expression -1-: 138 case (done_state_q) -2-: 140 if (sha_hash_process) -3-: 143 if (reg_hash_stop) -4-: 150 if (reg_hash_done) -5-: 157 if ((sha_message_length[8:0] == '0)) -6-: 166 if ((!hash_running))

Branches:
-1--2--3--4--5--6-StatusTests
DoneAwaitCmd 1 - - - - Covered T1,T2,T3
DoneAwaitCmd 0 1 - - - Not Covered
DoneAwaitCmd 0 0 - - - Covered T1,T2,T3
DoneAwaitHashDone - - 1 - - Covered T1,T2,T3
DoneAwaitHashDone - - 0 - - Covered T1,T2,T3
DoneAwaitMessageComplete - - - 1 - Not Covered
DoneAwaitMessageComplete - - - 0 - Not Covered
DoneAwaitHashComplete - - - - 1 Not Covered
DoneAwaitHashComplete - - - - 0 Not Covered
default - - - - - Not Covered


LineNo. Expression -1-: 177 if ((!rst_ni))

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


LineNo. Expression -1-: 189 if ((!rst_ni)) -2-: 191 if (wipe_secret) -3-: 193 if ((!cfg_block))

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


LineNo. Expression -1-: 243 if ((!rst_ni)) -2-: 245 if (hash_start_or_continue) -3-: 247 if ((reg_hash_done || reg_hash_stop))

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


LineNo. Expression -1-: 253 if ((!rst_ni)) -2-: 261 if (((!cfg_block) && reg2hw.cfg.hmac_en.qe))

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


LineNo. Expression -1-: 268 if ((!rst_ni)) -2-: 270 if (hash_start_or_continue) -3-: 272 if (packer_flush_done)

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


LineNo. Expression -1-: 281 if ((!rst_ni)) -2-: 283 if ((!hmac_fifo_wsel))

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


LineNo. Expression -1-: 411 if ((!rst_ni)) -2-: 414 if ((!cfg_block)) -3-: 415 if (reg2hw.msg_length_lower.qe) -4-: 418 if (reg2hw.msg_length_upper.qe) -5-: 422 if (hash_start) -6-: 424 if (((msg_write && sha_en) && packer_ready))

Branches:
-1--2--3--4--5--6-StatusTests
1 - - - - - Covered T1,T2,T3
0 1 1 - - - Not Covered
0 1 0 - - - Covered T1,T2,T3
0 1 - 1 - - Not Covered
0 1 - 0 - - Covered T1,T2,T3
0 0 - - - - Covered T1,T2,T3
0 - - - 1 - Covered T1,T2,T3
0 - - - 0 1 Covered T1,T2,T3
0 - - - 0 0 Covered T1,T2,T3


LineNo. Expression -1-: 585 if (cfg_block)

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


LineNo. Expression -1-: 606 case (1'b1)

Branches:
-1-StatusTests
hash_start_sha_disabled Covered T4,T5,T6
update_seckey_inprocess Covered T3,T7,T4
hash_start_active Covered T7,T4,T5
msg_push_not_allowed Covered T7,T4,T5
default Covered T1,T2,T3


LineNo. Expression -1-: 658 if ((!rst_ni))

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


LineNo. Expression -1-: 686 if ((!rst_ni)) -2-: 687 if (reg_hash_process) -3-: 688 if (reg_hash_done)

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


LineNo. Expression -1-: 693 if ((!rst_ni)) -2-: 694 if (hash_start_or_continue) -3-: 695 if (reg_hash_process)

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


Assert Coverage for Instance : tb.dut
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 13 13 100.00 13 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 13 13 100.00 13 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AlertKnownO_A 367591876 367521080 0 0
FpvSecCmRegWeOnehotCheck_A 367591876 120 0 0
IntrFifoEmptyOKnown 367591876 367521080 0 0
IntrHmacDoneOKnown 367591876 367521080 0 0
TlOAReadyKnown 367591876 367521080 0 0
TlODValidKnown 367591876 367521080 0 0
ValidHashProcessAssert 367591876 40786 0 0
ValidHmacEnConditionAssert 367591876 10186 0 0
ValidWriteAssert 367591876 22839114 0 0
gen_assert_wmask_bytealign[0].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[1].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[2].unnamed$$_0 367591876 22839114 0 0
gen_assert_wmask_bytealign[3].unnamed$$_0 367591876 22839114 0 0


AlertKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

FpvSecCmRegWeOnehotCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 120 0 0
T23 8121 30 0 0
T24 0 30 0 0
T25 0 20 0 0
T26 0 10 0 0
T27 0 30 0 0
T28 335555 0 0 0
T29 73317 0 0 0
T30 5050 0 0 0
T31 32724 0 0 0
T32 306846 0 0 0
T33 1005 0 0 0
T34 102340 0 0 0
T35 413116 0 0 0
T36 1475 0 0 0

IntrFifoEmptyOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

IntrHmacDoneOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

TlOAReadyKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

TlODValidKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 367521080 0 0
T1 16424 16369 0 0
T2 15443 15382 0 0
T3 240080 240074 0 0
T9 106473 106417 0 0
T10 31187 31107 0 0
T11 14163 14111 0 0
T12 1037 985 0 0
T17 101861 101774 0 0
T21 9830 9772 0 0
T22 239168 239101 0 0

ValidHashProcessAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 40786 0 0
T1 16424 7 0 0
T2 15443 6 0 0
T3 240080 194 0 0
T9 106473 36 0 0
T10 31187 10 0 0
T11 14163 39 0 0
T12 1037 0 0 0
T17 101861 25 0 0
T18 0 13 0 0
T21 9830 26 0 0
T22 239168 39 0 0

ValidHmacEnConditionAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 10186 0 0
T1 16424 5 0 0
T2 15443 3 0 0
T3 240080 0 0 0
T9 106473 18 0 0
T10 31187 4 0 0
T11 14163 20 0 0
T12 1037 0 0 0
T17 101861 11 0 0
T18 0 1 0 0
T21 9830 15 0 0
T22 239168 17 0 0
T37 0 2 0 0

ValidWriteAssert
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[0].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[1].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[2].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

gen_assert_wmask_bytealign[3].unnamed$$_0
NameAttemptsReal SuccessesFailuresIncomplete
Total 367591876 22839114 0 0
T1 16424 2796 0 0
T2 15443 8564 0 0
T3 240080 74193 0 0
T9 106473 74165 0 0
T10 31187 21639 0 0
T11 14163 480 0 0
T12 1037 0 0 0
T17 101861 8900 0 0
T18 0 11706 0 0
T21 9830 238 0 0
T22 239168 22761 0 0

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