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

Module : usb_fs_nb_in_pe
SCORELINECONDTOGGLEFSMBRANCHASSERT
80.84 87.61 81.18 58.33 77.08 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.usbdev_impl.u_usb_fs_nb_pe.u_usb_fs_nb_in_pe 80.84 87.61 81.18 58.33 77.08 100.00



Module Instance : tb.dut.usbdev_impl.u_usb_fs_nb_pe.u_usb_fs_nb_in_pe

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
80.84 87.61 81.18 58.33 77.08 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
80.84 87.61 81.18 58.33 77.08 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
83.33 100.00 50.00 100.00 u_usb_fs_nb_pe


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 : usb_fs_nb_in_pe
Line No.TotalCoveredPercent
TOTAL1139987.61
CONT_ASSIGN11111100.00
CONT_ASSIGN12511100.00
CONT_ASSIGN12611100.00
CONT_ASSIGN12811100.00
CONT_ASSIGN13411100.00
CONT_ASSIGN13811100.00
CONT_ASSIGN14211100.00
CONT_ASSIGN14811100.00
CONT_ASSIGN14911100.00
CONT_ASSIGN15611100.00
CONT_ASSIGN15711100.00
CONT_ASSIGN16011100.00
CONT_ASSIGN16611100.00
CONT_ASSIGN16811100.00
CONT_ASSIGN17411100.00
CONT_ASSIGN17611100.00
CONT_ASSIGN17711100.00
ALWAYS187493673.47
ALWAYS28933100.00
ALWAYS29733100.00
ALWAYS30588100.00
ALWAYS31866100.00
ALWAYS33099100.00
ALWAYS3477685.71
CONT_ASSIGN36111100.00
ALWAYS36455100.00
ALWAYS37455100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_usb_fs_nb_pe_0.1/rtl/usb_fs_nb_in_pe.sv' or '../src/lowrisc_ip_usb_fs_nb_pe_0.1/rtl/usb_fs_nb_in_pe.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
111 1 1
125 1 1
126 1 1
128 1 1
134 1 1
138 1 1
142 1 1
148 1 1
149 1 1
156 1 1
157 1 1
160 1 1
166 1 1
168 1 1
174 1 1
176 1 1
177 1 1
187 1 1
188 1 1
189 1 1
190 1 1
191 1 1
192 1 1
193 1 1
195 1 1
196 1 1
199 1 1
204 1 1
206 1 1
211 0 1
212 0 1
213 1 1
214 1 1
215 1 1
216 1 1
217 1 1
218 1 1
220 0 1
221 0 1
227 1 1
228 1 1
229 0 1
230 0 1
232 1 1
233 0 1
235 1 1
239 1 1
244 1 1
245 1 1
MISSING_ELSE
253 1 1
255 1 1
256 1 1
257 1 1
258 0 1
259 0 1
261 1 1
266 1 1
267 1 1
268 1 1
269 1 1
270 0 1
271 0 1
272 1 1
273 0 1
274 0 1
276 1 1
289 1 1
290 1 1
292 1 1
297 1 1
298 1 1
300 1 1
305 1 1
306 1 1
307 1 1
308 1 1
309 1 1
310 1 1
312 1 1
313 1 1
318 1 1
319 1 1
321 1 1
322 1 1
323 1 1
324 1 1
MISSING_ELSE
330 1 1
331 1 1
332 1 1
333 1 1
335 1 1
336 1 1
337 1 1
338 1 1
340 1 1
347 1 1
349 1 1
350 1 1
351 1 1
352 1 1
MISSING_ELSE
355 1 1
356 0 1
MISSING_ELSE
361 1 1
364 1 1
365 1 1
366 1 1
367 1 1
369 1 1
374 1 1
375 1 1
377 1 1
378 1 1
380 1 1


Cond Coverage for Module : usb_fs_nb_in_pe
TotalCoveredPercent
Conditions856981.18
Logical856981.18
Non-Logical00
Event00

 LINE       128
 EXPRESSION (rx_pkt_end_i && rx_pkt_valid_i && (rx_pid_type == UsbPidTypeToken) && (rx_addr_i == dev_addr_i))
             ------1-----    -------2------    ----------------3---------------    ------------4------------
