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

Module : prim_alert_sender
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.52 100.00 100.00 100.00 100.00 95.83 77.27

Source File(s) :
/workspace/default/sim-vcs/../src/lowrisc_prim_alert_0/rtl/prim_alert_sender.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
prim_alert_tb.i_alert_sender 95.52 100.00 100.00 100.00 100.00 95.83 77.27



Module Instance : prim_alert_tb.i_alert_sender

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.52 100.00 100.00 100.00 100.00 95.83 77.27


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.52 100.00 100.00 100.00 100.00 95.83 77.27


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
prim_alert_tb


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : prim_alert_sender
Line No.TotalCoveredPercent
TOTAL5353100.00
CONT_ASSIGN14111100.00
CONT_ASSIGN14511100.00
CONT_ASSIGN14611100.00
CONT_ASSIGN16311100.00
CONT_ASSIGN16711100.00
CONT_ASSIGN17111100.00
CONT_ASSIGN17211100.00
CONT_ASSIGN17511100.00
CONT_ASSIGN17711100.00
CONT_ASSIGN17811100.00
CONT_ASSIGN18211100.00
CONT_ASSIGN18311100.00
ALWAYS1933232100.00
ALWAYS27699100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_prim_alert_0/rtl/prim_alert_sender.sv' or '../src/lowrisc_prim_alert_0/rtl/prim_alert_sender.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
141 1 1
145 1 1
146 1 1
163 1 1
167 1 1
171 1 1
172 1 1
175 1 1
177 1 1
178 1 1
182 1 1
183 1 1
193 1 1
194 1 1
195 1 1
196 1 1
197 1 1
199 1 1
202 1 1
203 1 1
204 1 1
205 1 1
MISSING_ELSE
210 1 1
211 1 1
213 1 1
214 1 1
219 1 1
220 1 1
221 1 1
MISSING_ELSE
226 1 1
227 1 1
229 1 1
230 1 1
235 1 1
236 1 1
237 1 1
MISSING_ELSE
242 1 1
246 1 1
255 1 1
256 1 1
257 1 1
258 1 1
259 1 1
260 1 1
MISSING_ELSE
276 1 1
277 1 1
278 1 1
279 1 1
280 1 1
282 1 1
283 1 1
284 1 1
285 1 1


