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

Module : usbdev_usbif
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.06 96.55 92.77 90.91 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.usbdev_impl 95.06 96.55 92.77 90.91 100.00



Module Instance : tb.dut.usbdev_impl

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.06 96.55 92.77 90.91 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
83.32 93.61 84.24 51.56 87.18 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
89.68 93.83 68.66 94.27 91.67 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_usb_fs_nb_pe 86.30 95.32 83.40 62.16 90.65 100.00
u_usbdev_linkstate 74.32 82.81 81.18 37.04 70.59 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : usbdev_usbif
Line No.TotalCoveredPercent
TOTAL878496.55
CONT_ASSIGN13411100.00
CONT_ASSIGN15200
CONT_ASSIGN15311100.00
CONT_ASSIGN15511100.00
CONT_ASSIGN15611100.00
CONT_ASSIGN15711100.00
ALWAYS16066100.00
CONT_ASSIGN18211100.00
ALWAYS18666100.00
ALWAYS19888100.00
CONT_ASSIGN21511100.00
CONT_ASSIGN21611100.00
CONT_ASSIGN22111100.00
CONT_ASSIGN22411100.00
CONT_ASSIGN22611100.00
CONT_ASSIGN22711100.00
CONT_ASSIGN22811100.00
CONT_ASSIGN22911100.00
CONT_ASSIGN23111100.00
CONT_ASSIGN23511100.00
CONT_ASSIGN23711100.00
CONT_ASSIGN24311100.00
ALWAYS24655100.00
CONT_ASSIGN25611100.00
CONT_ASSIGN25811100.00
CONT_ASSIGN26011100.00
CONT_ASSIGN26111100.00
CONT_ASSIGN26611100.00
CONT_ASSIGN27600
CONT_ASSIGN27711100.00
CONT_ASSIGN28111100.00
ALWAYS28322100.00
ALWAYS29033100.00
CONT_ASSIGN29711100.00
CONT_ASSIGN29811100.00
CONT_ASSIGN30011100.00
CONT_ASSIGN40311100.00
CONT_ASSIGN40411100.00
ALWAYS40755100.00
ALWAYS41633100.00
ALWAYS456161381.25
CONT_ASSIGN47311100.00
CONT_ASSIGN47411100.00
CONT_ASSIGN47511100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_usbif.sv' or '../src/lowrisc_ip_usbdev_0.1/rtl/usbdev_usbif.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
134 1 1
152 unreachable
153 1 1
155 1 1
156 1 1
157 1 1
160 1 1
161 1 1
163 1 1
167 1 1
168 1 1
169 unreachable
170 unreachable
172 unreachable
176 1 1
182 1 1
186 1 1
188 1 1
189 1 1
190 1 1
191 1 1
192 1 1
198 1 1
199 1 1
200 1 1
201 1 1
203 1 1
204 1 1
206 1 1
207 1 1
MISSING_ELSE
215 1 1
216 1 1
221 1 1
224 1 1
226 1 1
227 1 1
228 1 1
229 1 1
231 1 1
235 1 1
237 1 1
243 1 1
246 1 1
247 1 1
248 1 1
250 1 1
251 1 1
256 1 1
258 1 1
260 1 1
261 1 1
266 1 1
276 unreachable
277 1 1
281 1 1
283 1 1
284 1 1
290 1 1
291 1 1
293 1 1
297 1 1
298 1 1
300 1 1
403 1 1
404 1 1
407 1 1
408 1 1
409 1 1
410 1 1
411 1 1
MISSING_ELSE
416 1 1
417 1 1
419 1 1
456 1 1
457 1 1
458 1 1
459 1 1
462 2 2
463 1 2
MISSING_ELSE
465 2 2
466 1 2
MISSING_ELSE
468 2 2
469 1 2
MISSING_ELSE
473 1 1
474 1 1
475 1 1


Cond Coverage for Module : usbdev_usbif
TotalCoveredPercent
Conditions837792.77
Logical837792.77
Non-Logical00
Event00

 LINE       134
 EXPRESSION (connect_en_i & usb_sense_i)
             ------1-----   -----2-----