-1--2--3--4-StatusTests
0111CoveredT1,T2,T4
1011Not Covered
1101CoveredT1,T2,T4
1110Not Covered
1111CoveredT1,T2,T4

 LINE       128
 SUB-EXPRESSION (rx_pid_type == UsbPidTypeToken)
                ----------------1---------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T4

 LINE       128
 SUB-EXPRESSION (rx_addr_i == dev_addr_i)
                ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       134
 EXPRESSION (token_received && (rx_pid == UsbPidSetup))
             -------1------    -----------2-----------
-1--2-StatusTests
01CoveredT11,T13,T14
10CoveredT1,T2,T4
11CoveredT11,T13,T14

 LINE       134
 SUB-EXPRESSION (rx_pid == UsbPidSetup)
                -----------1-----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT11,T13,T14

 LINE       138
 EXPRESSION (token_received && (rx_pid == UsbPidIn))
             -------1------    ----------2---------
-1--2-StatusTests
01CoveredT7,T11,T12
10CoveredT1,T2,T4
11CoveredT7,T11,T12

 LINE       138
 SUB-EXPRESSION (rx_pid == UsbPidIn)
                ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT7,T11,T12

 LINE       142
 EXPRESSION (rx_pkt_end_i && rx_pkt_valid_i && (rx_pid == UsbPidAck))
             ------1-----    -------2------    ----------3----------
