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

Module : edn_main_sm
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.67 100.00 100.00 73.33 100.00 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_edn_core.u_edn_main_sm 94.67 100.00 100.00 73.33 100.00 100.00



Module Instance : tb.dut.u_edn_core.u_edn_main_sm

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.67 100.00 100.00 73.33 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.67 100.00 100.00 73.33 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
97.49 100.00 89.95 100.00 100.00 u_edn_core


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_state_regs 100.00 100.00 100.00 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : edn_main_sm
Line No.TotalCoveredPercent
TOTAL106106100.00
ALWAYS4233100.00
CONT_ASSIGN4411100.00
ALWAYS47102102100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_edn_0.1/rtl/edn_main_sm.sv' or '../src/lowrisc_ip_edn_0.1/rtl/edn_main_sm.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
42 3 3
44 1 1
47 1 1
48 1 1
49 1 1
50 1 1
51 1 1
52 1 1
53 1 1
54 1 1
55 1 1
56 1 1
57 1 1
58 1 1
59 1 1
60 1 1
61 1 1
63 1 1
64 1 1
65 1 1
66 1 1
67 1 1
68 1 1
69 1 1
70 1 1
71 1 1
72 1 1
73 1 1
MISSING_ELSE
77 1 1
78 1 1
81 1 1
82 1 1
MISSING_ELSE
86 1 1
87 1 1
90 1 1
91 1 1
MISSING_ELSE
95 1 1
98 1 1
99 1 1
MISSING_ELSE
103 1 1
104 1 1
107 1 1
108 1 1
109 1 1
MISSING_ELSE
114 1 1
115 1 1
116 1 1
MISSING_ELSE
120 1 1
121 1 1
122 1 1
MISSING_ELSE
126 1 1
127 1 1
128 1 1
MISSING_ELSE
132 1 1
133 1 1
134 1 1
135 1 1
137 1 1
138 1 1
140 1 1
145 1 1
146 1 1
147 1 1
150 1 1
151 1 1
152 1 1
153 1 1
MISSING_ELSE
157 1 1
158 1 1
159 1 1
162 1 1
163 1 1
164 1 1
165 1 1
MISSING_ELSE
169 1 1
172 1 1
175 1 1
183 1 1
184 1 1
186 1 1
187 1 1
188 1 1
189 1 1
190 1 1
191 1 1
192 1 1
193 1 1
194 1 1
195 1 1
196 1 1
197 1 1
207 1 1
209 1 1
210 1 1
211 1 1
212 1 1
213 1 1
214 1 1
215 1 1
216 1 1
217 1 1
218 1 1
219 1 1
220 1 1
MISSING_ELSE


Cond Coverage for Module : edn_main_sm
TotalCoveredPercent
Conditions1414100.00
Logical1414100.00
Non-Logical00
Event00

 LINE       63
 EXPRESSION (boot_req_mode_i && edn_enable_i)
             -------1-------    ------2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT28,T13,T61
11CoveredT21,T28,T56

 LINE       65
 EXPRESSION (auto_req_mode_i && edn_enable_i)
             -------1-------    ------2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT4,T8,T6
11CoveredT4,T8,T6

 LINE       183
 EXPRESSION (local_escalate_i || csrng_ack_err_i)
             --------1-------    -------2-------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT15,T16,T17
10CoveredT4,T5,T6

 LINE       184
 EXPRESSION (local_escalate_i ? Error : RejectCsrngEntropy)
             --------1-------
-1-StatusTests
0CoveredT15,T16,T17
1CoveredT4,T5,T6

 LINE       197
 EXPRESSION 
 Number  Term
      1  ((!edn_enable_i)) && 
      2  (state_q inside {BootLoadIns, BootInsAckWait, BootLoadGen, BootGenAckWait, BootLoadUni, BootUniAckWait, BootPulse, BootDone, AutoLoadIns, AutoFirstAckWait, AutoAckWait, AutoDispatch, AutoCaptGenCnt, AutoSendGenCmd, AutoCaptReseedCnt, AutoSendReseedCmd, SWPortMode, RejectCsrngEntropy}))
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT3,T4,T8

