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

Module : usbdev_linkstate
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.usbdev_impl.u_usbdev_linkstate 0.00 0.00 0.00 0.00 0.00



Module Instance : tb.dut.usbdev_impl.u_usbdev_linkstate

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
0.00 0.00 0.00 0.00 usbdev_impl


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
filter_pwr_sense 0.00 0.00 0.00 0.00
filter_se0 0.00 0.00 0.00 0.00

Line Coverage for Module : usbdev_linkstate
Line No.TotalCoveredPercent
TOTAL10400.00
CONT_ASSIGN92100.00
CONT_ASSIGN93100.00
CONT_ASSIGN94100.00
CONT_ASSIGN96100.00
CONT_ASSIGN99100.00
CONT_ASSIGN105100.00
CONT_ASSIGN133100.00
CONT_ASSIGN135100.00
ALWAYS1393400.00
ALWAYS231300.00
ALWAYS2451800.00
CONT_ASSIGN289100.00
ALWAYS292500.00
ALWAYS3071600.00
ALWAYS348500.00
CONT_ASSIGN365100.00
ALWAYS367600.00
CONT_ASSIGN378100.00
ALWAYS380600.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_linkstate.sv' or '../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_linkstate.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
92 0 1
93 0 1
94 0 1
96 0 1
99 0 1
105 0 1
133 0 1
135 0 1
139 0 1
140 0 1
144 0 1
145 0 1
147 0 1
150 0 1
151 0 1
==> MISSING_ELSE
156 0 1
157 0 1
158 0 1
161 0 1
162 0 1
163 0 1
==> MISSING_ELSE
168 0 1
169 0 1
170 0 1
171 0 1
172 0 1
==> MISSING_ELSE
184 0 1
185 0 1
186 0 1
==> MISSING_ELSE
195 0 1
196 0 1
197 0 1
198 0 1
==> MISSING_ELSE
204 0 1
205 0 1
206 0 1
207 0 1
==> MISSING_ELSE
212 0 1
213 0 1
214 0 1
215 0 1
216 0 1
==> MISSING_ELSE
231 0 1
232 0 1
234 0 1
245 0 1
246 0 1
247 0 1
248 0 1
250 0 1
253 0 1
254 0 1
255 0 1
==> MISSING_ELSE
261 0 1
262 0 1
264 0 1
265 0 1
266 0 1
268 0 1
==> MISSING_ELSE
276 0 1
277 0 1
278 0 1
==> MISSING_ELSE
280 0 1
289 0 1
292 0 1
293 0 1
294 0 1
296 0 1
297 0 1
307 0 1
308 0 1
309 0 1
311 0 1
314 0 1
315 0 1
316 0 1
==> MISSING_ELSE
322 0 1
323 0 1
324 0 1
325 0 1
326 0 1
327 0 1
329 0 1
==> MISSING_ELSE
336 0 1
337 0 1
==> MISSING_ELSE
348 0 1
349 0 1
350 0 1
352 0 1
353 0 1
365 0 1
367 0 1
368 0 1
370 0 1
371 0 1
372 0 1
373 0 1
==> MISSING_ELSE
378 0 1
380 0 1
381 0 1
383 0 1
384 0 1
385 0 1
386 0 1
==> MISSING_ELSE


