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

Module : lc_ctrl_fsm
SCORELINECONDTOGGLEFSMBRANCHASSERT
90.61 97.77 89.13 75.51 97.33 93.33

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_lc_ctrl_fsm 96.77 98.87 93.02 100.00 98.63 93.33



Module Instance : tb.dut.u_lc_ctrl_fsm

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
96.77 98.87 93.02 100.00 98.63 93.33


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
96.91 99.39 89.84 100.00 97.67 97.67


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
94.72 100.00 83.10 99.89 100.00 90.62 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_syncs[0].u_prim_lc_sync_flash_rma_ack 100.00 100.00 100.00 100.00
gen_syncs[1].u_prim_lc_sync_flash_rma_ack 100.00 100.00 100.00 100.00
u_cnt_regs 100.00 100.00 100.00 100.00
u_fsm_state_regs 100.00 100.00 100.00 100.00
u_lc_ctrl_fsm_cov_if 96.97 100.00 90.91 100.00
u_lc_ctrl_signal_decode 98.86 99.21 97.37 100.00
u_lc_ctrl_state_decode 98.89 100.00 100.00 96.67
u_lc_ctrl_state_transition 89.97 98.48 75.00 96.43
u_prim_lc_sender_check_byp_en 100.00 100.00 100.00
u_prim_lc_sender_clk_byp_req 100.00 100.00 100.00
u_prim_lc_sender_flash_rma_req 100.00 100.00 100.00
u_prim_lc_sync_clk_byp_ack 100.00 100.00 100.00 100.00
u_prim_lc_sync_flash_rma_ack_buf 100.00 100.00 100.00
u_prim_lc_sync_rma_token_valid 100.00 100.00 100.00
u_prim_lc_sync_test_token_valid 100.00 100.00 100.00
u_state_regs 100.00 100.00 100.00 100.00

Line Coverage for Module : lc_ctrl_fsm
Line No.TotalCoveredPercent
TOTAL17917597.77
CONT_ASSIGN12611100.00
ALWAYS14633100.00
CONT_ASSIGN17111100.00
CONT_ASSIGN17811100.00
CONT_ASSIGN17911100.00
ALWAYS20411411096.49
ALWAYS58433100.00
ALWAYS58533100.00
ALWAYS58633100.00
ALWAYS58933100.00
ALWAYS60855100.00
CONT_ASSIGN61911100.00
CONT_ASSIGN66611100.00
CONT_ASSIGN66711100.00
CONT_ASSIGN66811100.00
ALWAYS6771515100.00
ALWAYS7121414100.00
CONT_ASSIGN73211100.00
CONT_ASSIGN73611100.00
CONT_ASSIGN74011100.00
CONT_ASSIGN74211100.00
CONT_ASSIGN74911100.00
ALWAYS88233100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_lc_ctrl_0.1/rtl/lc_ctrl_fsm.sv' or '../src/lowrisc_ip_lc_ctrl_0.1/rtl/lc_ctrl_fsm.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
126 1 1
146 1 1
147 1 1
148 1 1
171 1 1
178 1 1
179 1 1
204 1 1
205 1 1
206 1 1
209 1 1
210 1 1
213 1 1
216 1 1
217 1 1
218 1 1
219 1 1
220 1 1
223 1 1
224 1 1
231 1 1
232 1 1
238 1 1
239 1 1
240 1 1
242 1 1
247 1 1
248 1 1
249 1 1
250 1 1
251 1 1
252 1 1
254 1 1
255 1 1
MISSING_ELSE
263 1 1
273 1 1
277 1 1
278 1 1
MISSING_ELSE
284 1 1
285 1 1
293 1 1
295 1 1
299 1 1
301 1 1
305 1 1
309 1 1
312 1 1
314 1 1
316 0 1
317 0 1
321 1 1
326 1 1
327 1 1
MISSING_ELSE
333 1 1
350 1 1
351 1 1
MISSING_ELSE
MISSING_ELSE
364 1 1
365 1 1
382 1 1
383 1 1
384 1 1
385 1 1
MISSING_ELSE
388 1 1
391 1 1
398 1 1
399 1 1
401 1 1
407 1 1
411 1 1
412 1 1
413 1 1
MISSING_ELSE
418 1 1
419 1 1
420 1 1
421 1 1
423 1 1
MISSING_ELSE
431 1 1
432 1 1
434 1 1
445 1 1
446 1 1
452 1 1
455 1 1
457 1 1
458 1 1
MISSING_ELSE
466 1 1
467 1 1
468 1 1
469 1 1
MISSING_ELSE
472 1 1
482 1 1
483 1 1
487 1 1
493 1 1
496 1 1
499 1 1
501 1 1
504 0 1
505 0 1
509 1 1
510 1 1
520 1 1
524 1 1
525 1 1
526 1 1
529 1 1
533 1 1
534 1 1
535 1 1
536 1 1
537 1 1
538 1 1
MISSING_ELSE
544 1 1
549 1 1
554 1 1
555 1 1
567 1 1
568 1 1
574 1 1
575 1 1
576 1 1
MISSING_ELSE
584 3 3
585 3 3
586 3 3
589 1 1
590 1 1
592 1 1
608 1 1
609 1 1
610 1 1
612 1 1
615 1 1
619 1 1
666 1 1
667 1 1
668 1 1
677 1 1
679 1 1
681 1 1
684 1 1
685 1 1
MISSING_ELSE
687 1 1
688 1 1
MISSING_ELSE
691 1 1
692 1 1
MISSING_ELSE
694 1 1
695 1 1
MISSING_ELSE
698 1 1
699 1 1
MISSING_ELSE
701 1 1
702 1 1
MISSING_ELSE
712 1 1
713 1 1
714 1 1
715 1 1
716 1 1
717 1 1
718 1 1
720 1 1
721 1 1
722 1 1
723 1 1
724 1 1
725 1 1
726 1 1
732 1 1
736 1 1
740 1 1
742 1 1
749 1 1
882 3 3


Cond Coverage for Module : lc_ctrl_fsm
TotalCoveredPercent
Conditions928289.13
Logical928289.13
Non-Logical00
Event00

 LINE       251
 EXPRESSION (init_req_i && lc_state_valid_q)
             -----1----    --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T6,T38
11CoveredT1,T2,T3

 LINE       284
 EXPRESSION (lc_state_q == LcStScrap)
            ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT16,T19,T34

 LINE       293
 EXPRESSION (SecVolatileRawUnlockEn && volatile_raw_unlock_i && trans_cmd_i)
             -----------1----------    ----------2----------    -----3-----
-1--2--3-StatusTests
-01CoveredT2,T4,T12
-10CoveredT13,T8,T39
-11CoveredT13,T39,T40

 LINE       295
 EXPRESSION ((lc_state_q == LcStRaw) && (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}}) && ((!trans_invalid_error_o)))
             -----------1-----------    ----------------------------------------2---------------------------------------    -------------3------------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111CoveredT13,T39,T40

 LINE       295
 SUB-EXPRESSION (lc_state_q == LcStRaw)
                -----------1-----------
-1-StatusTests
0CoveredT13,T39,T41
1CoveredT13,T39,T40

 LINE       295
 SUB-EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}})
                ----------------------------------------1---------------------------------------
-1-StatusTests
0CoveredT13,T39,T41
1CoveredT13,T39,T40

 LINE       299
 EXPRESSION (unhashed_token_i == lc_ctrl_state_pkg::RndCnstRawUnlockTokenHashed)
            ----------------------------------1---------------------------------
-1-StatusTests
0Not Covered
1CoveredT13,T39,T40

 LINE       305
 EXPRESSION ((lc_cnt_q == LcCnt0) ? LcCnt1 : lc_cnt_q)
             ----------1---------
-1-StatusTests
0CoveredT13,T39,T40
1CoveredT41

 LINE       305
 SUB-EXPRESSION (lc_cnt_q == LcCnt0)
                ----------1---------
-1-StatusTests
0CoveredT13,T39,T40
1CoveredT41

 LINE       411
 EXPRESSION (lc_clk_byp_req_o != lc_clk_byp_ack[1])
            -------------------1-------------------
-1-StatusTests
0CoveredT2,T4,T12
1CoveredT12,T5,T36

 LINE       452
 EXPRESSION ((hashed_token_i == hashed_token_mux) && ((!token_hash_err_i)) && ((&hashed_token_valid_mux)))
             ------------------1-----------------    ----------2----------    -------------3-------------
-1--2--3-StatusTests
011CoveredT2,T4,T12
101CoveredT12,T5,T36
110Not Covered
111CoveredT12,T5,T16

 LINE       452
 SUB-EXPRESSION (hashed_token_i == hashed_token_mux)
                ------------------1-----------------