FSM Coverage for Module : edn_main_sm
Summary for FSM :: state_q
TotalCoveredPercent
States 20 20 100.00 (Not included in score)
Transitions 75 55 73.33
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
AutoAckWait 153 Covered T4,T8,T12
AutoCaptGenCnt 140 Covered T4,T8,T6
AutoCaptReseedCnt 138 Covered T4,T8,T12
AutoDispatch 122 Covered T4,T8,T6
AutoFirstAckWait 116 Covered T4,T8,T6
AutoLoadIns 68 Covered T4,T8,T6
AutoSendGenCmd 147 Covered T4,T8,T12
AutoSendReseedCmd 159 Covered T8,T12,T15
BootDone 95 Covered T21,T28,T56
BootGenAckWait 87 Covered T21,T28,T56
BootInsAckWait 78 Covered T21,T28,T56
BootLoadGen 82 Covered T21,T28,T56
BootLoadIns 64 Covered T21,T28,T56
BootLoadUni 99 Covered T21,T56,T62
BootPulse 91 Covered T21,T28,T56
BootUniAckWait 104 Covered T21,T56,T62
Error 184 Covered T4,T5,T6
Idle 109 Covered T1,T2,T3
RejectCsrngEntropy 184 Covered T15,T16,T17
SWPortMode 73 Covered T1,T2,T3


transitionsLine No.CoveredTests
AutoAckWait->AutoDispatch 128 Covered T4,T8,T12
AutoAckWait->Error 184 Covered T63
AutoAckWait->Idle 207 Covered T8,T37,T64
AutoAckWait->RejectCsrngEntropy 184 Covered T15,T17,T65
AutoCaptGenCnt->AutoSendGenCmd 147 Covered T4,T8,T12
AutoCaptGenCnt->Error 184 Covered T6,T66,T67
AutoCaptGenCnt->Idle 207 Covered T8,T68,T69
AutoCaptGenCnt->RejectCsrngEntropy 184 Not Covered
AutoCaptReseedCnt->AutoSendReseedCmd 159 Covered T8,T12,T15
AutoCaptReseedCnt->Error 184 Covered T70,T71
AutoCaptReseedCnt->Idle 207 Covered T72
AutoCaptReseedCnt->RejectCsrngEntropy 184 Not Covered
AutoDispatch->AutoCaptGenCnt 140 Covered T4,T8,T6
AutoDispatch->AutoCaptReseedCnt 138 Covered T4,T8,T12
AutoDispatch->Error 184 Covered T73,T74,T75
AutoDispatch->Idle 135 Covered T12,T37,T64
AutoDispatch->RejectCsrngEntropy 184 Not Covered
AutoFirstAckWait->AutoDispatch 122 Covered T4,T8,T6
AutoFirstAckWait->Error 184 Covered T7,T76,T77
AutoFirstAckWait->Idle 207 Covered T78,T79,T80
AutoFirstAckWait->RejectCsrngEntropy 184 Not Covered
AutoLoadIns->AutoFirstAckWait 116 Covered T4,T8,T6
AutoLoadIns->Error 184 Covered T81,T48,T50
AutoLoadIns->Idle 207 Covered T4,T6,T7
AutoLoadIns->RejectCsrngEntropy 184 Not Covered
AutoSendGenCmd->AutoAckWait 153 Covered T4,T8,T12
AutoSendGenCmd->Error 184 Covered T82,T83,T84
AutoSendGenCmd->Idle 207 Covered T85,T86,T87
AutoSendGenCmd->RejectCsrngEntropy 184 Not Covered
AutoSendReseedCmd->AutoAckWait 165 Covered T8,T12,T15
AutoSendReseedCmd->Error 184 Covered T88,T89,T90
AutoSendReseedCmd->Idle 207 Covered T91,T92
AutoSendReseedCmd->RejectCsrngEntropy 184 Not Covered
BootDone->BootLoadUni 99 Covered T21,T56,T62
BootDone->Error 184 Covered T93,T94
BootDone->Idle 207 Covered T95,T93,T96
BootDone->RejectCsrngEntropy 184 Not Covered
BootGenAckWait->BootPulse 91 Covered T21,T28,T56
BootGenAckWait->Error 184 Covered T46,T97,T98
BootGenAckWait->Idle 207 Covered T99,T97,T100
BootGenAckWait->RejectCsrngEntropy 184 Covered T101,T102,T103
BootInsAckWait->BootLoadGen 82 Covered T21,T28,T56
BootInsAckWait->Error 184 Covered T45,T104,T105
BootInsAckWait->Idle 207 Covered T28,T13,T45
BootInsAckWait->RejectCsrngEntropy 184 Covered T39,T106,T107
BootLoadGen->BootGenAckWait 87 Covered T21,T28,T56
BootLoadGen->Error 184 Not Covered
BootLoadGen->Idle 207 Covered T108,T109,T110
BootLoadGen->RejectCsrngEntropy 184 Not Covered
BootLoadIns->BootInsAckWait 78 Covered T21,T28,T56
BootLoadIns->Error 184 Covered T13,T111,T112
BootLoadIns->Idle 207 Covered T113,T114
BootLoadIns->RejectCsrngEntropy 184 Not Covered
BootLoadUni->BootUniAckWait 104 Covered T21,T56,T62
BootLoadUni->Error 184 Not Covered
BootLoadUni->Idle 207 Not Covered
BootLoadUni->RejectCsrngEntropy 184 Not Covered
BootPulse->BootDone 95 Covered T21,T28,T56
BootPulse->Error 184 Covered T115,T116,T117
BootPulse->Idle 207 Covered T61,T118,T119
BootPulse->RejectCsrngEntropy 184 Not Covered
BootUniAckWait->Error 184 Not Covered
BootUniAckWait->Idle 109 Covered T21,T56,T62
BootUniAckWait->RejectCsrngEntropy 184 Covered T16,T120,T121
Error->RejectCsrngEntropy 184 Not Covered
Idle->AutoLoadIns 68 Covered T4,T8,T6
Idle->BootLoadIns 64 Covered T21,T28,T56
Idle->Error 184 Covered T5,T18,T19
Idle->RejectCsrngEntropy 184 Not Covered
Idle->SWPortMode 73 Covered T1,T2,T3
RejectCsrngEntropy->Error 184 Not Covered
RejectCsrngEntropy->Idle 207 Covered T15,T16,T17
SWPortMode->Error 184 Covered T5,T14,T53
SWPortMode->Idle 207 Covered T3,T44,T15
SWPortMode->RejectCsrngEntropy 184 Not Covered



