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

Module : prim_alert_receiver
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.30 100.00 94.74 100.00 80.00 95.83 95.24

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
prim_alert_tb.i_alert_receiver 94.30 100.00 94.74 100.00 80.00 95.83 95.24



Module Instance : prim_alert_tb.i_alert_receiver

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.30 100.00 94.74 100.00 80.00 95.83 95.24


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.30 100.00 94.74 100.00 80.00 95.83 95.24


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_receiver
Line No.TotalCoveredPercent
TOTAL6060100.00
CONT_ASSIGN10511100.00
CONT_ASSIGN10611100.00
CONT_ASSIGN10711100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN11211100.00
CONT_ASSIGN14411100.00
CONT_ASSIGN14711100.00
CONT_ASSIGN14811100.00
CONT_ASSIGN15011100.00
CONT_ASSIGN15111100.00
ALWAYS1594343100.00
ALWAYS25377100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_prim_alert_0/rtl/prim_alert_receiver.sv' or '../src/lowrisc_prim_alert_0/rtl/prim_alert_receiver.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
105 1 1
106 1 1
107 1 1
111 1 1
112 1 1
144 1 1
147 1 1
148 1 1
150 1 1
151 1 1
159 1 1
160 1 1
161 1 1
162 1 1
163 1 1
164 1 1
166 1 1
168 1 1
171 1 1
172 1 1
173 1 1
175 1 1
176 1 1
178 1 1
MISSING_ELSE
184 1 1
185 1 1
187 1 1
191 1 1
192 1 1
197 1 1
199 1 1
204 1 1
205 1 1
208 1 1
209 1 1
MISSING_ELSE
217 1 1
218 1 1
219 1 1
223 1 1
MISSING_ELSE
231 1 1
233 1 1
234 1 1
235 1 1
236 1 1
237 1 1
238 1 1
239 1 1
242 1 1
243 1 1
244 1 1
245 1 1
246 1 1
247 1 1
MISSING_ELSE
MISSING_ELSE
253 1 1
256 1 1
257 1 1
258 1 1
260 1 1
261 1 1
262 1 1