Cond Coverage for Module : usbdev_linkstate
TotalCoveredPercent
Conditions6900.00
Logical6900.00
Non-Logical00
Event00

 LINE       92
 EXPRESSION (link_state_q == LinkDisconnected)
            -----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       94
 EXPRESSION ((link_state_q == LinkSuspended) || (link_state_q == LinkPoweredSuspended))
             ---------------1---------------    -------------------2------------------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       94
 SUB-EXPRESSION (link_state_q == LinkSuspended)
                ---------------1---------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       94
 SUB-EXPRESSION (link_state_q == LinkPoweredSuspended)
                -------------------1------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       96
 EXPRESSION ((link_state_q == LinkActive) || (link_state_q == LinkActiveNoSOF))
             --------------1-------------    ----------------2----------------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       96
 SUB-EXPRESSION (link_state_q == LinkActive)
                --------------1-------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       96
 SUB-EXPRESSION (link_state_q == LinkActiveNoSOF)
                ----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 EXPRESSION ((usb_dn_i == 1'b0) & (usb_dp_i == 1'b0) & (usb_oe_i == 1'b0))
             ---------1--------   ---------2--------   ---------3--------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111Not Covered

 LINE       105
 SUB-EXPRESSION (usb_dn_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 SUB-EXPRESSION (usb_dp_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 SUB-EXPRESSION (usb_oe_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       135
 EXPRESSION (see_pwr_sense ? ((link_state_q == LinkPowered) | link_active_o) : 1'b0)
             ------1------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       135
 SUB-EXPRESSION ((link_state_q == LinkPowered) | link_active_o)
                 --------------1--------------   ------2------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       135
 SUB-EXPRESSION (link_state_q == LinkPowered)
                --------------1--------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       144
 EXPRESSION (((!see_pwr_sense)) || ((!usb_pullup_en_i)))
             ---------1--------    ----------2---------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       150
 EXPRESSION (see_pwr_sense & usb_pullup_en_i)
             ------1------   -------2-------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       184
 EXPRESSION (rx_j_det_i | ev_reset)
             -----1----   ----2---
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       265
 EXPRESSION (link_rst_timer_q == RESET_TIMEOUT)
            -----------------1-----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       315
 EXPRESSION (((!ev_bus_active)) && monitor_inac)
             ---------1--------    ------2-----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       322
 EXPRESSION (ev_bus_active || ((!monitor_inac)))
             ------1------    --------2--------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       325
 EXPRESSION (link_inac_timer_q == SUSPEND_TIMEOUT)
            -------------------1------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       336
 EXPRESSION (ev_bus_active || ((!monitor_inac)))
             ------1------    --------2--------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       370
 EXPRESSION (sof_detected_i || ((!link_active_o)) || link_reset)
             -------1------    ---------2--------    -----3----
-1--2--3-StatusTests
000Not Covered
001Not Covered
010Not Covered
100Not Covered

 LINE       372
 EXPRESSION (sof_missed_o && ((!host_lost_o)))
             ------1-----    --------2-------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       378
 EXPRESSION (missing_sof_timer == SOF_TIMEOUT)
            -----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       383
 EXPRESSION (sof_missed_o || sof_detected_i || ((!link_active_o)) || link_reset)
             ------1-----    -------2------    ---------3--------    -----4----
-1--2--3--4-StatusTests
0000Not Covered
0001Not Covered
0010Not Covered
0100Not Covered
1000Not Covered

FSM Coverage for Module : usbdev_linkstate
Summary for FSM :: link_state_q
TotalCoveredPercent
States 7 0 0.00 (Not included in score)
Transitions 19 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_state_q
statesLine No.CoveredTests
LinkActive 198 Not Covered
LinkActiveNoSOF 157 Not Covered
LinkDisconnected 145 Not Covered
LinkPowered 151 Not Covered
LinkPoweredSuspended 163 Not Covered
LinkResuming 161 Not Covered
LinkSuspended 196 Not Covered


transitionsLine No.CoveredTests
LinkActive->LinkActiveNoSOF 207 Not Covered
LinkActive->LinkDisconnected 145 Not Covered
LinkActive->LinkSuspended 205 Not Covered
LinkActiveNoSOF->LinkActive 198 Not Covered
LinkActiveNoSOF->LinkDisconnected 145 Not Covered
LinkActiveNoSOF->LinkSuspended 196 Not Covered
LinkDisconnected->LinkPowered 151 Not Covered
LinkPowered->LinkActiveNoSOF 157 Not Covered
LinkPowered->LinkDisconnected 145 Not Covered
LinkPowered->LinkPoweredSuspended 163 Not Covered
LinkPowered->LinkResuming 161 Not Covered
LinkPoweredSuspended->LinkActiveNoSOF 169 Not Covered
LinkPoweredSuspended->LinkDisconnected 145 Not Covered
LinkPoweredSuspended->LinkPowered 172 Not Covered
LinkResuming->LinkActiveNoSOF 186 Not Covered
LinkResuming->LinkDisconnected 145 Not Covered
LinkSuspended->LinkActiveNoSOF 214 Not Covered
LinkSuspended->LinkDisconnected 145 Not Covered
LinkSuspended->LinkResuming 216 Not Covered


Summary for FSM :: link_rst_state_q
TotalCoveredPercent
States 3 0 0.00 (Not included in score)
Transitions 4 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_rst_state_q
statesLine No.CoveredTests
NoRst 262 Not Covered
RstCnt 254 Not Covered
RstPend 266 Not Covered


transitionsLine No.CoveredTests
NoRst->RstCnt 254 Not Covered
RstCnt->NoRst 262 Not Covered
RstCnt->RstPend 266 Not Covered
RstPend->NoRst 277 Not Covered


Summary for FSM :: link_inac_state_q
TotalCoveredPercent
States 3 0 0.00 (Not included in score)
Transitions 4 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_inac_state_q
statesLine No.CoveredTests
Active 323 Not Covered
InactCnt 316 Not Covered
InactPend 326 Not Covered


transitionsLine No.CoveredTests
Active->InactCnt 316 Not Covered
InactCnt->Active 323 Not Covered
InactCnt->InactPend 326 Not Covered
InactPend->Active 337 Not Covered



Branch Coverage for Module : usbdev_linkstate
Line No.TotalCoveredPercent
Branches 56 0 0.00
TERNARY 135 2 0 0.00
IF 144 22 0 0.00
IF 231 2 0 0.00
CASE 250 9 0 0.00
IF 292 2 0 0.00
CASE 311 9 0 0.00
IF 348 2 0 0.00
IF 367 4 0 0.00
IF 380 4 0 0.00

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

LineNo. Expression -1-: 135 (see_pwr_sense) ?

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 144 if (((!see_pwr_sense) || (!usb_pullup_en_i))) -2-: 147 case (link_state_q) -3-: 150 if ((see_pwr_sense & usb_pullup_en_i)) -4-: 156 if (ev_reset) -5-: 158 if (resume_link_active_i) -6-: 162 if (ev_bus_inactive) -7-: 168 if (ev_reset) -8-: 170 if (ev_bus_active) -9-: 184 if ((rx_j_det_i | ev_reset)) -10-: 195 if (ev_bus_inactive) -11-: 197 if (sof_detected_i) -12-: 204 if (ev_bus_inactive) -13-: 206 if (ev_reset) -14-: 212 if (ev_reset) -15-: 215 if (ev_bus_active)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15-StatusTests
1 - - - - - - - - - - - - - - Not Covered
0 LinkDisconnected 1 - - - - - - - - - - - - Not Covered
0 LinkDisconnected 0 - - - - - - - - - - - - Not Covered
0 LinkPowered - 1 - - - - - - - - - - - Not Covered
0 LinkPowered - 0 1 - - - - - - - - - - Not Covered
0 LinkPowered - 0 0 1 - - - - - - - - - Not Covered
0 LinkPowered - 0 0 0 - - - - - - - - - Not Covered
0 LinkPoweredSuspended - - - - 1 - - - - - - - - Not Covered
0 LinkPoweredSuspended - - - - 0 1 - - - - - - - Not Covered
0 LinkPoweredSuspended - - - - 0 0 - - - - - - - Not Covered
0 LinkResuming - - - - - - 1 - - - - - - Not Covered
0 LinkResuming - - - - - - 0 - - - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 1 - - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 0 1 - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 0 0 - - - - Not Covered
0 LinkActive - - - - - - - - - 1 - - - Not Covered
0 LinkActive - - - - - - - - - 0 1 - - Not Covered
0 LinkActive - - - - - - - - - 0 0 - - Not Covered
0 LinkSuspended - - - - - - - - - - - 1 - Not Covered
0 LinkSuspended - - - - - - - - - - - 0 1 Not Covered
0 LinkSuspended - - - - - - - - - - - 0 0 Not Covered
0 default - - - - - - - - - - - - - Not Covered


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 250 case (link_rst_state_q) -2-: 253 if (see_se0) -3-: 261 if ((!see_se0)) -4-: 264 if (us_tick_i) -5-: 265 if ((link_rst_timer_q == RESET_TIMEOUT)) -6-: 276 if ((!see_se0))

Branches:
-1--2--3--4--5--6-StatusTests
NoRst 1 - - - - Not Covered
NoRst 0 - - - - Not Covered
RstCnt - 1 - - - Not Covered
RstCnt - 0 1 1 - Not Covered
RstCnt - 0 1 0 - Not Covered
RstCnt - 0 0 - - Not Covered
RstPend - - - - 1 Not Covered
RstPend - - - - 0 Not Covered
default - - - - - Not Covered


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 311 case (link_inac_state_q) -2-: 315 if (((!ev_bus_active) && monitor_inac)) -3-: 322 if ((ev_bus_active || (!monitor_inac))) -4-: 324 if (us_tick_i) -5-: 325 if ((link_inac_timer_q == SUSPEND_TIMEOUT)) -6-: 336 if ((ev_bus_active || (!monitor_inac)))

Branches:
-1--2--3--4--5--6-StatusTests
Active 1 - - - - Not Covered
Active 0 - - - - Not Covered
InactCnt - 1 - - - Not Covered
InactCnt - 0 1 1 - Not Covered
InactCnt - 0 1 0 - Not Covered
InactCnt - 0 0 - - Not Covered
InactPend - - - - 1 Not Covered
InactPend - - - - 0 Not Covered
default - - - - - Not Covered


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 367 if ((!rst_ni)) -2-: 370 if (((sof_detected_i || (!link_active_o)) || link_reset)) -3-: 372 if ((sof_missed_o && (!host_lost_o)))

Branches:
-1--2--3-StatusTests
1 - - Not Covered
0 1 - Not Covered
0 0 1 Not Covered
0 0 0 Not Covered


LineNo. Expression -1-: 380 if ((!rst_ni)) -2-: 383 if ((((sof_missed_o || sof_detected_i) || (!link_active_o)) || link_reset)) -3-: 385 if (us_tick_i)

Branches:
-1--2--3-StatusTests
1 - - Not Covered
0 1 - Not Covered
0 0 1 Not Covered
0 0 0 Not Covered

Line Coverage for Instance : tb.dut.usbdev_impl.u_usbdev_linkstate
Line No.TotalCoveredPercent
TOTAL10400.00
CONT_ASSIGN92100.00
CONT_ASSIGN93100.00
CONT_ASSIGN94100.00
CONT_ASSIGN96100.00
CONT_ASSIGN99100.00
CONT_ASSIGN105100.00
CONT_ASSIGN133100.00
CONT_ASSIGN135100.00
ALWAYS1393400.00
ALWAYS231300.00
ALWAYS2451800.00
CONT_ASSIGN289100.00
ALWAYS292500.00
ALWAYS3071600.00
ALWAYS348500.00
CONT_ASSIGN365100.00
ALWAYS367600.00
CONT_ASSIGN378100.00
ALWAYS380600.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_linkstate.sv' or '../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_linkstate.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
92 0 1
93 0 1
94 0 1
96 0 1
99 0 1
105 0 1
133 0 1
135 0 1
139 0 1
140 0 1
144 0 1
145 0 1
147 0 1
150 0 1
151 0 1
==> MISSING_ELSE
156 0 1
157 0 1
158 0 1
161 0 1
162 0 1
163 0 1
==> MISSING_ELSE
168 0 1
169 0 1
170 0 1
171 0 1
172 0 1
==> MISSING_ELSE
184 0 1
185 0 1
186 0 1
==> MISSING_ELSE
195 0 1
196 0 1
197 0 1
198 0 1
==> MISSING_ELSE
204 0 1
205 0 1
206 0 1
207 0 1
==> MISSING_ELSE
212 0 1
213 0 1
214 0 1
215 0 1
216 0 1
==> MISSING_ELSE
Exclude Annotation: VC_COV_UNR
231 0 1
232 0 1
234 0 1
245 0 1
246 0 1
247 0 1
248 0 1
250 0 1
253 0 1
254 0 1
255 0 1
==> MISSING_ELSE
261 0 1
262 0 1
264 0 1
265 0 1
266 0 1
268 0 1
==> MISSING_ELSE
276 0 1
277 0 1
278 0 1
==> MISSING_ELSE
280 0 1
Exclude Annotation: VC_COV_UNR
289 0 1
292 0 1
293 0 1
294 0 1
296 0 1
297 0 1
307 0 1
308 0 1
309 0 1
311 0 1
314 0 1
315 0 1
316 0 1
==> MISSING_ELSE
322 0 1
323 0 1
324 0 1
325 0 1
326 0 1
327 0 1
329 0 1
==> MISSING_ELSE
336 0 1
337 0 1
==> MISSING_ELSE
Exclude Annotation: VC_COV_UNR
348 0 1
349 0 1
350 0 1
352 0 1
353 0 1
365 0 1
367 0 1
368 0 1
370 0 1
371 0 1
372 0 1
373 0 1
==> MISSING_ELSE
378 0 1
380 0 1
381 0 1
383 0 1
384 0 1
385 0 1
386 0 1
==> MISSING_ELSE


Cond Coverage for Instance : tb.dut.usbdev_impl.u_usbdev_linkstate
TotalCoveredPercent
Conditions6700.00
Logical6700.00
Non-Logical00
Event00

 LINE       92
 EXPRESSION (link_state_q == LinkDisconnected)
            -----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       94
 EXPRESSION ((link_state_q == LinkSuspended) || (link_state_q == LinkPoweredSuspended))
             ---------------1---------------    -------------------2------------------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       94
 SUB-EXPRESSION (link_state_q == LinkSuspended)
                ---------------1---------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       94
 SUB-EXPRESSION (link_state_q == LinkPoweredSuspended)
                -------------------1------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       96
 EXPRESSION ((link_state_q == LinkActive) || (link_state_q == LinkActiveNoSOF))
             --------------1-------------    ----------------2----------------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       96
 SUB-EXPRESSION (link_state_q == LinkActive)
                --------------1-------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       96
 SUB-EXPRESSION (link_state_q == LinkActiveNoSOF)
                ----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 EXPRESSION ((usb_dn_i == 1'b0) & (usb_dp_i == 1'b0) & (usb_oe_i == 1'b0))
             ---------1--------   ---------2--------   ---------3--------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111Not Covered

 LINE       105
 SUB-EXPRESSION (usb_dn_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 SUB-EXPRESSION (usb_dp_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       105
 SUB-EXPRESSION (usb_oe_i == 1'b0)
                ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       135
 EXPRESSION (see_pwr_sense ? ((link_state_q == LinkPowered) | link_active_o) : 1'b0)
             ------1------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       135
 SUB-EXPRESSION ((link_state_q == LinkPowered) | link_active_o)
                 --------------1--------------   ------2------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       135
 SUB-EXPRESSION (link_state_q == LinkPowered)
                --------------1--------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       144
 EXPRESSION (((!see_pwr_sense)) || ((!usb_pullup_en_i)))
             ---------1--------    ----------2---------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       150
 EXPRESSION (see_pwr_sense & usb_pullup_en_i)
             ------1------   -------2-------
-1--2-StatusTestsExclude Annotation
01Excluded VC_COV_UNR
10Excluded VC_COV_UNR
11Not Covered

 LINE       184
 EXPRESSION (rx_j_det_i | ev_reset)
             -----1----   ----2---
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       265
 EXPRESSION (link_rst_timer_q == RESET_TIMEOUT)
            -----------------1-----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       315
 EXPRESSION (((!ev_bus_active)) && monitor_inac)
             ---------1--------    ------2-----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       322
 EXPRESSION (ev_bus_active || ((!monitor_inac)))
             ------1------    --------2--------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       325
 EXPRESSION (link_inac_timer_q == SUSPEND_TIMEOUT)
            -------------------1------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       336
 EXPRESSION (ev_bus_active || ((!monitor_inac)))
             ------1------    --------2--------
-1--2-StatusTests
00Not Covered
01Not Covered
10Not Covered

 LINE       370
 EXPRESSION (sof_detected_i || ((!link_active_o)) || link_reset)
             -------1------    ---------2--------    -----3----
-1--2--3-StatusTests
000Not Covered
001Not Covered
010Not Covered
100Not Covered

 LINE       372
 EXPRESSION (sof_missed_o && ((!host_lost_o)))
             ------1-----    --------2-------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       378
 EXPRESSION (missing_sof_timer == SOF_TIMEOUT)
            -----------------1----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       383
 EXPRESSION (sof_missed_o || sof_detected_i || ((!link_active_o)) || link_reset)
             ------1-----    -------2------    ---------3--------    -----4----
-1--2--3--4-StatusTests
0000Not Covered
0001Not Covered
0010Not Covered
0100Not Covered
1000Not Covered

FSM Coverage for Instance : tb.dut.usbdev_impl.u_usbdev_linkstate
Summary for FSM :: link_state_q
TotalCoveredPercent
States 7 0 0.00 (Not included in score)
Transitions 17 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_state_q
statesLine No.CoveredTests
LinkActive 198 Not Covered
LinkActiveNoSOF 157 Not Covered
LinkDisconnected 145 Not Covered
LinkPowered 151 Not Covered
LinkPoweredSuspended 163 Not Covered
LinkResuming 161 Not Covered
LinkSuspended 196 Not Covered


transitionsLine No.CoveredTestsExclude Annotation
LinkActive->LinkActiveNoSOF 207 Not Covered
LinkActive->LinkDisconnected 145 Not Covered
LinkActive->LinkSuspended 205 Not Covered
LinkActiveNoSOF->LinkActive 198 Not Covered
LinkActiveNoSOF->LinkDisconnected 145 Not Covered
LinkActiveNoSOF->LinkSuspended 196 Not Covered
LinkDisconnected->LinkPowered 151 Not Covered
LinkPowered->LinkActiveNoSOF 157 Not Covered
LinkPowered->LinkDisconnected 145 Not Covered
LinkPowered->LinkPoweredSuspended 163 Not Covered
LinkPowered->LinkResuming 161 Not Covered
LinkPoweredSuspended->LinkActiveNoSOF 169 Excluded Signal `ev_reset` is delayed relative to the signal `ev_bus_active` which also triggers.
LinkPoweredSuspended->LinkDisconnected 145 Not Covered
LinkPoweredSuspended->LinkPowered 172 Not Covered
LinkResuming->LinkActiveNoSOF 186 Not Covered
LinkResuming->LinkDisconnected 145 Not Covered
LinkSuspended->LinkActiveNoSOF 214 Excluded Signal `ev_reset` is delayed relative to the signal `ev_bus_active` which also triggers.
LinkSuspended->LinkDisconnected 145 Not Covered
LinkSuspended->LinkResuming 216 Not Covered


Summary for FSM :: link_rst_state_q
TotalCoveredPercent
States 3 0 0.00 (Not included in score)
Transitions 4 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_rst_state_q
statesLine No.CoveredTests
NoRst 262 Not Covered
RstCnt 254 Not Covered
RstPend 266 Not Covered


transitionsLine No.CoveredTests
NoRst->RstCnt 254 Not Covered
RstCnt->NoRst 262 Not Covered
RstCnt->RstPend 266 Not Covered
RstPend->NoRst 277 Not Covered


Summary for FSM :: link_inac_state_q
TotalCoveredPercent
States 3 0 0.00 (Not included in score)
Transitions 4 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: link_inac_state_q
statesLine No.CoveredTests
Active 323 Not Covered
InactCnt 316 Not Covered
InactPend 326 Not Covered


transitionsLine No.CoveredTests
Active->InactCnt 316 Not Covered
InactCnt->Active 323 Not Covered
InactCnt->InactPend 326 Not Covered
InactPend->Active 337 Not Covered



Branch Coverage for Instance : tb.dut.usbdev_impl.u_usbdev_linkstate
Line No.TotalCoveredPercent
Branches 50 0 0.00
TERNARY 135 2 0 0.00
IF 144 18 0 0.00
IF 231 2 0 0.00
CASE 250 8 0 0.00
IF 292 2 0 0.00
CASE 311 8 0 0.00
IF 348 2 0 0.00
IF 367 4 0 0.00
IF 380 4 0 0.00

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

LineNo. Expression -1-: 135 (see_pwr_sense) ?

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 144 if (((!see_pwr_sense) || (!usb_pullup_en_i))) -2-: 147 case (link_state_q) -3-: 150 if ((see_pwr_sense & usb_pullup_en_i)) -4-: 156 if (ev_reset) -5-: 158 if (resume_link_active_i) -6-: 162 if (ev_bus_inactive) -7-: 168 if (ev_reset) -8-: 170 if (ev_bus_active) -9-: 184 if ((rx_j_det_i | ev_reset)) -10-: 195 if (ev_bus_inactive) -11-: 197 if (sof_detected_i) -12-: 204 if (ev_bus_inactive) -13-: 206 if (ev_reset) -14-: 212 if (ev_reset) -15-: 215 if (ev_bus_active)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15-StatusTestsExclude Annotation
1 - - - - - - - - - - - - - - Not Covered
0 LinkDisconnected 1 - - - - - - - - - - - - Not Covered
0 LinkDisconnected 0 - - - - - - - - - - - - Excluded VC_COV_UNR
0 LinkPowered - 1 - - - - - - - - - - - Not Covered
0 LinkPowered - 0 1 - - - - - - - - - - Not Covered
0 LinkPowered - 0 0 1 - - - - - - - - - Not Covered
0 LinkPowered - 0 0 0 - - - - - - - - - Not Covered
0 LinkPoweredSuspended - - - - 1 - - - - - - - - Excluded Signal `ev_reset` is delayed relative to the signal `ev_bus_active` which also triggers.
0 LinkPoweredSuspended - - - - 0 1 - - - - - - - Not Covered
0 LinkPoweredSuspended - - - - 0 0 - - - - - - - Not Covered
0 LinkResuming - - - - - - 1 - - - - - - Not Covered
0 LinkResuming - - - - - - 0 - - - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 1 - - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 0 1 - - - - Not Covered
0 LinkActiveNoSOF - - - - - - - 0 0 - - - - Not Covered
0 LinkActive - - - - - - - - - 1 - - - Not Covered
0 LinkActive - - - - - - - - - 0 1 - - Not Covered
0 LinkActive - - - - - - - - - 0 0 - - Not Covered
0 LinkSuspended - - - - - - - - - - - 1 - Excluded Signal `ev_reset` is delayed relative to the signal `ev_bus_active` which also triggers.
0 LinkSuspended - - - - - - - - - - - 0 1 Not Covered
0 LinkSuspended - - - - - - - - - - - 0 0 Not Covered
0 default - - - - - - - - - - - - - Excluded VC_COV_UNR


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 250 case (link_rst_state_q) -2-: 253 if (see_se0) -3-: 261 if ((!see_se0)) -4-: 264 if (us_tick_i) -5-: 265 if ((link_rst_timer_q == RESET_TIMEOUT)) -6-: 276 if ((!see_se0))

Branches:
-1--2--3--4--5--6-StatusTestsExclude Annotation
NoRst 1 - - - - Not Covered
NoRst 0 - - - - Not Covered
RstCnt - 1 - - - Not Covered
RstCnt - 0 1 1 - Not Covered
RstCnt - 0 1 0 - Not Covered
RstCnt - 0 0 - - Not Covered
RstPend - - - - 1 Not Covered
RstPend - - - - 0 Not Covered
default - - - - - Excluded VC_COV_UNR


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 311 case (link_inac_state_q) -2-: 315 if (((!ev_bus_active) && monitor_inac)) -3-: 322 if ((ev_bus_active || (!monitor_inac))) -4-: 324 if (us_tick_i) -5-: 325 if ((link_inac_timer_q == SUSPEND_TIMEOUT)) -6-: 336 if ((ev_bus_active || (!monitor_inac)))

Branches:
-1--2--3--4--5--6-StatusTestsExclude Annotation
Active 1 - - - - Not Covered
Active 0 - - - - Not Covered
InactCnt - 1 - - - Not Covered
InactCnt - 0 1 1 - Not Covered
InactCnt - 0 1 0 - Not Covered
InactCnt - 0 0 - - Not Covered
InactPend - - - - 1 Not Covered
InactPend - - - - 0 Not Covered
default - - - - - Excluded VC_COV_UNR


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

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 367 if ((!rst_ni)) -2-: 370 if (((sof_detected_i || (!link_active_o)) || link_reset)) -3-: 372 if ((sof_missed_o && (!host_lost_o)))

Branches:
-1--2--3-StatusTests
1 - - Not Covered
0 1 - Not Covered
0 0 1 Not Covered
0 0 0 Not Covered


LineNo. Expression -1-: 380 if ((!rst_ni)) -2-: 383 if ((((sof_missed_o || sof_detected_i) || (!link_active_o)) || link_reset)) -3-: 385 if (us_tick_i)

Branches:
-1--2--3-StatusTests
1 - - Not Covered
0 1 - Not Covered
0 0 1 Not Covered
0 0 0 Not Covered

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