-1-StatusTests
0CoveredT2,T4,T12
1CoveredT12,T5,T16

 LINE       466
 EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
            -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       493
 EXPRESSION ((hashed_token_i == hashed_token_mux) && ((!token_hash_err_i)) && ((&hashed_token_valid_mux)))
             ------------------1-----------------    ----------2----------    -------------3-------------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111CoveredT12,T5,T16

 LINE       493
 SUB-EXPRESSION (hashed_token_i == hashed_token_mux)
                ------------------1-----------------
-1-StatusTests
0Not Covered
1CoveredT12,T5,T16

 LINE       496
 EXPRESSION (fsm_state_q == TokenCheck1St)
            ---------------1--------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT12,T5,T16

 LINE       524
 EXPRESSION (lc_clk_byp_req_o != lc_clk_byp_ack[2])
            -------------------1-------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T46,T47

 LINE       529
 EXPRESSION 
 Number  Term
      1  ((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))) || 
      2  ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))))
-1--2-StatusTests
00CoveredT12,T5,T16
01CoveredT20,T48,T49
10CoveredT20,T50,T51

 LINE       529
 SUB-EXPRESSION ((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off)))
                 -----------------------------------1----------------------------------    --------------------------------2--------------------------------
-1--2-StatusTests
01CoveredT5,T16,T17
10CoveredT12,T5,T16
11CoveredT20,T50,T51

 LINE       529
 SUB-EXPRESSION (trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
                -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       529
 SUB-EXPRESSION ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))
                 -------------1-------------    ----------------2---------------
-1--2-StatusTests
00CoveredT12,T5,T16
01CoveredT20,T50,T51
10Not Covered

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_req_o != Off)
                -------------1-------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_ack_buf[2] != Off)
                ----------------1---------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On)))
                 -----------------------------------1----------------------------------    -------------------------------2-------------------------------
-1--2-StatusTests
01CoveredT12,T5,T16
10CoveredT5,T16,T17
11CoveredT20,T48,T49

 LINE       529
 SUB-EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
                -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))
                 -------------1------------    ---------------2---------------
-1--2-StatusTests
00CoveredT5,T16,T17
01CoveredT20,T48,T49
10CoveredT52,T53,T54

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_req_o != On)
                -------------1------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_ack_buf[2] != On)
                ---------------1---------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       567
 EXPRESSION (esc_scrap_state0_i || esc_scrap_state1_i)
             ---------1--------    ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT3,T12,T5
10CoveredT3,T12,T5

 LINE       574
 EXPRESSION ((((|state_invalid_error)) | token_if_fsm_err_i) && (fsm_state_q != EscalateSt))
             -----------------------1-----------------------    -------------2-------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T6,T17
11CoveredT3,T6,T17

 LINE       574
 SUB-EXPRESSION (((|state_invalid_error)) | token_if_fsm_err_i)
                 ------------1-----------   ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT3,T6,T17
10CoveredT3,T6,T17

 LINE       574
 SUB-EXPRESSION (fsm_state_q != EscalateSt)
                -------------1-------------
-1-StatusTests
0CoveredT3,T12,T5
1CoveredT1,T2,T3

 LINE       612
 SUB-EXPRESSION (set_strap_en_override || gen_strap_delay_regs.strap_en_override_q[0])
                 ----------1----------    ---------------------2---------------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT13,T39,T40
10CoveredT13,T39,T40

 LINE       732
 EXPRESSION 
 Number  Term
      1  ((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates)) ? lc_ctrl_pkg::TransTokenIdxMatrix[dec_lc_state_o[0]][trans_target_i[0]] : InvalidTokenIdx)
-1-StatusTests
0UnreachableT1,T2,T3
1CoveredT1,T2,T3

 LINE       732
 SUB-EXPRESSION ((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates))
                 -----------------------------1----------------------------    -----------------------------2----------------------------
-1--2-StatusTests
01UnreachableT1,T2,T3
10UnreachableT7,T8,T9
11CoveredT1,T2,T3

 LINE       736
 EXPRESSION 
 Number  Term
      1  ((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates)) ? lc_ctrl_pkg::TransTokenIdxMatrix[dec_lc_state_o[1]][trans_target_i[1]] : InvalidTokenIdx)
-1-StatusTests
0UnreachableT1,T2,T3
1CoveredT1,T2,T3

 LINE       736
 SUB-EXPRESSION ((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates))
                 -----------------------------1----------------------------    -----------------------------2----------------------------
-1--2-StatusTests
01UnreachableT1,T2,T3
10UnreachableT8,T10,T27
11CoveredT1,T2,T3

 LINE       749
 EXPRESSION (trans_invalid_error || (token_idx0 != token_idx1))
             ---------1---------    -------------2------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT8,T9,T10
10CoveredT12,T13,T5

 LINE       749
 SUB-EXPRESSION (token_idx0 != token_idx1)
                -------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT8,T9,T10

FSM Coverage for Module : lc_ctrl_fsm
Summary for FSM :: fsm_state_q
TotalCoveredPercent
States 15 15 100.00 (Not included in score)
Transitions 47 35 74.47
Sequences 0 0

State, Transition and Sequence Details for FSM :: fsm_state_q
statesLine No.CoveredTests
ClkMuxSt 327 Covered T2,T4,T12
CntIncrSt 385 Covered T2,T4,T12
CntProgSt 401 Covered T2,T4,T12
EscalateSt 568 Covered T3,T12,T5
FlashRmaSt 455 Covered T12,T5,T16
IdleSt 252 Covered T1,T2,T3
InvalidSt 575 Covered T3,T6,T17
PostTransSt 317 Covered T2,T4,T12
ResetSt 246 Covered T1,T2,T3
ScrapSt 285 Covered T16,T19,T34
TokenCheck0St 469 Covered T12,T5,T16
TokenCheck1St 501 Covered T12,T5,T16
TokenHashSt 434 Covered T2,T4,T12
TransCheckSt 423 Covered T2,T4,T12
TransProgSt 499 Covered T12,T5,T16


transitionsLine No.CoveredTests
ClkMuxSt->CntIncrSt 385 Covered T2,T4,T12
ClkMuxSt->EscalateSt 568 Covered T18,T19,T55
ClkMuxSt->InvalidSt 575 Not Covered
CntIncrSt->CntProgSt 401 Covered T2,T4,T12
CntIncrSt->EscalateSt 568 Covered T55,T56,T57
CntIncrSt->InvalidSt 575 Not Covered
CntIncrSt->PostTransSt 399 Covered T12,T5,T36
CntProgSt->EscalateSt 568 Covered T16,T18,T19
CntProgSt->InvalidSt 575 Not Covered
CntProgSt->PostTransSt 412 Covered T12,T5,T36
CntProgSt->TransCheckSt 423 Covered T2,T4,T12
EscalateSt->InvalidSt 575 Not Covered
FlashRmaSt->EscalateSt 568 Covered T16,T18,T19
FlashRmaSt->InvalidSt 575 Not Covered
FlashRmaSt->TokenCheck0St 469 Covered T12,T5,T16
IdleSt->ClkMuxSt 327 Covered T2,T4,T12
IdleSt->EscalateSt 568 Covered T16,T18,T55
IdleSt->InvalidSt 575 Covered T3,T6,T17
IdleSt->PostTransSt 317 Covered T13,T39,T41
IdleSt->ScrapSt 285 Covered T16,T19,T34
InvalidSt->EscalateSt 568 Covered T3,T6,T17
PostTransSt->EscalateSt 568 Covered T12,T5,T18
PostTransSt->InvalidSt 575 Not Covered
ResetSt->EscalateSt 568 Covered T16,T18,T19
ResetSt->IdleSt 252 Covered T1,T2,T3
ResetSt->InvalidSt 575 Not Covered
ScrapSt->EscalateSt 568 Covered T16,T19,T55
ScrapSt->InvalidSt 575 Covered T58,T59,T60
TokenCheck0St->EscalateSt 568 Covered T16,T61,T56
TokenCheck0St->InvalidSt 575 Not Covered
TokenCheck0St->PostTransSt 483 Covered T12,T5,T36
TokenCheck0St->TokenCheck1St 501 Covered T12,T5,T16
TokenCheck1St->EscalateSt 568 Covered T16,T18,T19
TokenCheck1St->InvalidSt 575 Not Covered
TokenCheck1St->PostTransSt 483 Covered T20,T42,T43
TokenCheck1St->TransProgSt 499 Covered T12,T5,T16
TokenHashSt->EscalateSt 568 Covered T16,T18,T19
TokenHashSt->FlashRmaSt 455 Covered T12,T5,T16
TokenHashSt->InvalidSt 575 Not Covered
TokenHashSt->PostTransSt 457 Covered T2,T4,T12
TransCheckSt->EscalateSt 568 Covered T18,T55,T56
TransCheckSt->InvalidSt 575 Not Covered
TransCheckSt->PostTransSt 432 Covered T12,T5,T36
TransCheckSt->TokenHashSt 434 Covered T2,T4,T12
TransProgSt->EscalateSt 568 Covered T16,T18,T19
TransProgSt->InvalidSt 575 Not Covered
TransProgSt->PostTransSt 525 Covered T12,T5,T17