Cond Coverage for Module : prim_alert_sender
TotalCoveredPercent
Conditions2929100.00
Logical2929100.00
Non-Logical00
Event00

 LINE       141
 EXPRESSION (ack_sigint | ping_sigint)
             -----1----   -----2-----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       163
 EXPRESSION (alert_req | alert_set_q)
             ----1----   -----2-----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       167
 EXPRESSION (alert_clr ? 1'b0 : alert_req_trigger)
             ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       171
 EXPRESSION (alert_test_i | alert_test_set_q)
             ------1-----   --------2-------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       172
 EXPRESSION (alert_clr ? 1'b0 : alert_test_trigger)
             ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       175
 EXPRESSION (alert_req_trigger | alert_test_trigger)
             --------1--------   ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       177
 EXPRESSION (ping_set_q | ping_event)
             -----1----   -----2----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       178
 EXPRESSION (ping_clr ? 1'b0 : ping_trigger)
             ----1---
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       182
 EXPRESSION (alert_clr & alert_set_q)
             ----1----   -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       202
 EXPRESSION (alert_trigger || ping_trigger)
             ------1------    ------2-----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       203
 EXPRESSION (alert_trigger ? AlertHsPhase1 : PingHsPhase1)
             ------1------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

Toggle Coverage for Module : prim_alert_sender
TotalCoveredPercent
Totals 12 12 100.00
Total Bits 24 24 100.00
Total Bits 0->1 12 12 100.00
Total Bits 1->0 12 12 100.00

Ports 12 12 100.00
Port Bits 24 24 100.00
Port Bits 0->1 12 12 100.00
Port Bits 1->0 12 12 100.00

Port Details
NameToggleToggle 1->0TestsToggle 0->1TestsDirection
clk_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
rst_ni Yes Yes T11,T12,T13 Yes T1,T2,T3 INPUT
alert_test_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_req_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_ack_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_state_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_i.ack_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i.ack_p Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i.ping_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i.ping_p Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_tx_o.alert_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_tx_o.alert_p Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT


FSM Coverage for Module : prim_alert_sender
Summary for FSM :: state_q
TotalCoveredPercent
States 7 7 100.00 (Not included in score)
Transitions 13 13 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
AlertHsPhase1 203 Covered T1,T2,T3
AlertHsPhase2 211 Covered T1,T2,T3
Idle 246 Covered T1,T2,T3
Pause0 220 Covered T1,T2,T3
Pause1 242 Covered T1,T2,T3
PingHsPhase1 203 Covered T1,T2,T3
PingHsPhase2 227 Covered T1,T2,T3


transitionsLine No.CoveredTests
AlertHsPhase1->AlertHsPhase2 211 Covered T1,T2,T3
AlertHsPhase1->Idle 256 Covered T1,T2,T3
AlertHsPhase2->Idle 256 Covered T2,T3,T15
AlertHsPhase2->Pause0 220 Covered T1,T2,T3
Idle->AlertHsPhase1 203 Covered T1,T2,T3
Idle->PingHsPhase1 203 Covered T1,T2,T3
Pause0->Idle 256 Covered T23,T24,T33
Pause0->Pause1 242 Covered T1,T2,T3
Pause1->Idle 246 Covered T1,T2,T3
PingHsPhase1->Idle 256 Covered T1,T3,T15
PingHsPhase1->PingHsPhase2 227 Covered T1,T2,T3
PingHsPhase2->Idle 256 Covered T1,T2,T3
PingHsPhase2->Pause0 237 Covered T1,T2,T3



Branch Coverage for Module : prim_alert_sender
Line No.TotalCoveredPercent
Branches 24 23 95.83
TERNARY 172 2 2 100.00
TERNARY 178 2 2 100.00
TERNARY 167 2 2 100.00
CASE 199 14 13 92.86
IF 255 2 2 100.00
IF 276 2 2 100.00

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

LineNo. Expression -1-: 172 (alert_clr) ?

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


LineNo. Expression -1-: 178 (ping_clr) ?

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


LineNo. Expression -1-: 167 (alert_clr) ?

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


LineNo. Expression -1-: 199 case (state_q) -2-: 202 if ((alert_trigger || ping_trigger)) -3-: 203 (alert_trigger) ? -4-: 210 if (ack_level) -5-: 219 if ((!ack_level)) -6-: 226 if (ack_level) -7-: 235 if ((!ack_level))

Branches:
-1--2--3--4--5--6--7-StatusTests
Idle 1 1 - - - - Covered T1,T2,T3
Idle 1 0 - - - - Covered T1,T2,T3
Idle 0 - - - - - Covered T1,T2,T3
AlertHsPhase1 - - 1 - - - Covered T1,T2,T3
AlertHsPhase1 - - 0 - - - Covered T1,T2,T3
AlertHsPhase2 - - - 1 - - Covered T1,T2,T3
AlertHsPhase2 - - - 0 - - Covered T1,T2,T3
PingHsPhase1 - - - - 1 - Covered T1,T2,T3
PingHsPhase1 - - - - 0 - Covered T1,T2,T3
PingHsPhase2 - - - - - 1 Covered T1,T2,T3
PingHsPhase2 - - - - - 0 Covered T1,T2,T3
Pause0 - - - - - - Covered T1,T2,T3
Pause1 - - - - - - Covered T1,T2,T3
default - - - - - - Not Covered


LineNo. Expression -1-: 255 if (sigint_detected)

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


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

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


Assert Coverage for Module : prim_alert_sender
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 22 22 100.00 17 77.27
Cover properties 0 0 0
Cover sequences 0 0 0
Total 22 22 100.00 17 77.27




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AlertHs_A 154209 1071 0 0
AlertPKnownO_A 154209 117412 0 0
AlertState0_A 154209 117412 0 0
AlertTest1_A 154209 78 0 0
AlertTestHs_A 154209 78 0 0
gen_async_assert.DiffEncoding_A 80287 54799 0 0
gen_async_assert.InBandInitFsm_A 80287 111 0 152
gen_async_assert.InBandInitPing_A 80287 111 0 152
gen_async_assert.PingHs_A 80287 345 0 0
gen_async_assert.SigIntAck_A 80287 111 0 190
gen_async_assert.SigIntPing_A 80287 111 0 190
gen_fatal_assert.AlertState1_A 115515 6539 0 0
gen_fatal_assert.AlertState2_A 115515 46544 0 0
gen_fatal_assert.AlertState3_A 115515 4273 0 0
gen_recov_assert.AlertState1_A 38694 5939 0 0
gen_recov_assert.AlertState2_A 38694 0 0 0
gen_sync_assert.DiffEncoding_A 73922 51660 0 0
gen_sync_assert.InBandInitFsm_A 73922 0 0 0
gen_sync_assert.InBandInitPing_A 73922 0 0 0
gen_sync_assert.PingHs_A 73922 369 0 0
gen_sync_assert.SigIntAck_A 73922 0 0 0
gen_sync_assert.SigIntPing_A 73922 0 0 0


AlertHs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 154209 1071 0 0
T1 1104 15 0 0
T2 1124 16 0 0
T3 1166 16 0 0
T7 1055 15 0 0
T10 1034 12 0 0
T11 1196 17 0 0
T12 1136 16 0 0
T15 1109 18 0 0
T16 1180 17 0 0
T17 1140 14 0 0

AlertPKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 154209 117412 0 0
T1 1104 1022 0 0
T2 1124 1065 0 0
T3 1166 1088 0 0
T7 1055 969 0 0
T10 1034 981 0 0
T11 1196 1031 0 0
T12 1136 1016 0 0
T15 1109 1053 0 0
T16 1180 1107 0 0
T17 1140 1046 0 0

AlertState0_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 154209 117412 0 0
T1 1104 1022 0 0
T2 1124 1065 0 0
T3 1166 1088 0 0
T7 1055 969 0 0
T10 1034 981 0 0
T11 1196 1031 0 0
T12 1136 1016 0 0
T15 1109 1053 0 0
T16 1180 1107 0 0
T17 1140 1046 0 0

AlertTest1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 154209 78 0 0
T1 1104 1 0 0
T2 1124 1 0 0
T3 1166 1 0 0
T7 1055 1 0 0
T10 1034 1 0 0
T11 1196 1 0 0
T12 1136 1 0 0
T15 1109 1 0 0
T16 1180 1 0 0
T17 1140 1 0 0

AlertTestHs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 154209 78 0 0
T1 1104 1 0 0
T2 1124 1 0 0
T3 1166 1 0 0
T7 1055 1 0 0
T10 1034 1 0 0
T11 1196 1 0 0
T12 1136 1 0 0
T15 1109 1 0 0
T16 1180 1 0 0
T17 1140 1 0 0

gen_async_assert.DiffEncoding_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 54799 0 0
T1 1104 867 0 0
T2 1124 941 0 0
T3 1166 925 0 0
T7 1055 878 0 0
T10 1034 906 0 0
T11 1196 897 0 0
T12 1136 908 0 0
T15 1109 930 0 0
T16 1180 952 0 0
T17 1140 921 0 0

gen_async_assert.InBandInitFsm_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 111 0 152
T1 1104 3 0 4
T2 1124 3 0 4
T3 1166 3 0 4
T7 1055 2 0 4
T10 1034 3 0 4
T11 1196 3 0 4
T12 1136 2 0 4
T15 1109 4 0 4
T16 1180 4 0 4
T17 1140 2 0 4

gen_async_assert.InBandInitPing_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 111 0 152
T1 1104 3 0 4
T2 1124 3 0 4
T3 1166 3 0 4
T7 1055 2 0 4
T10 1034 3 0 4
T11 1196 3 0 4
T12 1136 2 0 4
T15 1109 4 0 4
T16 1180 4 0 4
T17 1140 2 0 4

gen_async_assert.PingHs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 345 0 0
T1 1104 5 0 0
T2 1124 9 0 0
T3 1166 9 0 0
T7 1055 10 0 0
T10 1034 10 0 0
T11 1196 10 0 0
T12 1136 10 0 0
T15 1109 10 0 0
T16 1180 10 0 0
T17 1140 10 0 0

gen_async_assert.SigIntAck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 111 0 190
T1 1104 3 0 5
T2 1124 3 0 5
T3 1166 3 0 5
T7 1055 2 0 5
T10 1034 3 0 5
T11 1196 3 0 5
T12 1136 2 0 5
T15 1109 4 0 5
T16 1180 4 0 5
T17 1140 2 0 5

gen_async_assert.SigIntPing_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 80287 111 0 190
T1 1104 3 0 5
T2 1124 3 0 5
T3 1166 3 0 5
T7 1055 2 0 5
T10 1034 3 0 5
T11 1196 3 0 5
T12 1136 2 0 5
T15 1109 4 0 5
T16 1180 4 0 5
T17 1140 2 0 5

gen_fatal_assert.AlertState1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 115515 6539 0 0
T21 2809 256 0 0
T36 2867 257 0 0
T37 3147 234 0 0
T38 2940 249 0 0
T39 2963 214 0 0
T40 3074 224 0 0
T41 2980 252 0 0
T42 2923 260 0 0
T43 3174 281 0 0
T44 3062 223 0 0

gen_fatal_assert.AlertState2_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 115515 46544 0 0
T21 2809 1232 0 0
T36 2867 1234 0 0
T37 3147 1348 0 0
T38 2940 1214 0 0
T39 2963 1210 0 0
T40 3074 1198 0 0
T41 2980 1287 0 0
T42 2923 1196 0 0
T43 3174 1377 0 0
T44 3062 1328 0 0

gen_fatal_assert.AlertState3_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 115515 4273 0 0
T21 2809 61 0 0
T36 2867 62 0 0
T37 3147 70 0 0
T38 2940 61 0 0
T39 2963 63 0 0
T40 3074 62 0 0
T41 2980 65 0 0
T42 2923 59 0 0
T43 3174 68 0 0
T44 3062 69 0 0

gen_recov_assert.AlertState1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 38694 5939 0 0
T1 1104 240 0 0
T2 1124 241 0 0
T3 1166 279 0 0
T7 1055 227 0 0
T10 1034 181 0 0
T11 1196 277 0 0
T12 1136 249 0 0
T15 1109 274 0 0
T16 1180 268 0 0
T17 1140 220 0 0

gen_recov_assert.AlertState2_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 38694 0 0 0

gen_sync_assert.DiffEncoding_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 51660 0 0
T22 856 758 0 0
T23 833 710 0 0
T24 964 736 0 0
T25 895 752 0 0
T26 915 718 0 0
T27 1024 811 0 0
T32 920 763 0 0
T33 837 720 0 0
T34 930 758 0 0
T35 917 793 0 0

gen_sync_assert.InBandInitFsm_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 0 0 0

gen_sync_assert.InBandInitPing_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 0 0 0

gen_sync_assert.PingHs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 369 0 0
T22 856 9 0 0
T23 833 8 0 0
T24 964 9 0 0
T25 895 9 0 0
T26 915 8 0 0
T27 1024 9 0 0
T32 920 10 0 0
T33 837 10 0 0
T34 930 10 0 0
T35 917 10 0 0

gen_sync_assert.SigIntAck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 0 0 0

gen_sync_assert.SigIntPing_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73922 0 0 0

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