Branch Coverage for Module : edn_main_sm
Line No.TotalCoveredPercent
Branches 41 41 100.00
IF 42 2 2 100.00
CASE 61 35 35 100.00
IF 183 4 4 100.00

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

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

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


LineNo. Expression -1-: 61 case (state_q) -2-: 63 if ((boot_req_mode_i && edn_enable_i)) -3-: 65 if ((auto_req_mode_i && edn_enable_i)) -4-: 69 if (edn_enable_i) -5-: 81 if (csrng_cmd_ack_i) -6-: 90 if (csrng_cmd_ack_i) -7-: 98 if ((!boot_req_mode_i)) -8-: 107 if (csrng_cmd_ack_i) -9-: 115 if (sw_cmd_req_load_i) -10-: 121 if (csrng_cmd_ack_i) -11-: 127 if (csrng_cmd_ack_i) -12-: 133 if ((!auto_req_mode_i)) -13-: 137 if (max_reqs_cnt_zero_i) -14-: 152 if (cmd_sent_i) -15-: 164 if (cmd_sent_i)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15-StatusTests
Idle 1 - - - - - - - - - - - - - Covered T21,T28,T56
Idle 0 1 - - - - - - - - - - - - Covered T4,T8,T6
Idle 0 0 1 - - - - - - - - - - - Covered T1,T2,T3
Idle 0 0 0 - - - - - - - - - - - Covered T1,T2,T3
BootLoadIns - - - - - - - - - - - - - - Covered T21,T28,T56
BootInsAckWait - - - 1 - - - - - - - - - - Covered T21,T28,T56
BootInsAckWait - - - 0 - - - - - - - - - - Covered T21,T28,T56
BootLoadGen - - - - - - - - - - - - - - Covered T21,T28,T56
BootGenAckWait - - - - 1 - - - - - - - - - Covered T21,T28,T56
BootGenAckWait - - - - 0 - - - - - - - - - Covered T21,T28,T56
BootPulse - - - - - - - - - - - - - - Covered T21,T28,T56
BootDone - - - - - 1 - - - - - - - - Covered T21,T56,T62
BootDone - - - - - 0 - - - - - - - - Covered T28,T13,T16
BootLoadUni - - - - - - - - - - - - - - Covered T21,T56,T62
BootUniAckWait - - - - - - 1 - - - - - - - Covered T21,T56,T62
BootUniAckWait - - - - - - 0 - - - - - - - Covered T21,T56,T62
AutoLoadIns - - - - - - - 1 - - - - - - Covered T4,T8,T6
AutoLoadIns - - - - - - - 0 - - - - - - Covered T4,T8,T6
AutoFirstAckWait - - - - - - - - 1 - - - - - Covered T4,T8,T6
AutoFirstAckWait - - - - - - - - 0 - - - - - Covered T4,T8,T6
AutoAckWait - - - - - - - - - 1 - - - - Covered T4,T8,T12
AutoAckWait - - - - - - - - - 0 - - - - Covered T4,T8,T12
AutoDispatch - - - - - - - - - - 1 - - - Covered T12,T122,T123
AutoDispatch - - - - - - - - - - 0 1 - - Covered T4,T8,T12
AutoDispatch - - - - - - - - - - 0 0 - - Covered T4,T8,T6
AutoCaptGenCnt - - - - - - - - - - - - - - Covered T4,T8,T6
AutoSendGenCmd - - - - - - - - - - - - 1 - Covered T4,T8,T12
AutoSendGenCmd - - - - - - - - - - - - 0 - Covered T8,T12,T15
AutoCaptReseedCnt - - - - - - - - - - - - - - Covered T4,T8,T12
AutoSendReseedCmd - - - - - - - - - - - - - 1 Covered T8,T12,T15
AutoSendReseedCmd - - - - - - - - - - - - - 0 Covered T8,T12,T64
SWPortMode - - - - - - - - - - - - - - Covered T1,T2,T3
RejectCsrngEntropy - - - - - - - - - - - - - - Covered T15,T16,T17
Error - - - - - - - - - - - - - - Covered T4,T5,T6
default - - - - - - - - - - - - - - Covered T4,T5,T54