Summary for FSM :: lc_state_q
TotalCoveredPercent
States 21 12 57.14 (Not included in score)
Transitions 1 1 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: lc_state_q
statesLine No.CoveredTests
LcStDev 92 Not Covered
LcStProd 93 Not Covered
LcStProdEnd 94 Not Covered
LcStRaw 295 Covered T2,T3,T4
LcStRma 333 Not Covered
LcStScrap 284 Not Covered
LcStTestLocked0 333 Covered T2,T3,T4
LcStTestLocked1 333 Covered T2,T3,T4
LcStTestLocked2 333 Covered T3,T4,T12
LcStTestLocked3 333 Covered T2,T3,T4
LcStTestLocked4 333 Covered T2,T3,T4
LcStTestLocked5 333 Not Covered
LcStTestLocked6 333 Not Covered
LcStTestUnlocked0 301 Covered T2,T3,T4
LcStTestUnlocked1 333 Covered T2,T3,T12
LcStTestUnlocked2 333 Covered T1,T2,T3
LcStTestUnlocked3 333 Covered T2,T3,T4
LcStTestUnlocked4 333 Covered T2,T3,T4
LcStTestUnlocked5 333 Covered T2,T3,T4
LcStTestUnlocked6 333 Not Covered
LcStTestUnlocked7 333 Not Covered


transitionsLine No.CoveredTests
LcStRaw->LcStTestUnlocked0 301 Covered T13,T16,T39


Summary for FSM :: lc_cnt_q
TotalCoveredPercent
States 25 6 24.00 (Not included in score)
Transitions 1 1 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: lc_cnt_q
statesLine No.CoveredTests
LcCnt0 305 Covered T42,T43,T41
LcCnt1 305 Covered T2,T3,T12
LcCnt10 112 Not Covered
LcCnt11 113 Not Covered
LcCnt12 114 Not Covered
LcCnt13 115 Not Covered
LcCnt14 116 Not Covered
LcCnt15 117 Not Covered
LcCnt16 118 Not Covered
LcCnt17 119 Not Covered
LcCnt18 120 Not Covered
LcCnt19 121 Not Covered
LcCnt2 104 Covered T2,T3,T4
LcCnt20 122 Not Covered
LcCnt21 123 Not Covered
LcCnt22 124 Not Covered
LcCnt23 125 Not Covered
LcCnt24 126 Not Covered
LcCnt3 105 Covered T2,T3,T4
LcCnt4 106 Covered T2,T3,T4
LcCnt5 107 Covered T2,T3,T4
LcCnt6 108 Not Covered
LcCnt7 109 Not Covered
LcCnt8 110 Not Covered
LcCnt9 111 Not Covered


transitionsLine No.CoveredTests
LcCnt0->LcCnt1 305 Covered T43,T41,T58



Branch Coverage for Module : lc_ctrl_fsm
Line No.TotalCoveredPercent
Branches 75 73 97.33
TERNARY 732 1 1 100.00
TERNARY 736 1 1 100.00
CASE 242 46 44 95.65
IF 567 3 3 100.00
IF 584 2 2 100.00
IF 585 2 2 100.00
IF 586 2 2 100.00
IF 589 2 2 100.00
IF 684 2 2 100.00
IF 687 2 2 100.00
IF 691 2 2 100.00
IF 694 2 2 100.00
IF 698 2 2 100.00
IF 701 2 2 100.00
IF 882 2 2 100.00
IF 608 2 2 100.00

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

LineNo. Expression -1-: 732 (((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates))) ?

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


LineNo. Expression -1-: 736 (((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates))) ?

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


LineNo. Expression -1-: 242 case (fsm_state_q) -2-: 251 if ((init_req_i && lc_state_valid_q)) -3-: 273 if (((!((SecVolatileRawUnlockEn && (lc_state_q == LcStTestUnlocked0)) && (lc_cnt_q != LcCnt0))) || prim_mubi_pkg::mubi8_test_false_loose(volatile_raw_unlock_success_q))) -4-: 284 if ((lc_state_q == LcStScrap)) -5-: 293 if (((SecVolatileRawUnlockEn && volatile_raw_unlock_i) && trans_cmd_i)) -6-: 295 if ((((lc_state_q == LcStRaw) && (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}})) && (!trans_invalid_error_o))) -7-: 299 if ((unhashed_token_i == lc_ctrl_state_pkg::RndCnstRawUnlockTokenHashed)) -8-: 305 ((lc_cnt_q == LcCnt0)) ? -9-: 326 if (trans_cmd_i) -10-: 333 if ((lc_state_q inside {LcStRaw, LcStTestLocked0, LcStTestLocked1, LcStTestLocked2, LcStTestLocked3, LcStTestLocked4, LcStTestLocked5, LcStTestLocked6, LcStTestUnlocked0, LcStTestUnlocked1, LcStTestUnlocked2, LcStTestUnlocked3, LcStTestUnlocked4, LcStTestUnlocked5, LcStTestUnlocked6, LcStTestUnlocked7, LcStRma})) -11-: 350 if (use_ext_clock_i) -12-: 365 if ((lc_state_q inside {LcStRaw, LcStTestLocked0, LcStTestLocked1, LcStTestLocked2, LcStTestLocked3, LcStTestLocked4, LcStTestLocked5, LcStTestLocked6, LcStTestUnlocked0, LcStTestUnlocked1, LcStTestUnlocked2, LcStTestUnlocked3, LcStTestUnlocked4, LcStTestUnlocked5, LcStTestUnlocked6, LcStTestUnlocked7, LcStRma})) -13-: 382 if (use_ext_clock_i) -14-: 384 if (lc_ctrl_pkg::lc_tx_test_true_strict(lc_clk_byp_ack[0])) -15-: 398 if (trans_cnt_oflw_error_o) -16-: 411 if ((lc_clk_byp_req_o != lc_clk_byp_ack[1])) -17-: 418 if (otp_prog_ack_i) -18-: 419 if (otp_prog_err_i) -19-: 431 if (trans_invalid_error_o) -20-: 446 if (token_hash_ack_i) -21-: 452 if ((((hashed_token_i == hashed_token_mux) && (!token_hash_err_i)) && (&hashed_token_valid_mux))) -22-: 466 if ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})) -23-: 468 if (lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_ack_buf[0])) -24-: 482 if (trans_invalid_error_o) -25-: 487 if (((((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && lc_ctrl_pkg::lc_tx_test_false_strict(lc_flash_rma_req_o)) && lc_ctrl_pkg::lc_tx_test_false_strict(lc_flash_rma_ack_buf[1])) || (((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_req_o)) && lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_ack_buf[1])))) -26-: 493 if ((((hashed_token_i == hashed_token_mux) && (!token_hash_err_i)) && (&hashed_token_valid_mux))) -27-: 496 if ((fsm_state_q == TokenCheck1St)) -28-: 524 if ((lc_clk_byp_req_o != lc_clk_byp_ack[2])) -29-: 529 if ((((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))) || ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))))) -30-: 535 if (otp_prog_ack_i)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--16--17--18--19--20--21--22--23--24--25--26--27--28--29--30-StatusTests
ResetSt 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
ResetSt 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T40
IdleSt - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T16,T19,T34
IdleSt - - 0 1 1 1 1 - - - - - - - - - - - - - - - - - - - - - - Covered T41
IdleSt - - 0 1 1 1 0 - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T40
IdleSt - - 0 1 1 0 - - - - - - - - - - - - - - - - - - - - - - - Not Covered
IdleSt - - 0 1 0 - - - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T41
IdleSt - - 0 0 - - - 1 - - - - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
IdleSt - - 0 0 - - - 0 - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - - - - - - - - 1 1 - - - - - - - - - - - - - - - - - - - Covered T7,T34,T9
IdleSt - - - - - - - - 1 0 - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - Covered T2,T3,T4
ClkMuxSt - - - - - - - - - - 1 1 1 - - - - - - - - - - - - - - - - Covered T34,T20,T62
ClkMuxSt - - - - - - - - - - 1 1 0 - - - - - - - - - - - - - - - - Covered T63,T64,T65
ClkMuxSt - - - - - - - - - - 1 0 - - - - - - - - - - - - - - - - - Covered T2,T4,T12
ClkMuxSt - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
CntIncrSt - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - Covered T12,T5,T36
CntIncrSt - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - Covered T12,T5,T36
CntProgSt - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - - 1 1 - - - - - - - - - - - - Covered T20,T66,T67
CntProgSt - - - - - - - - - - - - - - - 1 0 - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - Covered T2,T4,T12
TransCheckSt - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - Covered T12,T5,T36
TransCheckSt - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - Covered T2,T4,T12
TokenHashSt - - - - - - - - - - - - - - - - - - 1 1 - - - - - - - - - Covered T12,T5,T16
TokenHashSt - - - - - - - - - - - - - - - - - - 1 0 - - - - - - - - - Covered T2,T4,T12
TokenHashSt - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - Covered T2,T4,T12
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 1 1 - - - - - - - Covered T5,T16,T17
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 1 0 - - - - - - - Covered T5,T16,T17
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - Covered T68,T69,T70
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 1 1 - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 1 0 - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 0 - - - - Not Covered
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 0 - - - - - Covered T12,T5,T36
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - Covered T5,T46,T47
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 1 - Covered T20,T48,T50
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 0 1 Covered T12,T5,T17
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 0 0 Covered T12,T5,T16
ScrapSt PostTransSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
EscalateSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T12,T5
InvalidSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T6,T17
default - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T6,T37


