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

Module : edn_main_sm
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.93 100.00 100.00 74.67 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.93 100.00 100.00 74.67 100.00 100.00



Module Instance : tb.dut.u_edn_core.u_edn_main_sm

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.93 100.00 100.00 74.67 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.93 100.00 100.00 74.67 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
01CoveredT2,T3,T27
10CoveredT4,T36,T37
11CoveredT3,T4,T28

 LINE       65
 EXPRESSION (auto_req_mode_i && edn_enable_i)
             -------1-------    ------2-----
-1--2-StatusTests
01CoveredT2,T3,T27
10CoveredT17,T9,T6
11CoveredT9,T10,T6

 LINE       183
 EXPRESSION (local_escalate_i || csrng_ack_err_i)
             --------1-------    -------2-------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT17,T18,T19
10CoveredT4,T5,T23

 LINE       184
 EXPRESSION (local_escalate_i ? Error : RejectCsrngEntropy)
             --------1-------
-1-StatusTests
0CoveredT17,T18,T19
1CoveredT4,T5,T23

 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
01CoveredT2,T3,T4
10CoveredT1,T2,T3
11CoveredT4,T17,T9

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

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


transitionsLine No.CoveredTests
AutoAckWait->AutoDispatch 128 Covered T10,T14,T56
AutoAckWait->Error 184 Covered T57
AutoAckWait->Idle 207 Covered T9,T58,T59
AutoAckWait->RejectCsrngEntropy 184 Covered T60,T61,T62
AutoCaptGenCnt->AutoSendGenCmd 147 Covered T9,T10,T14
AutoCaptGenCnt->Error 184 Covered T6,T8,T63
AutoCaptGenCnt->Idle 207 Covered T64,T65,T66
AutoCaptGenCnt->RejectCsrngEntropy 184 Not Covered
AutoCaptReseedCnt->AutoSendReseedCmd 159 Covered T9,T10,T14
AutoCaptReseedCnt->Error 184 Covered T67,T68,T69
AutoCaptReseedCnt->Idle 207 Covered T70
AutoCaptReseedCnt->RejectCsrngEntropy 184 Not Covered
AutoDispatch->AutoCaptGenCnt 140 Covered T9,T10,T6
AutoDispatch->AutoCaptReseedCnt 138 Covered T9,T10,T14
AutoDispatch->Error 184 Covered T71
AutoDispatch->Idle 135 Covered T10,T14,T56
AutoDispatch->RejectCsrngEntropy 184 Not Covered
AutoFirstAckWait->AutoDispatch 122 Covered T9,T10,T6
AutoFirstAckWait->Error 184 Covered T72,T73
AutoFirstAckWait->Idle 207 Covered T59,T74,T75
AutoFirstAckWait->RejectCsrngEntropy 184 Not Covered
AutoLoadIns->AutoFirstAckWait 116 Covered T9,T10,T6
AutoLoadIns->Error 184 Covered T76,T77,T78
AutoLoadIns->Idle 207 Covered T6,T7,T8
AutoLoadIns->RejectCsrngEntropy 184 Not Covered
AutoSendGenCmd->AutoAckWait 153 Covered T9,T10,T14
AutoSendGenCmd->Error 184 Covered T79,T80
AutoSendGenCmd->Idle 207 Covered T58,T81,T82
AutoSendGenCmd->RejectCsrngEntropy 184 Not Covered
AutoSendReseedCmd->AutoAckWait 165 Covered T9,T10,T14
AutoSendReseedCmd->Error 184 Covered T7
AutoSendReseedCmd->Idle 207 Covered T83,T84
AutoSendReseedCmd->RejectCsrngEntropy 184 Not Covered
BootDone->BootLoadUni 99 Covered T3,T28,T55
BootDone->Error 184 Covered T85,T86,T87
BootDone->Idle 207 Covered T88,T89,T90
BootDone->RejectCsrngEntropy 184 Not Covered
BootGenAckWait->BootPulse 91 Covered T3,T4,T28
BootGenAckWait->Error 184 Covered T91
BootGenAckWait->Idle 207 Covered T37,T92,T93
BootGenAckWait->RejectCsrngEntropy 184 Covered T19,T94,T95
BootInsAckWait->BootLoadGen 82 Covered T3,T4,T28
BootInsAckWait->Error 184 Covered T53,T96,T41
BootInsAckWait->Idle 207 Covered T4,T53,T97
BootInsAckWait->RejectCsrngEntropy 184 Covered T17,T98,T99
BootLoadGen->BootGenAckWait 87 Covered T3,T4,T28
BootLoadGen->Error 184 Covered T100,T101,T102
BootLoadGen->Idle 207 Covered T103,T104,T105
BootLoadGen->RejectCsrngEntropy 184 Not Covered
BootLoadIns->BootInsAckWait 78 Covered T3,T4,T28
BootLoadIns->Error 184 Covered T106,T107,T108
BootLoadIns->Idle 207 Covered T36,T109,T110
BootLoadIns->RejectCsrngEntropy 184 Not Covered
BootLoadUni->BootUniAckWait 104 Covered T3,T28,T55
BootLoadUni->Error 184 Not Covered
BootLoadUni->Idle 207 Not Covered
BootLoadUni->RejectCsrngEntropy 184 Not Covered
BootPulse->BootDone 95 Covered T3,T4,T28
BootPulse->Error 184 Covered T111,T112,T113
BootPulse->Idle 207 Covered T50,T114,T115
BootPulse->RejectCsrngEntropy 184 Not Covered
BootUniAckWait->Error 184 Not Covered
BootUniAckWait->Idle 109 Covered T3,T28,T55
BootUniAckWait->RejectCsrngEntropy 184 Covered T18,T116,T117
Error->RejectCsrngEntropy 184 Not Covered
Idle->AutoLoadIns 68 Covered T9,T10,T6
Idle->BootLoadIns 64 Covered T3,T4,T28
Idle->Error 184 Covered T20,T21,T22
Idle->RejectCsrngEntropy 184 Not Covered
Idle->SWPortMode 73 Covered T2,T3,T27
RejectCsrngEntropy->Error 184 Not Covered
RejectCsrngEntropy->Idle 207 Covered T17,T18,T19
SWPortMode->Error 184 Covered T5,T23,T15
SWPortMode->Idle 207 Covered T2,T17,T31
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 T3,T4,T28
Idle 0 1 - - - - - - - - - - - - Covered T9,T10,T6
Idle 0 0 1 - - - - - - - - - - - Covered T2,T3,T27
Idle 0 0 0 - - - - - - - - - - - Covered T1,T2,T3
BootLoadIns - - - - - - - - - - - - - - Covered T3,T4,T28
BootInsAckWait - - - 1 - - - - - - - - - - Covered T3,T4,T28
BootInsAckWait - - - 0 - - - - - - - - - - Covered T3,T4,T28
BootLoadGen - - - - - - - - - - - - - - Covered T3,T4,T28
BootGenAckWait - - - - 1 - - - - - - - - - Covered T3,T4,T28
BootGenAckWait - - - - 0 - - - - - - - - - Covered T3,T4,T28
BootPulse - - - - - - - - - - - - - - Covered T3,T4,T28
BootDone - - - - - 1 - - - - - - - - Covered T3,T28,T55
BootDone - - - - - 0 - - - - - - - - Covered T4,T36,T37
BootLoadUni - - - - - - - - - - - - - - Covered T3,T28,T55
BootUniAckWait - - - - - - 1 - - - - - - - Covered T3,T28,T55
BootUniAckWait - - - - - - 0 - - - - - - - Covered T3,T28,T55
AutoLoadIns - - - - - - - 1 - - - - - - Covered T9,T10,T6
AutoLoadIns - - - - - - - 0 - - - - - - Covered T9,T10,T6
AutoFirstAckWait - - - - - - - - 1 - - - - - Covered T9,T10,T6
AutoFirstAckWait - - - - - - - - 0 - - - - - Covered T9,T10,T6
AutoAckWait - - - - - - - - - 1 - - - - Covered T10,T14,T56
AutoAckWait - - - - - - - - - 0 - - - - Covered T9,T10,T14
AutoDispatch - - - - - - - - - - 1 - - - Covered T10,T14,T56
AutoDispatch - - - - - - - - - - 0 1 - - Covered T9,T10,T14
AutoDispatch - - - - - - - - - - 0 0 - - Covered T9,T10,T6
AutoCaptGenCnt - - - - - - - - - - - - - - Covered T9,T10,T6
AutoSendGenCmd - - - - - - - - - - - - 1 - Covered T9,T10,T14
AutoSendGenCmd - - - - - - - - - - - - 0 - Covered T9,T10,T14
AutoCaptReseedCnt - - - - - - - - - - - - - - Covered T9,T10,T14
AutoSendReseedCmd - - - - - - - - - - - - - 1 Covered T9,T10,T14
AutoSendReseedCmd - - - - - - - - - - - - - 0 Covered T9,T10,T14
SWPortMode - - - - - - - - - - - - - - Covered T2,T3,T27
RejectCsrngEntropy - - - - - - - - - - - - - - Covered T17,T18,T19
Error - - - - - - - - - - - - - - Covered T4,T5,T23
default - - - - - - - - - - - - - - Covered T4,T52,T20


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,T23
1 0 - Covered T17,T18,T19
0 - 1 Covered T4,T17,T9
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 244327482 131722 0 0
FpvSecCmErrorStEscalate_A 244327482 132572 0 0
u_state_regs_A 244282957 244130360 0 0