-1--2--3-StatusTests
011CoveredT11,T12,T13
101Not Covered
110CoveredT1,T2,T4
111CoveredT11,T12,T13

 LINE       142
 SUB-EXPRESSION (rx_pid == UsbPidAck)
                ----------1----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT11,T12,T13

 LINE       149
 EXPRESSION (ep_in_hw ? rx_endp_i : '0)
             ----1---
-1-StatusTests
0Not Covered
1CoveredT1,T2,T3

 LINE       160
 EXPRESSION (in_ep_enabled_i[in_ep_index_d] & ep_in_hw)
             ---------------1--------------   ----2---
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT7,T11,T12

 LINE       166
 EXPRESSION (has_data_q & ((~in_ep_data_done_i[in_ep_index])))
             -----1----   -----------------2-----------------
-1--2-StatusTests
01Not Covered
10CoveredT12,T23,T24
11CoveredT11,T12,T13

 LINE       168
 EXPRESSION ((logic'((in_xact_state == StSendData))) & more_data_to_send)
             -------------------1-------------------   --------2--------
-1--2-StatusTests
01CoveredT11,T12,T13
10CoveredT12,T23,T24
11CoveredT11,T12,T13

 LINE       174
 EXPRESSION (((in_xact_state == StIdle) || (in_xact_state == StWaitAck)) && in_token_received)
             -----------------------------1-----------------------------    --------2--------
-1--2-StatusTests
01Not Covered
10CoveredT1,T2,T3
11CoveredT7,T11,T12

 LINE       174
 SUB-EXPRESSION ((in_xact_state == StIdle) || (in_xact_state == StWaitAck))
                 ------------1------------    --------------2-------------
-1--2-StatusTests
00CoveredT7,T11,T12
01CoveredT11,T12,T13
10CoveredT1,T2,T3

 LINE       174
 SUB-EXPRESSION (in_xact_state == StIdle)
                ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       174
 SUB-EXPRESSION (in_xact_state == StWaitAck)
                --------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT11,T12,T13

 LINE       176
 EXPRESSION (in_starting & ep_active)
             -----1-----   ----2----
-1--2-StatusTests
01CoveredT7,T11,T12
10Not Covered
11CoveredT7,T11,T12

 LINE       195
 EXPRESSION (ep_active && in_token_received)
             ----1----    --------2--------
-1--2-StatusTests
01Not Covered
10CoveredT7,T11,T12
11CoveredT7,T11,T12

 LINE       227
 EXPRESSION (((!more_data_to_send)) || (((&in_ep_get_addr_o)) && tx_data_get_i))
             -----------1----------    --------------------2-------------------
-1--2-StatusTests
00CoveredT11,T12,T13
01CoveredT11,T13,T14
10CoveredT12,T23,T24

 LINE       227
 SUB-EXPRESSION (((&in_ep_get_addr_o)) && tx_data_get_i)
                 ----------1----------    ------2------
-1--2-StatusTests
01CoveredT11,T12,T13
10CoveredT11,T13,T14
11CoveredT11,T13,T14

 LINE       257
 EXPRESSION (timeout_cntdown_q == '0)
            ------------1------------
-1-StatusTests
0CoveredT11,T12,T13
1Not Covered

 LINE       270
 EXPRESSION (ep_active ? StRcvdIn : StIdle)
             ----1----
-1-StatusTests
0Not Covered
1Not Covered

 LINE       308
 EXPRESSION (link_reset_i || ((!link_active_i)))
             ------1-----    ---------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10Not Covered

 LINE       321
 EXPRESSION (in_xact_state == StIdle)
            ------------1------------
-1-StatusTests
0CoveredT7,T11,T12
1CoveredT1,T2,T3

 LINE       323
 EXPRESSION ((in_xact_state == StSendData) && tx_data_get_i)
             --------------1--------------    ------2------
-1--2-StatusTests
01Not Covered
10CoveredT11,T12,T13
11CoveredT11,T12,T13

 LINE       323
 SUB-EXPRESSION (in_xact_state == StSendData)
                --------------1--------------
-1-StatusTests
0CoveredT7,T11,T12
1CoveredT11,T12,T13

 LINE       349
 EXPRESSION (setup_token_received && ep_active)
             ----------1---------    ----2----
-1--2-StatusTests
01CoveredT7,T11,T12
10CoveredT15,T16,T17
11CoveredT11,T13,T14

 LINE       351
 EXPRESSION ((in_xact_state == StWaitAck) && ack_received)
             --------------1-------------    ------2-----
-1--2-StatusTests
01Not Covered
10CoveredT11,T12,T13
11CoveredT11,T12,T13

 LINE       351
 SUB-EXPRESSION (in_xact_state == StWaitAck)
                --------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT11,T12,T13

 LINE       377
 EXPRESSION ((in_xact_state == StSendData) && tx_data_get_i)
             --------------1--------------    ------2------
-1--2-StatusTests
01Not Covered
10CoveredT11,T12,T13
11CoveredT11,T12,T13

 LINE       377
 SUB-EXPRESSION (in_xact_state == StSendData)
                --------------1--------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT11,T12,T13

FSM Coverage for Module : usb_fs_nb_in_pe
Summary for FSM :: in_xact_state
TotalCoveredPercent
States 6 6 100.00 (Not included in score)
Transitions 12 7 58.33
Sequences 0 0

State, Transition and Sequence Details for FSM :: in_xact_state
statesLine No.CoveredTests
StIdle 309 Covered T1,T2,T3
StRcvdIn 196 Covered T7,T11,T12
StSendData 211 Covered T11,T12,T13
StWaitAck 256 Covered T11,T12,T13
StWaitAckStart 233 Covered T11,T12,T13
StWaitTxEnd 235 Covered T11,T12,T13


transitionsLine No.CoveredTests
StIdle->StRcvdIn 196 Covered T7,T11,T12
StRcvdIn->StIdle 309 Covered T7,T25,T26
StRcvdIn->StSendData 211 Covered T11,T12,T13
StSendData->StIdle 309 Not Covered
StSendData->StWaitAckStart 233 Not Covered
StSendData->StWaitTxEnd 235 Covered T11,T12,T13
StWaitAck->StIdle 309 Covered T11,T12,T13
StWaitAck->StRcvdIn 270 Not Covered
StWaitAckStart->StIdle 309 Not Covered
StWaitAckStart->StWaitAck 256 Covered T11,T12,T13
StWaitTxEnd->StIdle 309 Not Covered
StWaitTxEnd->StWaitAckStart 245 Covered T11,T12,T13



Branch Coverage for Module : usb_fs_nb_in_pe
Line No.TotalCoveredPercent
Branches 48 37 77.08
TERNARY 149 2 1 50.00
CASE 193 21 12 57.14
IF 289 2 2 100.00
IF 297 2 2 100.00
IF 305 3 3 100.00
IF 318 4 4 100.00
IF 330 3 3 100.00
IF 349 3 3 100.00
IF 355 2 1 50.00
IF 364 3 3 100.00
IF 374 3 3 100.00

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

LineNo. Expression -1-: 149 (ep_in_hw) ?

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


LineNo. Expression -1-: 193 case (in_xact_state) -2-: 195 if ((ep_active && in_token_received)) -3-: 206 if (in_ep_iso_i[in_ep_index]) -4-: 213 if (in_ep_stall_i[in_ep_index]) -5-: 216 if (has_data_q) -6-: 227 if (((!more_data_to_send) || ((&in_ep_get_addr_o) && tx_data_get_i))) -7-: 228 if (in_ep_iso_i[in_ep_index]) -8-: 232 if (tx_pkt_end_i) -9-: 244 if (tx_pkt_end_i) -10-: 255 if (rx_pkt_start_i) -11-: 257 if ((timeout_cntdown_q == '0)) -12-: 266 if (ack_received) -13-: 269 if (in_token_received) -14-: 270 (ep_active) ? -15-: 272 if (rx_pkt_end_i)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15-StatusTests
StIdle 1 - - - - - - - - - - - - - Covered T7,T11,T12
StIdle 0 - - - - - - - - - - - - - Covered T1,T2,T3
StRcvdIn - 1 - - - - - - - - - - - - Not Covered
StRcvdIn - 0 1 - - - - - - - - - - - Covered T7,T25,T26
StRcvdIn - 0 0 1 - - - - - - - - - - Covered T11,T12,T13
StRcvdIn - 0 0 0 - - - - - - - - - - Not Covered
StSendData - - - - 1 1 - - - - - - - - Not Covered
StSendData - - - - 1 0 1 - - - - - - - Not Covered
StSendData - - - - 1 0 0 - - - - - - - Covered T11,T12,T13
StSendData - - - - 0 - - - - - - - - - Covered T11,T12,T13
StWaitTxEnd - - - - - - - 1 - - - - - - Covered T11,T12,T13
StWaitTxEnd - - - - - - - 0 - - - - - - Covered T11,T12,T13
StWaitAckStart - - - - - - - - 1 - - - - - Covered T11,T12,T13
StWaitAckStart - - - - - - - - 0 1 - - - - Not Covered
StWaitAckStart - - - - - - - - 0 0 - - - - Covered T11,T12,T13
StWaitAck - - - - - - - - - - 1 - - - Covered T11,T12,T13
StWaitAck - - - - - - - - - - 0 1 1 - Not Covered
StWaitAck - - - - - - - - - - 0 1 0 - Not Covered
StWaitAck - - - - - - - - - - 0 0 - 1 Not Covered
StWaitAck - - - - - - - - - - 0 0 - 0 Covered T11,T12,T13
default - - - - - - - - - - - - - - Not Covered


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

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


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

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


LineNo. Expression -1-: 305 if ((!rst_ni)) -2-: 308 if ((link_reset_i || (!link_active_i)))

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


LineNo. Expression -1-: 318 if ((!rst_ni)) -2-: 321 if ((in_xact_state == StIdle)) -3-: 323 if (((in_xact_state == StSendData) && tx_data_get_i))

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T1,T2,T3
0 0 1 Covered T11,T12,T13
0 0 0 Covered T7,T11,T12


LineNo. Expression -1-: 330 if ((!rst_ni)) -2-: 335 if (in_token_received)

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


LineNo. Expression -1-: 349 if ((setup_token_received && ep_active)) -2-: 351 if (((in_xact_state == StWaitAck) && ack_received))

Branches:
-1--2-StatusTests
1 - Covered T11,T13,T14
0 1 Covered T11,T12,T13
0 0 Covered T1,T2,T3


LineNo. Expression -1-: 355 if (in_datatog_we_i)

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


LineNo. Expression -1-: 364 if ((!rst_ni)) -2-: 366 if (link_reset_i)

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


LineNo. Expression -1-: 374 if ((!rst_ni)) -2-: 377 if (((in_xact_state == StSendData) && tx_data_get_i))

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


Assert Coverage for Module : usb_fs_nb_in_pe
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
InXactStateValid_A 277577482 277474874 0 0


InXactStateValid_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 277577482 277474874 0 0
T1 403126 403066 0 0
T2 401933 401752 0 0
T3 1215 1037 0 0
T4 401723 401671 0 0
T5 404196 404050 0 0
T6 401849 401753 0 0
T7 401218 401141 0 0
T8 401657 401441 0 0
T9 402976 402856 0 0
T10 1138 970 0 0

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