Cond Coverage for Module : prim_alert_receiver
TotalCoveredPercent
Conditions191894.74
Logical191894.74
Non-Logical00
Event00

 LINE       106
 EXPRESSION (ping_req_d && ((!ping_req_q)))
             -----1----    -------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       107
 EXPRESSION (send_init ? 1'b0 : (send_ping ? ((~ping_tog_pq)) : ping_tog_pq))
             ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       107
 SUB-EXPRESSION (send_ping ? ((~ping_tog_pq)) : ping_tog_pq)
                 ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       111
 EXPRESSION (send_init ? ack_pd : ((~ack_pd)))
             ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       144
 EXPRESSION (ping_rise | (((~ping_ok_o)) & ping_req_i & ping_pending_q))
             ----1----   -----------------------2----------------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       144
 SUB-EXPRESSION (((~ping_ok_o)) & ping_req_i & ping_pending_q)
                 -------1------   -----2----   -------3------
-1--2--3-StatusTests
011CoveredT4,T5,T6
101CoveredT1,T3,T7
110CoveredT1,T2,T3
111CoveredT1,T2,T3

 LINE       223
 EXPRESSION (ping_rise || ping_pending_q)
             ----1----    -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T8
10Not Covered

Toggle Coverage for Module : prim_alert_receiver
TotalCoveredPercent
Totals 13 13 100.00
Total Bits 32 32 100.00
Total Bits 0->1 16 16 100.00
Total Bits 1->0 16 16 100.00

Ports 13 13 100.00
Port Bits 32 32 100.00
Port Bits 0->1 16 16 100.00
Port Bits 1->0 16 16 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 T1,T3,T9 Yes T1,T2,T3 INPUT
init_trig_i[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
ping_req_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
ping_ok_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
integ_fail_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_o.ack_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_o.ack_p Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_o.ping_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_o.ping_p Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_tx_i.alert_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_tx_i.alert_p Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT


FSM Coverage for Module : prim_alert_receiver
Summary for FSM :: state_q
TotalCoveredPercent
States 6 6 100.00 (Not included in score)
Transitions 15 12 80.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
HsAckWait 172 Covered T1,T2,T3
Idle 192 Covered T1,T2,T3
InitAckWait 209 Covered T1,T2,T3
InitReq 234 Covered T1,T2,T3
Pause0 185 Covered T1,T2,T3
Pause1 191 Covered T1,T2,T3


transitionsLine No.CoveredTests
HsAckWait->Idle 243 Covered T1,T2,T3
HsAckWait->InitReq 234 Covered T2,T8,T10
HsAckWait->Pause0 185 Covered T1,T2,T3
Idle->HsAckWait 172 Covered T1,T2,T3
Idle->InitReq 234 Covered T1,T2,T3
InitAckWait->Idle 243 Not Covered
InitAckWait->InitReq 234 Covered T9,T11
InitAckWait->Pause0 219 Covered T1,T2,T3
InitReq->Idle 243 Not Covered
InitReq->InitAckWait 209 Covered T1,T2,T3
Pause0->Idle 243 Not Covered
Pause0->InitReq 234 Covered T7,T12,T4
Pause0->Pause1 191 Covered T1,T2,T3
Pause1->Idle 192 Covered T1,T2,T3
Pause1->InitReq 234 Covered T3,T12,T13



Branch Coverage for Module : prim_alert_receiver
Line No.TotalCoveredPercent
Branches 24 23 95.83
TERNARY 107 3 3 100.00
TERNARY 111 2 2 100.00
CASE 168 13 12 92.31
IF 231 4 4 100.00
IF 253 2 2 100.00

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

LineNo. Expression -1-: 107 (send_init) ? -2-: 107 (send_ping) ?

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


LineNo. Expression -1-: 111 (send_init) ?

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


LineNo. Expression -1-: 168 case (state_q) -2-: 171 if (alert_level) -3-: 175 if (ping_pending_q) -4-: 184 if ((!alert_level)) -5-: 204 if (prim_mubi_pkg::mubi4_test_true_strict(init_trig_i)) -6-: 208 if (alert_sigint) -7-: 218 if ((!alert_sigint))

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
HsAckWait - - 1 - - - Covered T1,T2,T3
HsAckWait - - 0 - - - Covered T1,T2,T3
Pause0 - - - - - - Covered T1,T2,T3
Pause1 - - - - - - Covered T1,T2,T3
InitReq - - - 1 - - Covered T1,T2,T3
InitReq - - - 0 1 - Covered T1,T2,T3
InitReq - - - 0 0 - Covered T1,T2,T3
InitAckWait - - - - - 1 Covered T1,T2,T3
InitAckWait - - - - - 0 Covered T1,T2,T3
default - - - - - - Not Covered


LineNo. Expression -1-: 231 if ((!(state_q inside {InitReq, InitAckWait}))) -2-: 233 if (prim_mubi_pkg::mubi4_test_true_strict(init_trig_i)) -3-: 242 if (alert_sigint)

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


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

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


Assert Coverage for Module : prim_alert_receiver
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 21 21 100.00 20 95.24
Cover properties 0 0 0
Cover sequences 0 0 0
Total 21 21 100.00 20 95.24




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AckDiffOk_A 150067 114040 0 156
AlertKnownO_A 150751 115674 0 0
InBandInitRequest_A 150751 4128 0 0
InBandInitSequence_A 150751 430 0 0
InitReq_A 150751 773 0 0
IntegFailKnownO_A 150751 115674 0 0
NoSpuriousAlertsDuringInit_A 150751 15967 0 0
NoSpuriousPingOksDuringInit_A 150751 15675 0 0
PingDiffOk_A 149867 114790 0 0
PingOkBypassDuringInit_A 150751 42 0 40
PingOkKnownO_A 150751 115674 0 0
PingPKnownO_A 150751 115674 0 0
PingPending_A 150751 818 0 118
PingRequest0_A 150751 0 0 0
PingResponse0_A 150751 757 0 0
gen_async_assert.Alert_A 76907 1262 0 0
gen_async_assert.PingResponse1_A 76907 315 0 0
gen_async_assert.SigInt_A 76907 240 0 94
gen_sync_assert.Alert_A 73844 3180 0 0
gen_sync_assert.PingResponse1_A 73844 353 0 0
gen_sync_assert.SigInt_A 73844 40 0 0


AckDiffOk_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150067 114040 0 156
T1 1259 1071 0 2
T2 1137 1066 0 2
T3 1123 998 0 2
T7 1114 1061 0 2
T8 1093 999 0 2
T10 1114 1021 0 2
T14 1099 1044 0 2
T15 1042 955 0 2
T16 1165 1072 0 2
T17 1115 1037 0 2

AlertKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 115674 0 0
T1 1275 1091 0 0
T2 1150 1081 0 0
T3 1138 1017 0 0
T7 1129 1078 0 0
T8 1108 1016 0 0
T10 1129 1038 0 0
T14 1113 1060 0 0
T15 1057 972 0 0
T16 1179 1088 0 0
T17 1130 1054 0 0

InBandInitRequest_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 4128 0 0
T1 1275 60 0 0
T2 1150 75 0 0
T3 1138 31 0 0
T7 1129 52 0 0
T8 1108 49 0 0
T10 1129 54 0 0
T14 1113 60 0 0
T15 1057 36 0 0
T16 1179 85 0 0
T17 1130 69 0 0

InBandInitSequence_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 430 0 0
T1 1275 2 0 0
T2 1150 3 0 0
T3 1138 0 0 0
T7 1129 2 0 0
T8 1108 2 0 0
T10 1129 4 0 0
T14 1113 1 0 0
T15 1057 1 0 0
T16 1179 4 0 0
T17 1130 5 0 0
T18 0 2 0 0

InitReq_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 773 0 0
T1 1275 10 0 0
T2 1150 12 0 0
T3 1138 7 0 0
T7 1129 13 0 0
T8 1108 9 0 0
T10 1129 10 0 0
T14 1113 12 0 0
T15 1057 7 0 0
T16 1179 13 0 0
T17 1130 10 0 0

IntegFailKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 115674 0 0
T1 1275 1091 0 0
T2 1150 1081 0 0
T3 1138 1017 0 0
T7 1129 1078 0 0
T8 1108 1016 0 0
T10 1129 1038 0 0
T14 1113 1060 0 0
T15 1057 972 0 0
T16 1179 1088 0 0
T17 1130 1054 0 0

NoSpuriousAlertsDuringInit_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 15967 0 0
T1 1275 213 0 0
T2 1150 234 0 0
T3 1138 151 0 0
T7 1129 250 0 0
T8 1108 177 0 0
T10 1129 200 0 0
T14 1113 231 0 0
T15 1057 145 0 0
T16 1179 256 0 0
T17 1130 195 0 0

NoSpuriousPingOksDuringInit_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 15675 0 0
T1 1275 194 0 0
T2 1150 215 0 0
T3 1138 150 0 0
T7 1129 246 0 0
T8 1108 169 0 0
T10 1129 186 0 0
T14 1113 226 0 0
T15 1057 144 0 0
T16 1179 249 0 0
T17 1130 192 0 0

PingDiffOk_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 149867 114790 0 0
T1 1261 1077 0 0
T2 1137 1068 0 0
T3 1121 1000 0 0
T7 1112 1061 0 0
T8 1089 997 0 0
T10 1116 1025 0 0
T14 1100 1047 0 0
T15 1043 958 0 0
T16 1166 1075 0 0
T17 1116 1040 0 0

PingOkBypassDuringInit_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 42 0 40
T1 0 0 0 1
T2 1150 1 0 0
T3 1138 0 0 0
T4 0 1 0 0
T7 1129 0 0 0
T8 1108 1 0 0
T10 1129 0 0 0
T13 0 1 0 0
T14 1113 1 0 0
T15 1057 1 0 0
T16 1179 1 0 0
T17 1130 0 0 0
T18 1173 0 0 0
T19 0 1 0 0
T20 0 1 0 0
T21 0 1 0 0
T22 0 0 0 1
T23 0 0 0 1
T24 0 0 0 1
T25 0 0 0 1
T26 0 0 0 1
T27 0 0 0 1
T28 0 0 0 1
T29 0 0 0 1
T30 0 0 0 1

PingOkKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 115674 0 0
T1 1275 1091 0 0
T2 1150 1081 0 0
T3 1138 1017 0 0
T7 1129 1078 0 0
T8 1108 1016 0 0
T10 1129 1038 0 0
T14 1113 1060 0 0
T15 1057 972 0 0
T16 1179 1088 0 0
T17 1130 1054 0 0

PingPKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 115674 0 0
T1 1275 1091 0 0
T2 1150 1081 0 0
T3 1138 1017 0 0
T7 1129 1078 0 0
T8 1108 1016 0 0
T10 1129 1038 0 0
T14 1113 1060 0 0
T15 1057 972 0 0
T16 1179 1088 0 0
T17 1130 1054 0 0

PingPending_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 818 0 118
T1 1275 11 0 1
T2 1150 11 0 1
T3 1138 11 0 1
T7 1129 11 0 1
T8 1108 11 0 1
T10 1129 11 0 1
T14 1113 11 0 1
T15 1057 11 0 1
T16 1179 11 0 1
T17 1130 11 0 1

PingRequest0_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 0 0 0

PingResponse0_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150751 757 0 0
T1 1275 9 0 0
T2 1150 10 0 0
T3 1138 9 0 0
T7 1129 9 0 0
T8 1108 10 0 0
T10 1129 10 0 0
T14 1113 10 0 0
T15 1057 10 0 0
T16 1179 10 0 0
T17 1130 9 0 0

gen_async_assert.Alert_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 76907 1262 0 0
T1 1275 7 0 0
T2 1150 6 0 0
T3 1138 7 0 0
T7 1129 7 0 0
T8 1108 9 0 0
T10 1129 6 0 0
T14 1113 6 0 0
T15 1057 8 0 0
T16 1179 6 0 0
T17 1130 7 0 0

gen_async_assert.PingResponse1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 76907 315 0 0
T1 1275 9 0 0
T2 1150 8 0 0
T3 1138 9 0 0
T7 1129 8 0 0
T8 1108 9 0 0
T10 1129 9 0 0
T14 1113 7 0 0
T15 1057 9 0 0
T16 1179 6 0 0
T17 1130 8 0 0

gen_async_assert.SigInt_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 76907 240 0 94
T1 1275 8 0 3
T2 1150 5 0 2
T3 1138 6 0 2
T7 1129 6 0 2
T8 1108 5 0 3
T10 1129 6 0 3
T14 1113 6 0 2
T15 1057 6 0 2
T16 1179 7 0 2
T17 1130 8 0 3

gen_sync_assert.Alert_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73844 3180 0 0
T22 923 8 0 0
T23 947 7 0 0
T24 968 9 0 0
T25 916 9 0 0
T31 892 9 0 0
T32 890 11 0 0
T33 975 8 0 0
T34 919 10 0 0
T35 794 11 0 0
T36 1017 11 0 0

gen_sync_assert.PingResponse1_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73844 353 0 0
T22 923 8 0 0
T23 947 7 0 0
T24 968 8 0 0
T25 916 9 0 0
T31 892 10 0 0
T32 890 9 0 0
T33 975 10 0 0
T34 919 10 0 0
T35 794 9 0 0
T36 1017 9 0 0

gen_sync_assert.SigInt_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 73844 40 0 0
T22 923 1 0 0
T23 947 1 0 0
T24 968 1 0 0
T25 916 1 0 0
T31 892 1 0 0
T32 890 1 0 0
T33 975 1 0 0
T34 919 1 0 0
T35 794 1 0 0
T36 1017 1 0 0

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