ErrorStStable_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 244327482 131722 0 0
T4 2921 1010 0 0
T5 882 384 0 0
T6 0 350 0 0
T9 3859 0 0 0
T15 0 1072 0 0
T16 0 1158 0 0
T17 1861 0 0 0
T20 0 13872 0 0
T23 2175 1126 0 0
T24 905036 0 0 0
T27 4793 0 0 0
T28 4014 0 0 0
T31 23441 0 0 0
T44 1957 0 0 0
T52 0 1091 0 0
T53 0 1118 0 0
T54 0 335 0 0

FpvSecCmErrorStEscalate_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 244327482 132572 0 0
T4 2921 1011 0 0
T5 882 385 0 0
T6 0 351 0 0
T9 3859 0 0 0
T15 0 1073 0 0
T16 0 1159 0 0
T17 1861 0 0 0
T20 0 14052 0 0
T23 2175 1127 0 0
T24 905036 0 0 0
T27 4793 0 0 0
T28 4014 0 0 0
T31 23441 0 0 0
T44 1957 0 0 0
T52 0 1092 0 0
T53 0 1119 0 0
T54 0 336 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 244282957 244130360 0 0
T1 1086 1022 0 0
T2 10270 9787 0 0
T3 2351 2267 0 0
T4 1739 1547 0 0
T5 740 637 0 0
T9 3859 3783 0 0
T17 1861 1804 0 0
T23 2013 1844 0 0
T27 4793 4733 0 0
T28 4014 3961 0 0

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