LineNo. Expression -1-: 567 if ((esc_scrap_state0_i || esc_scrap_state1_i)) -2-: 574 if ((((|state_invalid_error) | token_if_fsm_err_i) && (fsm_state_q != EscalateSt)))

Branches:
-1--2-StatusTests
1 - Covered T3,T12,T5
0 1 Covered T3,T6,T17
0 0 Covered T1,T2,T3


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

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


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

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


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

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


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

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


LineNo. Expression -1-: 684 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[0]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 687 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[1]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 691 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[2]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 694 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[3]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 698 if (lc_ctrl_pkg::lc_tx_test_true_strict(rma_token_valid[0]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 701 if (lc_ctrl_pkg::lc_tx_test_true_strict(rma_token_valid[1]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


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

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


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

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


Assert Coverage for Module : lc_ctrl_fsm
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 15 15 100.00 14 93.33
Cover properties 0 0 0
Cover sequences 0 0 0
Total 15 15 100.00 14 93.33




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
ClkBypStaysOnOnceAsserted_A 112925760 5919591 0 77
EscStaysOnOnceAsserted_A 112925760 19665192 0 4
FlashRmaStaysOnOnceAsserted_A 112925760 663967 0 16
FsmStateKnown_A 112925760 108697020 0 0
LcCntKnown_A 112925760 108697020 0 0
LcStateKnown_A 112925760 108697020 0 0
NoClkBypInProdStates_A 112925760 14642653 0 0
SecCmCFILinear_A 112925760 0 0 2157
SecCmCFITerminal0_A 112925760 13110858 0 0
SecCmCFITerminal1_A 112925760 87804 0 0
SecCmCFITerminal2_A 112925760 7106047 0 0
SecCmCFITerminal3_A 112925760 12488416 0 0
u_cnt_regs_A 104263069 100522005 0 0
u_fsm_state_regs_A 109919393 105873066 0 0
u_state_regs_A 106788136 103047424 0 0


ClkBypStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 5919591 0 77
T7 19992 15570 0 1
T8 32066 0 0 0
T9 0 3395 0 1
T10 0 34917 0 1
T11 93524 0 0 0
T16 24962 0 0 0
T17 4497 0 0 0
T18 26962 0 0 0
T19 15996 0 0 0
T20 0 69976 0 0
T24 1308 0 0 0
T25 1524 0 0 0
T26 936 0 0 0
T27 0 143516 0 1
T29 0 0 0 1
T30 0 0 0 1
T34 0 1048 0 0
T43 0 118470 0 0
T62 0 25539 0 0
T67 0 12456 0 0
T72 0 124 0 0
T73 0 0 0 1
T74 0 0 0 1
T75 0 0 0 1
T76 0 0 0 1

EscStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 19665192 0 4
T3 33260 19271 0 0
T4 81848 0 0 0
T5 204598 5795 0 0
T6 307292 251278 0 0
T7 19992 0 0 0
T12 30025 1797 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 12277 0 0
T17 0 1312 0 0
T18 0 11625 0 0
T19 0 8030 0 0
T23 2165 0 0 0
T34 0 27 0 0
T36 0 1455 0 0
T77 0 0 0 1
T78 0 0 0 1
T79 0 0 0 1
T80 0 0 0 1

FlashRmaStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 663967 0 16
T5 204598 1448 0 0
T6 307292 0 0 0
T7 19992 0 0 0
T8 32066 0 0 0
T15 1760 0 0 0
T16 24962 593 0 0
T17 0 555 0 0
T18 0 420 0 0
T19 0 335 0 0
T20 0 5587 0 0
T23 2165 0 0 0
T24 1308 0 0 0
T25 1524 0 0 0
T26 936 0 0 0
T34 0 780 0 1
T36 0 369 0 0
T37 0 322 0 0
T45 0 1022 0 0
T62 0 0 0 1
T72 0 0 0 1
T81 0 0 0 1
T82 0 0 0 1
T83 0 0 0 1
T84 0 0 0 1
T85 0 0 0 1
T86 0 0 0 1
T87 0 0 0 1

FsmStateKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

LcCntKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

LcStateKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

NoClkBypInProdStates_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 14642653 0 0
T2 27631 3512 0 0
T3 33260 1370 0 0
T4 81848 18678 0 0
T5 204598 21754 0 0
T6 307292 37470 0 0
T8 0 31959 0 0
T12 30025 3702 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 2443 0 0
T17 0 1210 0 0
T18 0 2315 0 0
T23 2165 0 0 0

SecCmCFILinear_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 0 0 2157

SecCmCFITerminal0_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 13110858 0 0
T2 27631 13609 0 0
T3 33260 0 0 0
T4 81848 8871 0 0
T5 204598 82861 0 0
T6 307292 0 0 0
T11 0 3711 0 0
T12 30025 11008 0 0
T13 1101 835 0 0
T14 941 0 0 0
T15 1760 0 0 0
T17 0 687 0 0
T18 0 3 0 0
T23 2165 0 0 0
T34 0 677 0 0
T36 0 10998 0 0

SecCmCFITerminal1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 87804 0 0
T8 32066 0 0 0
T11 93524 0 0 0
T16 24962 3 0 0
T17 4497 0 0 0
T18 26962 0 0 0
T19 15996 3 0 0
T34 9395 27 0 0
T35 1324 0 0 0
T36 28822 0 0 0
T37 9126 0 0 0
T43 0 1988 0 0
T55 0 6 0 0
T61 0 3 0 0
T72 0 26 0 0
T88 0 31 0 0
T89 0 25 0 0
T90 0 50 0 0

SecCmCFITerminal2_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 7106047 0 0
T3 33260 9726 0 0
T4 81848 0 0 0
T5 204598 5804 0 0
T6 307292 54556 0 0
T7 19992 0 0 0
T12 30025 1810 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 12331 0 0
T17 0 922 0 0
T18 0 11685 0 0
T19 0 8076 0 0
T23 2165 0 0 0
T36 0 1465 0 0
T37 0 1462 0 0

SecCmCFITerminal3_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 12488416 0 0
T3 33260 9582 0 0
T4 81848 0 0 0
T5 204598 0 0 0
T6 307292 196760 0 0
T7 19992 0 0 0
T12 30025 0 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T17 0 394 0 0
T20 0 319091 0 0
T23 2165 0 0 0
T37 0 812 0 0
T38 0 7189 0 0
T43 0 52146 0 0
T45 0 1152 0 0
T67 0 130077 0 0
T91 0 84622 0 0

u_cnt_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 104263069 100522005 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 20678 16615 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 181019 177024 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

u_fsm_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 109919393 105873066 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 28806 23297 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 252279 247016 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 106788136 103047424 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 22880 18720 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 238514 233647 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

Line Coverage for Instance : tb.dut.u_lc_ctrl_fsm
Line No.TotalCoveredPercent
TOTAL17717598.87
CONT_ASSIGN12611100.00
ALWAYS14633100.00
CONT_ASSIGN17111100.00
CONT_ASSIGN17811100.00
CONT_ASSIGN17911100.00
ALWAYS20411211098.21
ALWAYS58433100.00
ALWAYS58533100.00
ALWAYS58633100.00
ALWAYS58933100.00
ALWAYS60855100.00
CONT_ASSIGN61911100.00
CONT_ASSIGN66611100.00
CONT_ASSIGN66711100.00
CONT_ASSIGN66811100.00
ALWAYS6771515100.00
ALWAYS7121414100.00
CONT_ASSIGN73211100.00
CONT_ASSIGN73611100.00
CONT_ASSIGN74011100.00
CONT_ASSIGN74211100.00
CONT_ASSIGN74911100.00
ALWAYS88233100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_lc_ctrl_0.1/rtl/lc_ctrl_fsm.sv' or '../src/lowrisc_ip_lc_ctrl_0.1/rtl/lc_ctrl_fsm.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
126 1 1
146 1 1
147 1 1
148 1 1
171 1 1
178 1 1
179 1 1
204 1 1
205 1 1
206 1 1
209 1 1
210 1 1
213 1 1
216 1 1
217 1 1
218 1 1
219 1 1
220 1 1
223 1 1
224 1 1
231 1 1
232 1 1
238 1 1
239 1 1
240 1 1
242 1 1
247 1 1
248 1 1
249 1 1
250 1 1
251 1 1
252 1 1
254 1 1
255 1 1
MISSING_ELSE
263 1 1
273 1 1
277 1 1
278 1 1
MISSING_ELSE
284 1 1
285 1 1
293 1 1
295 1 1
299 1 1
301 1 1
305 1 1
309 1 1
312 1 1
314 1 1
316 excluded
Exclude Annotation: VC_COV_UNR
317 excluded
Exclude Annotation: VC_COV_UNR
321 1 1
326 1 1
327 1 1
MISSING_ELSE
333 1 1
350 1 1
351 1 1
MISSING_ELSE
MISSING_ELSE
364 1 1
365 1 1
382 1 1
383 1 1
384 1 1
385 1 1
MISSING_ELSE
388 1 1
391 1 1
398 1 1
399 1 1
401 1 1
407 1 1
411 1 1
412 1 1
413 1 1
MISSING_ELSE
418 1 1
419 1 1
420 1 1
421 1 1
423 1 1
MISSING_ELSE
431 1 1
432 1 1
434 1 1
445 1 1
446 1 1
452 1 1
455 1 1
457 1 1
458 1 1
MISSING_ELSE
466 1 1
467 1 1
468 1 1
469 1 1
MISSING_ELSE
472 1 1
482 1 1
483 1 1
487 1 1
493 1 1
496 1 1
499 1 1
501 1 1
504 0 1
505 0 1
509 1 1
510 1 1
520 1 1
524 1 1
525 1 1
526 1 1
529 1 1
533 1 1
534 1 1
535 1 1
536 1 1
537 1 1
538 1 1
MISSING_ELSE
544 1 1
549 1 1
554 1 1
555 1 1
567 1 1
568 1 1
574 1 1
575 1 1
576 1 1
MISSING_ELSE
584 3 3
585 3 3
586 3 3
589 1 1
590 1 1
592 1 1
608 1 1
609 1 1
610 1 1
612 1 1
615 1 1
619 1 1
666 1 1
667 1 1
668 1 1
677 1 1
679 1 1
681 1 1
684 1 1
685 1 1
MISSING_ELSE
687 1 1
688 1 1
MISSING_ELSE
691 1 1
692 1 1
MISSING_ELSE
694 1 1
695 1 1
MISSING_ELSE
698 1 1
699 1 1
MISSING_ELSE
701 1 1
702 1 1
MISSING_ELSE
712 1 1
713 1 1
714 1 1
715 1 1
716 1 1
717 1 1
718 1 1
720 1 1
721 1 1
722 1 1
723 1 1
724 1 1
725 1 1
726 1 1
732 1 1
736 1 1
740 1 1
742 1 1
749 1 1
882 3 3


Cond Coverage for Instance : tb.dut.u_lc_ctrl_fsm
TotalCoveredPercent
Conditions868093.02
Logical868093.02
Non-Logical00
Event00

 LINE       251
 EXPRESSION (init_req_i && lc_state_valid_q)
             -----1----    --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T6,T38
11CoveredT1,T2,T3

 LINE       284
 EXPRESSION (lc_state_q == LcStScrap)
            ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT16,T19,T34

 LINE       293
 EXPRESSION (SecVolatileRawUnlockEn && volatile_raw_unlock_i && trans_cmd_i)
             -----------1----------    ----------2----------    -----3-----
-1--2--3-StatusTests
-01CoveredT2,T4,T12
-10CoveredT13,T8,T39
-11CoveredT13,T39,T40

 LINE       295
 EXPRESSION ((lc_state_q == LcStRaw) && (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}}) && ((!trans_invalid_error_o)))
             -----------1-----------    ----------------------------------------2---------------------------------------    -------------3------------
-1--2--3-StatusTestsExclude Annotation
011Excluded VC_COV_UNR
101Excluded VC_COV_UNR
110Excluded VC_COV_UNR
111CoveredT13,T39,T40

 LINE       295
 SUB-EXPRESSION (lc_state_q == LcStRaw)
                -----------1-----------
-1-StatusTests
0CoveredT13,T39,T41
1CoveredT13,T39,T40

 LINE       295
 SUB-EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}})
                ----------------------------------------1---------------------------------------