LineNo. Expression -1-: 183 if ((local_escalate_i || csrng_ack_err_i)) -2-: 184 (local_escalate_i) ? -3-: 197 if (((!edn_enable_i) && (state_q inside {BootLoadIns, BootInsAckWait, BootLoadGen, BootGenAckWait, BootLoadUni, BootUniAckWait, BootPulse, BootDone, AutoLoadIns, AutoFirstAckWait, AutoAckWait, AutoDispatch, AutoCaptGenCnt, AutoSendGenCmd, AutoCaptReseedCnt, AutoSendReseedCmd, SWPortMode, RejectCsrngEntropy})))

Branches:
-1--2--3-StatusTests
1 1 - Covered T4,T5,T6
1 0 - Covered T15,T16,T17
0 - 1 Covered T3,T4,T8
0 - 0 Covered T1,T2,T3


Assert Coverage for Module : edn_main_sm
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 3 3 100.00 3 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 3 3 100.00 3 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
ErrorStStable_A 209755317 114794 0 0
FpvSecCmErrorStEscalate_A 209755317 115374 0 0
u_state_regs_A 209722510 209590803 0 0


ErrorStStable_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 209755317 114794 0 0
T4 870 300 0 0
T5 18062 6947 0 0
T6 774 360 0 0
T7 0 630 0 0
T8 2291 0 0 0
T13 0 647 0 0
T14 0 608 0 0
T20 1742 0 0 0
T21 1647 0 0 0
T22 2074 0 0 0
T26 1562 0 0 0
T27 3821 0 0 0
T32 2543 0 0 0
T53 0 559 0 0
T54 0 193 0 0
T81 0 1124 0 0
T99 0 960 0 0

FpvSecCmErrorStEscalate_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 209755317 115374 0 0
T4 870 301 0 0
T5 18062 7037 0 0
T6 774 361 0 0
T7 0 631 0 0
T8 2291 0 0 0
T13 0 648 0 0
T14 0 609 0 0
T20 1742 0 0 0
T21 1647 0 0 0
T22 2074 0 0 0
T26 1562 0 0 0
T27 3821 0 0 0
T32 2543 0 0 0
T53 0 560 0 0
T54 0 194 0 0
T81 0 1125 0 0
T99 0 961 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 209722510 209590803 0 0
T1 1991 1925 0 0
T2 1155 1104 0 0
T3 979 845 0 0
T4 662 500 0 0
T5 18062 10629 0 0
T6 614 492 0 0
T8 2291 2205 0 0
T26 1562 1468 0 0
T27 3821 3740 0 0
T32 2543 2481 0 0

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