-1--2-StatusTests
01CoveredT3,T4,T5
10CoveredT15
11CoveredT3,T4,T5

 LINE       153
 EXPRESSION (out_endpoint_val_o ? out_ep_current : '0)
             ---------1--------
-1-StatusTests
0Unreachable
1CoveredT3,T4,T5

 LINE       156
 EXPRESSION (((~connect_en_i)) | link_reset)
             --------1--------   -----2----
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT3,T4,T5
10CoveredT3,T4,T5

 LINE       160
 EXPRESSION (out_ep_acked || out_ep_rollback)
             ------1-----    -------2-------
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT33,T34,T35
10CoveredT3,T9,T14

 LINE       182
 EXPRESSION (out_ep_data_put & (int'(out_max_used_q) < (MaxPktSizeByte - 1)) & (out_ep_put_addr[1:0] == 2'b11))
             -------1-------   ----------------------2----------------------   ---------------3---------------
-1--2--3-StatusTests
011CoveredT3,T9,T14
101UnreachableT16,T19,T36
110CoveredT3,T9,T14
111CoveredT3,T9,T14

 LINE       182
 SUB-EXPRESSION (out_ep_put_addr[1:0] == 2'b11)
                ---------------1---------------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T9,T14

 LINE       215
 EXPRESSION (current_setup ? avsetup_rvalid_i : avout_rvalid_i)
             ------1------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT22,T30,T31

 LINE       216
 EXPRESSION (current_setup ? avsetup_rdata_i : avout_rdata_i)
             ------1------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT22,T30,T31

 LINE       221
 EXPRESSION (current_setup ? rx_wready_setup_i : rx_wready_out_i)
             ------1------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT22,T30,T31

 LINE       224
 EXPRESSION (av_rvalid & (std_write_q | (((~out_max_used_q[PktW])) & (out_max_used_q[1:0] != 2'b11) & out_ep_acked)))
             ----1----   ---------------------------------------------2---------------------------------------------
-1--2-StatusTests
01Not Covered
10CoveredT3,T4,T5
11CoveredT3,T9,T14

 LINE       224
 SUB-EXPRESSION (std_write_q | (((~out_max_used_q[PktW])) & (out_max_used_q[1:0] != 2'b11) & out_ep_acked))
                 -----1-----   -------------------------------------2-------------------------------------
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT3,T9,T23
10CoveredT3,T9,T14

 LINE       224
 SUB-EXPRESSION (((~out_max_used_q[PktW])) & (out_max_used_q[1:0] != 2'b11) & out_ep_acked)
                 ------------1------------   ---------------2--------------   ------3-----
-1--2--3-StatusTests
011CoveredT16,T19,T36
101CoveredT14,T24,T43
110CoveredT3,T4,T5
111CoveredT3,T9,T23

 LINE       224
 SUB-EXPRESSION (out_max_used_q[1:0] != 2'b11)
                ---------------1--------------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T4,T5

 LINE       228
 EXPRESSION (mem_write_o ? mem_waddr : mem_raddr)
             -----1-----
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T9,T14

 LINE       229
 EXPRESSION (mem_read | mem_write_o)
             ----1---   -----2-----
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT3,T9,T14
10CoveredT3,T23,T24

 LINE       250
 EXPRESSION (rx_wvalid_o & current_setup)
             -----1-----   ------2------
-1--2-StatusTests
01CoveredT22,T30,T31
10CoveredT3,T9,T14
11CoveredT30,T31,T32

 LINE       251
 EXPRESSION (rx_wvalid_o & ((~current_setup)))
             -----1-----   ---------2--------
-1--2-StatusTests
01CoveredT3,T4,T5
10CoveredT30,T31,T32
11CoveredT3,T9,T14

 LINE       258
 EXPRESSION (((~rx_wready)) | ((~av_rvalid)))
             -------1------   -------2------
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT3,T4,T5
10Not Covered

 LINE       266
 EXPRESSION (current_setup & rx_wvalid_o)
             ------1------   -----2-----
-1--2-StatusTests
01CoveredT3,T9,T14
10CoveredT22,T30,T31
11CoveredT30,T31,T32

 LINE       277
 EXPRESSION (in_endpoint_val_o ? in_ep_current : '0)
             --------1--------
-1-StatusTests
0Unreachable
1CoveredT3,T4,T5

 LINE       281
 EXPRESSION ({1'b0, in_ep_get_addr} == in_size_i)
            ------------------1------------------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T4,T5

 LINE       298
 EXPRESSION (pkt_start_rd | (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0)))
             ------1-----   ------------------------2-----------------------
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT3,T23,T24
10CoveredT3,T23,T24

 LINE       298
 SUB-EXPRESSION (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0))
                 -------1------   --------------2--------------
-1--2-StatusTests
01CoveredT3,T4,T5
10CoveredT3,T23,T24
11CoveredT3,T23,T24

 LINE       298
 SUB-EXPRESSION (in_ep_get_addr[1:0] == 2'b0)
                --------------1--------------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T4,T5

 LINE       300
 EXPRESSION (in_ep_get_addr[1] ? (in_ep_get_addr[0] ? mem_rdata_i[31:24] : mem_rdata_i[23:16]) : (in_ep_get_addr[0] ? mem_rdata_i[15:8] : mem_rdata_i[7:0]))
             --------1--------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T23,T24

 LINE       300
 SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[31:24] : mem_rdata_i[23:16])
                 --------1--------
-1-StatusTests
0CoveredT3,T23,T24
1CoveredT3,T23,T24

 LINE       300
 SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[15:8] : mem_rdata_i[7:0])
                 --------1--------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT3,T23,T24

 LINE       404
 EXPRESSION (frame_q != frame_d)
            ----------1---------
-1-StatusTests
0CoveredT3,T4,T5
1CoveredT16,T19,T11

 LINE       410
 EXPRESSION (sof_detected_o | do_internal_sof)
             -------1------   -------2-------
-1--2-StatusTests
00CoveredT3,T4,T5
01CoveredT16,T19,T20
10Not Covered

 LINE       463
 EXPRESSION (out_ep_data_put & current_setup & ((!avsetup_rvalid_i)))
             -------1-------   ------2------   ----------3----------
-1--2--3-StatusTests
011CoveredT22,T30,T31
101CoveredT3,T9,T14
110CoveredT30,T31,T32
111Not Covered

 LINE       466
 EXPRESSION (out_ep_data_put & ((!current_setup)) & ((!avout_rvalid_i)))
             -------1-------   ---------2--------   ---------3---------
-1--2--3-StatusTests
011CoveredT3,T4,T5
101CoveredT30,T31,T32
110CoveredT3,T9,T14
111Not Covered

 LINE       469
 EXPRESSION (out_ep_data_put & ((!rx_wready)))
             -------1-------   -------2------
-1--2-StatusTests
01CoveredT3,T4,T5
10CoveredT3,T9,T14
11Not Covered

Branch Coverage for Module : usbdev_usbif
Line No.TotalCoveredPercent
Branches 44 40 90.91
TERNARY 153 1 1 100.00
TERNARY 215 2 2 100.00
TERNARY 216 2 2 100.00
TERNARY 221 2 2 100.00
TERNARY 228 2 2 100.00
TERNARY 277 1 1 100.00
TERNARY 300 4 4 100.00
IF 160 3 3 100.00
CASE 188 5 4 80.00
IF 198 3 3 100.00
IF 246 2 2 100.00
IF 290 2 2 100.00
IF 408 3 3 100.00
IF 416 2 2 100.00
IF 456 10 7 70.00

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

LineNo. Expression -1-: 153 (out_endpoint_val_o) ?

Branches:
-1-StatusTests
1 Covered T3,T4,T5
0 Unreachable


LineNo. Expression -1-: 215 (current_setup) ?

Branches:
-1-StatusTests
1 Covered T22,T30,T31
0 Covered T3,T4,T5


LineNo. Expression -1-: 216 (current_setup) ?

Branches:
-1-StatusTests
1 Covered T22,T30,T31
0 Covered T3,T4,T5


LineNo. Expression -1-: 221 (current_setup) ?

Branches:
-1-StatusTests
1 Covered T22,T30,T31
0 Covered T3,T4,T5


LineNo. Expression -1-: 228 (mem_write_o) ?

Branches:
-1-StatusTests
1 Covered T3,T9,T14
0 Covered T3,T4,T5


LineNo. Expression -1-: 277 (in_endpoint_val_o) ?

Branches:
-1-StatusTests
1 Covered T3,T4,T5
0 Unreachable


LineNo. Expression -1-: 300 (in_ep_get_addr[1]) ? -2-: 300 (in_ep_get_addr[0]) ? -3-: 300 (in_ep_get_addr[0]) ?

Branches:
-1--2--3-StatusTests
1 1 - Covered T3,T23,T24
1 0 - Covered T3,T23,T24
0 - 1 Covered T3,T23,T24
0 - 0 Covered T3,T4,T5


LineNo. Expression -1-: 160 if ((out_ep_acked || out_ep_rollback)) -2-: 163 if (out_ep_data_put) -3-: 167 if ((int'(out_max_used_q) < (MaxPktSizeByte - 1))) -4-: 169 if ((int'(out_max_used_q) < (MaxPktSizeByte + 1)))

Branches:
-1--2--3--4-StatusTests
1 - - - Covered T3,T9,T14
0 1 1 - Covered T3,T9,T14
0 1 0 1 Unreachable T16,T19,T36
0 1 0 0 Unreachable
0 0 - - Covered T3,T4,T5


LineNo. Expression -1-: 188 case (out_ep_put_addr[1:0])

Branches:
-1-StatusTests
0 Covered T3,T4,T5
1 Covered T3,T9,T14
2 Covered T3,T9,T14
3 Covered T3,T9,T14
default Not Covered


LineNo. Expression -1-: 198 if ((!rst_ni)) -2-: 206 if (out_ep_data_put)

Branches:
-1--2-StatusTests
1 - Covered T3,T4,T5
0 1 Covered T3,T9,T14
0 0 Covered T3,T4,T5


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

Branches:
-1-StatusTests
1 Covered T3,T4,T5
0 Covered T3,T4,T5


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

Branches:
-1-StatusTests
1 Covered T3,T4,T5
0 Covered T3,T4,T5


LineNo. Expression -1-: 408 if (sof_valid) -2-: 410 if ((sof_detected_o | do_internal_sof))

Branches:
-1--2-StatusTests
1 - Covered T11,T12,T13
0 1 Covered T16,T19,T20
0 0 Covered T3,T4,T5


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

Branches:
-1-StatusTests
1 Covered T3,T4,T5
0 Covered T3,T4,T5


LineNo. Expression -1-: 456 if ((!rst_ni)) -2-: 462 if (out_ep_newpkt) -3-: 463 if (((out_ep_data_put & current_setup) & (!avsetup_rvalid_i))) -4-: 465 if (out_ep_newpkt) -5-: 466 if (((out_ep_data_put & (!current_setup)) & (!avout_rvalid_i))) -6-: 468 if (out_ep_newpkt) -7-: 469 if ((out_ep_data_put & (!rx_wready)))

Branches:
-1--2--3--4--5--6--7-StatusTests
1 - - - - - - Covered T3,T4,T5
0 1 - - - - - Covered T3,T9,T14
0 0 1 - - - - Not Covered
0 0 0 - - - - Covered T3,T4,T5
0 - - 1 - - - Covered T3,T9,T14
0 - - 0 1 - - Not Covered
0 - - 0 0 - - Covered T3,T4,T5
0 - - - - 1 - Covered T3,T9,T14
0 - - - - 0 1 Not Covered
0 - - - - 0 0 Covered T3,T4,T5


Assert Coverage for Module : usbdev_usbif
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 6 6 100.00 6 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 6 6 100.00 6 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
ParamAVFifoWidthValid 1355 1355 0 0
ParamMaxPktSizeByteValid 1355 1355 0 0
ParamNBufValid 1355 1355 0 0
ParamNEndpointsValid 1355 1355 0 0
ParamRXFifoWidthValid 1355 1355 0 0
ParamSramAwValid 1355 1355 0 0


ParamAVFifoWidthValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

ParamMaxPktSizeByteValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

ParamNBufValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

ParamNEndpointsValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

ParamRXFifoWidthValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

ParamSramAwValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 1355 1355 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0
T14 1 1 0 0
T21 1 1 0 0
T22 1 1 0 0
T23 1 1 0 0
T24 1 1 0 0

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