-1-StatusTests
0CoveredT13,T39,T41
1CoveredT13,T39,T40

 LINE       299
 EXPRESSION (unhashed_token_i == lc_ctrl_state_pkg::RndCnstRawUnlockTokenHashed)
            ----------------------------------1---------------------------------
-1-StatusTestsExclude Annotation
0Excluded VC_COV_UNR
1CoveredT13,T39,T40

 LINE       305
 EXPRESSION ((lc_cnt_q == LcCnt0) ? LcCnt1 : lc_cnt_q)
             ----------1---------
-1-StatusTestsExclude Annotation
0CoveredT13,T39,T40
1ExcludedT41 VC_COV_UNR

 LINE       305
 SUB-EXPRESSION (lc_cnt_q == LcCnt0)
                ----------1---------
-1-StatusTestsExclude Annotation
0CoveredT13,T39,T40
1ExcludedT41 VC_COV_UNR

 LINE       411
 EXPRESSION (lc_clk_byp_req_o != lc_clk_byp_ack[1])
            -------------------1-------------------
-1-StatusTests
0CoveredT2,T4,T12
1CoveredT12,T5,T36

 LINE       452
 EXPRESSION ((hashed_token_i == hashed_token_mux) && ((!token_hash_err_i)) && ((&hashed_token_valid_mux)))
             ------------------1-----------------    ----------2----------    -------------3-------------
-1--2--3-StatusTests
011CoveredT2,T4,T12
101CoveredT12,T5,T36
110Not Covered
111CoveredT12,T5,T16

 LINE       452
 SUB-EXPRESSION (hashed_token_i == hashed_token_mux)
                ------------------1-----------------
-1-StatusTests
0CoveredT2,T4,T12
1CoveredT12,T5,T16

 LINE       466
 EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
            -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       493
 EXPRESSION ((hashed_token_i == hashed_token_mux) && ((!token_hash_err_i)) && ((&hashed_token_valid_mux)))
             ------------------1-----------------    ----------2----------    -------------3-------------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111CoveredT12,T5,T16

 LINE       493
 SUB-EXPRESSION (hashed_token_i == hashed_token_mux)
                ------------------1-----------------
-1-StatusTests
0Not Covered
1CoveredT12,T5,T16

 LINE       496
 EXPRESSION (fsm_state_q == TokenCheck1St)
            ---------------1--------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT12,T5,T16

 LINE       524
 EXPRESSION (lc_clk_byp_req_o != lc_clk_byp_ack[2])
            -------------------1-------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T46,T47

 LINE       529
 EXPRESSION 
 Number  Term
      1  ((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))) || 
      2  ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))))
-1--2-StatusTests
00CoveredT12,T5,T16
01CoveredT20,T48,T49
10CoveredT20,T50,T51

 LINE       529
 SUB-EXPRESSION ((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off)))
                 -----------------------------------1----------------------------------    --------------------------------2--------------------------------
-1--2-StatusTests
01CoveredT5,T16,T17
10CoveredT12,T5,T16
11CoveredT20,T50,T51

 LINE       529
 SUB-EXPRESSION (trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
                -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       529
 SUB-EXPRESSION ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))
                 -------------1-------------    ----------------2---------------
-1--2-StatusTests
00CoveredT12,T5,T16
01CoveredT20,T50,T51
10Not Covered

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_req_o != Off)
                -------------1-------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_ack_buf[2] != Off)
                ----------------1---------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On)))
                 -----------------------------------1----------------------------------    -------------------------------2-------------------------------
-1--2-StatusTests
01CoveredT12,T5,T16
10CoveredT5,T16,T17
11CoveredT20,T48,T49

 LINE       529
 SUB-EXPRESSION (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})
                -----------------------------------1----------------------------------
-1-StatusTests
0CoveredT12,T5,T16
1CoveredT5,T16,T17

 LINE       529
 SUB-EXPRESSION ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))
                 -------------1------------    ---------------2---------------
-1--2-StatusTests
00CoveredT5,T16,T17
01CoveredT20,T48,T49
10CoveredT52,T53,T54

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_req_o != On)
                -------------1------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       529
 SUB-EXPRESSION (lc_flash_rma_ack_buf[2] != On)
                ---------------1---------------
-1-StatusTests
0CoveredT5,T16,T17
1CoveredT12,T5,T16

 LINE       567
 EXPRESSION (esc_scrap_state0_i || esc_scrap_state1_i)
             ---------1--------    ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT3,T12,T5
10CoveredT3,T12,T5

 LINE       574
 EXPRESSION ((((|state_invalid_error)) | token_if_fsm_err_i) && (fsm_state_q != EscalateSt))
             -----------------------1-----------------------    -------------2-------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T6,T17
11CoveredT3,T6,T17

 LINE       574
 SUB-EXPRESSION (((|state_invalid_error)) | token_if_fsm_err_i)
                 ------------1-----------   ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT3,T6,T17
10CoveredT3,T6,T17

 LINE       574
 SUB-EXPRESSION (fsm_state_q != EscalateSt)
                -------------1-------------
-1-StatusTests
0CoveredT3,T12,T5
1CoveredT1,T2,T3

 LINE       612
 SUB-EXPRESSION (set_strap_en_override || gen_strap_delay_regs.strap_en_override_q[0])
                 ----------1----------    ---------------------2---------------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT13,T39,T40
10CoveredT13,T39,T40

 LINE       732
 EXPRESSION 
 Number  Term
      1  ((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates)) ? lc_ctrl_pkg::TransTokenIdxMatrix[dec_lc_state_o[0]][trans_target_i[0]] : InvalidTokenIdx)
-1-StatusTests
0UnreachableT1,T2,T3
1CoveredT1,T2,T3

 LINE       732
 SUB-EXPRESSION ((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates))
                 -----------------------------1----------------------------    -----------------------------2----------------------------
-1--2-StatusTests
01UnreachableT1,T2,T3
10UnreachableT7,T8,T9
11CoveredT1,T2,T3

 LINE       736
 EXPRESSION 
 Number  Term
      1  ((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates)) ? lc_ctrl_pkg::TransTokenIdxMatrix[dec_lc_state_o[1]][trans_target_i[1]] : InvalidTokenIdx)
-1-StatusTests
0UnreachableT1,T2,T3
1CoveredT1,T2,T3

 LINE       736
 SUB-EXPRESSION ((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates))
                 -----------------------------1----------------------------    -----------------------------2----------------------------
-1--2-StatusTests
01UnreachableT1,T2,T3
10UnreachableT8,T10,T27
11CoveredT1,T2,T3

 LINE       749
 EXPRESSION (trans_invalid_error || (token_idx0 != token_idx1))
             ---------1---------    -------------2------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT8,T9,T10
10CoveredT12,T13,T5

 LINE       749
 SUB-EXPRESSION (token_idx0 != token_idx1)
                -------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT8,T9,T10

FSM Coverage for Instance : tb.dut.u_lc_ctrl_fsm
Summary for FSM :: fsm_state_q
TotalCoveredPercent
States 15 15 100.00 (Not included in score)
Transitions 35 35 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: fsm_state_q
statesLine No.CoveredTests
ClkMuxSt 327 Covered T2,T4,T12
CntIncrSt 385 Covered T2,T4,T12
CntProgSt 401 Covered T2,T4,T12
EscalateSt 568 Covered T3,T12,T5
FlashRmaSt 455 Covered T12,T5,T16
IdleSt 252 Covered T1,T2,T3
InvalidSt 575 Covered T3,T6,T17
PostTransSt 317 Covered T2,T4,T12
ResetSt 246 Covered T1,T2,T3
ScrapSt 285 Covered T16,T19,T34
TokenCheck0St 469 Covered T12,T5,T16
TokenCheck1St 501 Covered T12,T5,T16
TokenHashSt 434 Covered T2,T4,T12
TransCheckSt 423 Covered T2,T4,T12
TransProgSt 499 Covered T12,T5,T16


transitionsLine No.CoveredTestsExclude Annotation
ClkMuxSt->CntIncrSt 385 Covered T2,T4,T12
ClkMuxSt->EscalateSt 568 Covered T18,T19,T55
ClkMuxSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
CntIncrSt->CntProgSt 401 Covered T2,T4,T12
CntIncrSt->EscalateSt 568 Covered T55,T56,T57
CntIncrSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
CntIncrSt->PostTransSt 399 Covered T12,T5,T36
CntProgSt->EscalateSt 568 Covered T16,T18,T19
CntProgSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
CntProgSt->PostTransSt 412 Covered T12,T5,T36
CntProgSt->TransCheckSt 423 Covered T2,T4,T12
EscalateSt->InvalidSt 575 Excluded VC_COV_UNR
FlashRmaSt->EscalateSt 568 Covered T16,T18,T19
FlashRmaSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
FlashRmaSt->TokenCheck0St 469 Covered T12,T5,T16
IdleSt->ClkMuxSt 327 Covered T2,T4,T12
IdleSt->EscalateSt 568 Covered T16,T18,T55
IdleSt->InvalidSt 575 Covered T3,T6,T17
IdleSt->PostTransSt 317 Covered T13,T39,T41
IdleSt->ScrapSt 285 Covered T16,T19,T34
InvalidSt->EscalateSt 568 Covered T3,T6,T17
PostTransSt->EscalateSt 568 Covered T12,T5,T18
PostTransSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
ResetSt->EscalateSt 568 Covered T16,T18,T19
ResetSt->IdleSt 252 Covered T1,T2,T3
ResetSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
ScrapSt->EscalateSt 568 Covered T16,T19,T55
ScrapSt->InvalidSt 575 Covered T58,T59,T60
TokenCheck0St->EscalateSt 568 Covered T16,T61,T56
TokenCheck0St->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
TokenCheck0St->PostTransSt 483 Covered T12,T5,T36
TokenCheck0St->TokenCheck1St 501 Covered T12,T5,T16
TokenCheck1St->EscalateSt 568 Covered T16,T18,T19
TokenCheck1St->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
TokenCheck1St->PostTransSt 483 Covered T20,T42,T43
TokenCheck1St->TransProgSt 499 Covered T12,T5,T16
TokenHashSt->EscalateSt 568 Covered T16,T18,T19
TokenHashSt->FlashRmaSt 455 Covered T12,T5,T16
TokenHashSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
TokenHashSt->PostTransSt 457 Covered T2,T4,T12
TransCheckSt->EscalateSt 568 Covered T18,T55,T56
TransCheckSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
TransCheckSt->PostTransSt 432 Covered T12,T5,T36
TransCheckSt->TokenHashSt 434 Covered T2,T4,T12
TransProgSt->EscalateSt 568 Covered T16,T18,T19
TransProgSt->InvalidSt 575 Excluded [LOW_RISK] The transition from any state to error_terminal state is fully verified in FPV.
TransProgSt->PostTransSt 525 Covered T12,T5,T17


Summary for FSM :: lc_state_q
TotalCoveredPercent
States 21 12 57.14 (Not included in score)
Transitions 1 1 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: lc_state_q
statesLine No.CoveredTests
LcStDev 92 Not Covered
LcStProd 93 Not Covered
LcStProdEnd 94 Not Covered
LcStRaw 295 Covered T2,T3,T4
LcStRma 333 Not Covered
LcStScrap 284 Not Covered
LcStTestLocked0 333 Covered T2,T3,T4
LcStTestLocked1 333 Covered T2,T3,T4
LcStTestLocked2 333 Covered T3,T4,T12
LcStTestLocked3 333 Covered T2,T3,T4
LcStTestLocked4 333 Covered T2,T3,T4
LcStTestLocked5 333 Not Covered
LcStTestLocked6 333 Not Covered
LcStTestUnlocked0 301 Covered T2,T3,T4
LcStTestUnlocked1 333 Covered T2,T3,T12
LcStTestUnlocked2 333 Covered T1,T2,T3
LcStTestUnlocked3 333 Covered T2,T3,T4
LcStTestUnlocked4 333 Covered T2,T3,T4
LcStTestUnlocked5 333 Covered T2,T3,T4
LcStTestUnlocked6 333 Not Covered
LcStTestUnlocked7 333 Not Covered


transitionsLine No.CoveredTests
LcStRaw->LcStTestUnlocked0 301 Covered T13,T16,T39


Summary for FSM :: lc_cnt_q
TotalCoveredPercent
States 25 6 24.00 (Not included in score)
Transitions 1 1 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: lc_cnt_q
statesLine No.CoveredTests
LcCnt0 305 Covered T42,T43,T41
LcCnt1 305 Covered T2,T3,T12
LcCnt10 112 Not Covered
LcCnt11 113 Not Covered
LcCnt12 114 Not Covered
LcCnt13 115 Not Covered
LcCnt14 116 Not Covered
LcCnt15 117 Not Covered
LcCnt16 118 Not Covered
LcCnt17 119 Not Covered
LcCnt18 120 Not Covered
LcCnt19 121 Not Covered
LcCnt2 104 Covered T2,T3,T4
LcCnt20 122 Not Covered
LcCnt21 123 Not Covered
LcCnt22 124 Not Covered
LcCnt23 125 Not Covered
LcCnt24 126 Not Covered
LcCnt3 105 Covered T2,T3,T4
LcCnt4 106 Covered T2,T3,T4
LcCnt5 107 Covered T2,T3,T4
LcCnt6 108 Not Covered
LcCnt7 109 Not Covered
LcCnt8 110 Not Covered
LcCnt9 111 Not Covered


transitionsLine No.CoveredTests
LcCnt0->LcCnt1 305 Covered T43,T41,T58



Branch Coverage for Instance : tb.dut.u_lc_ctrl_fsm
Line No.TotalCoveredPercent
Branches 73 72 98.63
TERNARY 732 1 1 100.00
TERNARY 736 1 1 100.00
CASE 242 44 43 97.73
IF 567 3 3 100.00
IF 584 2 2 100.00
IF 585 2 2 100.00
IF 586 2 2 100.00
IF 589 2 2 100.00
IF 684 2 2 100.00
IF 687 2 2 100.00
IF 691 2 2 100.00
IF 694 2 2 100.00
IF 698 2 2 100.00
IF 701 2 2 100.00
IF 882 2 2 100.00
IF 608 2 2 100.00

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

LineNo. Expression -1-: 732 (((int'(dec_lc_state_o[0]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[0]) < lc_ctrl_state_pkg::NumLcStates))) ?

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


LineNo. Expression -1-: 736 (((int'(dec_lc_state_o[1]) < lc_ctrl_state_pkg::NumLcStates) && (int'(trans_target_i[1]) < lc_ctrl_state_pkg::NumLcStates))) ?

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


LineNo. Expression -1-: 242 case (fsm_state_q) -2-: 251 if ((init_req_i && lc_state_valid_q)) -3-: 273 if (((!((SecVolatileRawUnlockEn && (lc_state_q == LcStTestUnlocked0)) && (lc_cnt_q != LcCnt0))) || prim_mubi_pkg::mubi8_test_false_loose(volatile_raw_unlock_success_q))) -4-: 284 if ((lc_state_q == LcStScrap)) -5-: 293 if (((SecVolatileRawUnlockEn && volatile_raw_unlock_i) && trans_cmd_i)) -6-: 295 if ((((lc_state_q == LcStRaw) && (trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStTestUnlocked0}})) && (!trans_invalid_error_o))) -7-: 299 if ((unhashed_token_i == lc_ctrl_state_pkg::RndCnstRawUnlockTokenHashed)) -8-: 305 ((lc_cnt_q == LcCnt0)) ? -9-: 326 if (trans_cmd_i) -10-: 333 if ((lc_state_q inside {LcStRaw, LcStTestLocked0, LcStTestLocked1, LcStTestLocked2, LcStTestLocked3, LcStTestLocked4, LcStTestLocked5, LcStTestLocked6, LcStTestUnlocked0, LcStTestUnlocked1, LcStTestUnlocked2, LcStTestUnlocked3, LcStTestUnlocked4, LcStTestUnlocked5, LcStTestUnlocked6, LcStTestUnlocked7, LcStRma})) -11-: 350 if (use_ext_clock_i) -12-: 365 if ((lc_state_q inside {LcStRaw, LcStTestLocked0, LcStTestLocked1, LcStTestLocked2, LcStTestLocked3, LcStTestLocked4, LcStTestLocked5, LcStTestLocked6, LcStTestUnlocked0, LcStTestUnlocked1, LcStTestUnlocked2, LcStTestUnlocked3, LcStTestUnlocked4, LcStTestUnlocked5, LcStTestUnlocked6, LcStTestUnlocked7, LcStRma})) -13-: 382 if (use_ext_clock_i) -14-: 384 if (lc_ctrl_pkg::lc_tx_test_true_strict(lc_clk_byp_ack[0])) -15-: 398 if (trans_cnt_oflw_error_o) -16-: 411 if ((lc_clk_byp_req_o != lc_clk_byp_ack[1])) -17-: 418 if (otp_prog_ack_i) -18-: 419 if (otp_prog_err_i) -19-: 431 if (trans_invalid_error_o) -20-: 446 if (token_hash_ack_i) -21-: 452 if ((((hashed_token_i == hashed_token_mux) && (!token_hash_err_i)) && (&hashed_token_valid_mux))) -22-: 466 if ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}})) -23-: 468 if (lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_ack_buf[0])) -24-: 482 if (trans_invalid_error_o) -25-: 487 if (((((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && lc_ctrl_pkg::lc_tx_test_false_strict(lc_flash_rma_req_o)) && lc_ctrl_pkg::lc_tx_test_false_strict(lc_flash_rma_ack_buf[1])) || (((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_req_o)) && lc_ctrl_pkg::lc_tx_test_true_strict(lc_flash_rma_ack_buf[1])))) -26-: 493 if ((((hashed_token_i == hashed_token_mux) && (!token_hash_err_i)) && (&hashed_token_valid_mux))) -27-: 496 if ((fsm_state_q == TokenCheck1St)) -28-: 524 if ((lc_clk_byp_req_o != lc_clk_byp_ack[2])) -29-: 529 if ((((trans_target_i != {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != Off) || (lc_flash_rma_ack_buf[2] != Off))) || ((trans_target_i == {lc_ctrl_state_pkg::DecLcStateNumRep {DecLcStRma}}) && ((lc_flash_rma_req_o != On) || (lc_flash_rma_ack_buf[2] != On))))) -30-: 535 if (otp_prog_ack_i)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--16--17--18--19--20--21--22--23--24--25--26--27--28--29--30-StatusTestsExclude Annotation
ResetSt 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
ResetSt 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T40
IdleSt - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T16,T19,T34
IdleSt - - 0 1 1 1 1 - - - - - - - - - - - - - - - - - - - - - - Excluded T41 VC_COV_UNR
IdleSt - - 0 1 1 1 0 - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T40
IdleSt - - 0 1 1 0 - - - - - - - - - - - - - - - - - - - - - - - Excluded VC_COV_UNR
IdleSt - - 0 1 0 - - - - - - - - - - - - - - - - - - - - - - - - Covered T13,T39,T41
IdleSt - - 0 0 - - - 1 - - - - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
IdleSt - - 0 0 - - - 0 - - - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - - - - - - - - 1 1 - - - - - - - - - - - - - - - - - - - Covered T7,T34,T9
IdleSt - - - - - - - - 1 0 - - - - - - - - - - - - - - - - - - - Covered T1,T2,T3
IdleSt - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - Covered T2,T3,T4
ClkMuxSt - - - - - - - - - - 1 1 1 - - - - - - - - - - - - - - - - Covered T34,T20,T62
ClkMuxSt - - - - - - - - - - 1 1 0 - - - - - - - - - - - - - - - - Covered T63,T64,T65
ClkMuxSt - - - - - - - - - - 1 0 - - - - - - - - - - - - - - - - - Covered T2,T4,T12
ClkMuxSt - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
CntIncrSt - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - Covered T12,T5,T36
CntIncrSt - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - Covered T12,T5,T36
CntProgSt - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - - 1 1 - - - - - - - - - - - - Covered T20,T66,T67
CntProgSt - - - - - - - - - - - - - - - 1 0 - - - - - - - - - - - - Covered T2,T4,T12
CntProgSt - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - Covered T2,T4,T12
TransCheckSt - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - Covered T12,T5,T36
TransCheckSt - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - Covered T2,T4,T12
TokenHashSt - - - - - - - - - - - - - - - - - - 1 1 - - - - - - - - - Covered T12,T5,T16
TokenHashSt - - - - - - - - - - - - - - - - - - 1 0 - - - - - - - - - Covered T2,T4,T12
TokenHashSt - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - Covered T2,T4,T12
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 1 1 - - - - - - - Covered T5,T16,T17
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 1 0 - - - - - - - Covered T5,T16,T17
FlashRmaSt - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - Covered T68,T69,T70
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 1 1 - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 1 0 - - - Covered T12,T5,T16
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 1 0 - - - - Not Covered
TokenCheck0St TokenCheck1St - - - - - - - - - - - - - - - - - - - - - - 0 0 - - - - - Covered T12,T5,T36
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - Covered T5,T46,T47
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 1 - Covered T20,T48,T50
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 0 1 Covered T12,T5,T17
TransProgSt - - - - - - - - - - - - - - - - - - - - - - - - - - 0 0 0 Covered T12,T5,T16
ScrapSt PostTransSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T2,T4,T12
EscalateSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T12,T5
InvalidSt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T6,T17
default - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Covered T3,T6,T37


LineNo. Expression -1-: 567 if ((esc_scrap_state0_i || esc_scrap_state1_i)) -2-: 574 if ((((|state_invalid_error) | token_if_fsm_err_i) && (fsm_state_q != EscalateSt)))

Branches:
-1--2-StatusTests
1 - Covered T3,T12,T5
0 1 Covered T3,T6,T17
0 0 Covered T1,T2,T3


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

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


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

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


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

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


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

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


LineNo. Expression -1-: 684 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[0]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 687 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[1]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 691 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[2]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 694 if (lc_ctrl_pkg::lc_tx_test_true_strict(test_tokens_valid[3]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 698 if (lc_ctrl_pkg::lc_tx_test_true_strict(rma_token_valid[0]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


LineNo. Expression -1-: 701 if (lc_ctrl_pkg::lc_tx_test_true_strict(rma_token_valid[1]))

Branches:
-1-StatusTests
1 Covered T2,T3,T4
0 Covered T45,T71,T48


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

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


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

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


Assert Coverage for Instance : tb.dut.u_lc_ctrl_fsm
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 15 15 100.00 14 93.33
Cover properties 0 0 0
Cover sequences 0 0 0
Total 15 15 100.00 14 93.33




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
ClkBypStaysOnOnceAsserted_A 112925760 5919591 0 77
EscStaysOnOnceAsserted_A 112925760 19665192 0 4
FlashRmaStaysOnOnceAsserted_A 112925760 663967 0 16
FsmStateKnown_A 112925760 108697020 0 0
LcCntKnown_A 112925760 108697020 0 0
LcStateKnown_A 112925760 108697020 0 0
NoClkBypInProdStates_A 112925760 14642653 0 0
SecCmCFILinear_A 112925760 0 0 2157
SecCmCFITerminal0_A 112925760 13110858 0 0
SecCmCFITerminal1_A 112925760 87804 0 0
SecCmCFITerminal2_A 112925760 7106047 0 0
SecCmCFITerminal3_A 112925760 12488416 0 0
u_cnt_regs_A 104263069 100522005 0 0
u_fsm_state_regs_A 109919393 105873066 0 0
u_state_regs_A 106788136 103047424 0 0


ClkBypStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 5919591 0 77
T7 19992 15570 0 1
T8 32066 0 0 0
T9 0 3395 0 1
T10 0 34917 0 1
T11 93524 0 0 0
T16 24962 0 0 0
T17 4497 0 0 0
T18 26962 0 0 0
T19 15996 0 0 0
T20 0 69976 0 0
T24 1308 0 0 0
T25 1524 0 0 0
T26 936 0 0 0
T27 0 143516 0 1
T29 0 0 0 1
T30 0 0 0 1
T34 0 1048 0 0
T43 0 118470 0 0
T62 0 25539 0 0
T67 0 12456 0 0
T72 0 124 0 0
T73 0 0 0 1
T74 0 0 0 1
T75 0 0 0 1
T76 0 0 0 1

EscStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 19665192 0 4
T3 33260 19271 0 0
T4 81848 0 0 0
T5 204598 5795 0 0
T6 307292 251278 0 0
T7 19992 0 0 0
T12 30025 1797 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 12277 0 0
T17 0 1312 0 0
T18 0 11625 0 0
T19 0 8030 0 0
T23 2165 0 0 0
T34 0 27 0 0
T36 0 1455 0 0
T77 0 0 0 1
T78 0 0 0 1
T79 0 0 0 1
T80 0 0 0 1

FlashRmaStaysOnOnceAsserted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 663967 0 16
T5 204598 1448 0 0
T6 307292 0 0 0
T7 19992 0 0 0
T8 32066 0 0 0
T15 1760 0 0 0
T16 24962 593 0 0
T17 0 555 0 0
T18 0 420 0 0
T19 0 335 0 0
T20 0 5587 0 0
T23 2165 0 0 0
T24 1308 0 0 0
T25 1524 0 0 0
T26 936 0 0 0
T34 0 780 0 1
T36 0 369 0 0
T37 0 322 0 0
T45 0 1022 0 0
T62 0 0 0 1
T72 0 0 0 1
T81 0 0 0 1
T82 0 0 0 1
T83 0 0 0 1
T84 0 0 0 1
T85 0 0 0 1
T86 0 0 0 1
T87 0 0 0 1

FsmStateKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

LcCntKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

LcStateKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 108697020 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 33260 26966 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 307292 300869 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

NoClkBypInProdStates_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 14642653 0 0
T2 27631 3512 0 0
T3 33260 1370 0 0
T4 81848 18678 0 0
T5 204598 21754 0 0
T6 307292 37470 0 0
T8 0 31959 0 0
T12 30025 3702 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 2443 0 0
T17 0 1210 0 0
T18 0 2315 0 0
T23 2165 0 0 0

SecCmCFILinear_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 0 0 2157

SecCmCFITerminal0_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 13110858 0 0
T2 27631 13609 0 0
T3 33260 0 0 0
T4 81848 8871 0 0
T5 204598 82861 0 0
T6 307292 0 0 0
T11 0 3711 0 0
T12 30025 11008 0 0
T13 1101 835 0 0
T14 941 0 0 0
T15 1760 0 0 0
T17 0 687 0 0
T18 0 3 0 0
T23 2165 0 0 0
T34 0 677 0 0
T36 0 10998 0 0

SecCmCFITerminal1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 87804 0 0
T8 32066 0 0 0
T11 93524 0 0 0
T16 24962 3 0 0
T17 4497 0 0 0
T18 26962 0 0 0
T19 15996 3 0 0
T34 9395 27 0 0
T35 1324 0 0 0
T36 28822 0 0 0
T37 9126 0 0 0
T43 0 1988 0 0
T55 0 6 0 0
T61 0 3 0 0
T72 0 26 0 0
T88 0 31 0 0
T89 0 25 0 0
T90 0 50 0 0

SecCmCFITerminal2_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 7106047 0 0
T3 33260 9726 0 0
T4 81848 0 0 0
T5 204598 5804 0 0
T6 307292 54556 0 0
T7 19992 0 0 0
T12 30025 1810 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T16 0 12331 0 0
T17 0 922 0 0
T18 0 11685 0 0
T19 0 8076 0 0
T23 2165 0 0 0
T36 0 1465 0 0
T37 0 1462 0 0

SecCmCFITerminal3_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 112925760 12488416 0 0
T3 33260 9582 0 0
T4 81848 0 0 0
T5 204598 0 0 0
T6 307292 196760 0 0
T7 19992 0 0 0
T12 30025 0 0 0
T13 1101 0 0 0
T14 941 0 0 0
T15 1760 0 0 0
T17 0 394 0 0
T20 0 319091 0 0
T23 2165 0 0 0
T37 0 812 0 0
T38 0 7189 0 0
T43 0 52146 0 0
T45 0 1152 0 0
T67 0 130077 0 0
T91 0 84622 0 0

u_cnt_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 104263069 100522005 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 20678 16615 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 181019 177024 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

u_fsm_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 109919393 105873066 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 28806 23297 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 252279 247016 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 106788136 103047424 0 0
T1 1306 1246 0 0
T2 27631 20800 0 0
T3 22880 18720 0 0
T4 81848 77224 0 0
T5 204598 199951 0 0
T6 238514 233647 0 0
T12 30025 24716 0 0
T13 1101 1005 0 0
T14 941 875 0 0
T15 1760 1677 0 0

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