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

Module : usbdev_usbif
SCORELINECONDTOGGLEFSMBRANCHASSERT
69.47 85.71 38.60 53.57 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 69.47 85.71 38.60 53.57 100.00



Module Instance : tb.dut.usbdev_impl

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
69.47 85.71 38.60 53.57 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
49.73 63.04 35.12 3.12 47.38 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
72.68 83.19 35.82 89.24 55.17 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_usb_fs_nb_pe 48.23 61.34 32.24 0.00 47.57 100.00
u_usbdev_linkstate 51.98 60.16 48.24 7.41 44.12 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
TOTAL635485.71
CONT_ASSIGN11111100.00
CONT_ASSIGN12900
CONT_ASSIGN13011100.00
CONT_ASSIGN13211100.00
CONT_ASSIGN13311100.00
CONT_ASSIGN13411100.00
ALWAYS1376350.00
CONT_ASSIGN15911100.00
ALWAYS1636350.00
ALWAYS1758787.50
CONT_ASSIGN19011100.00
CONT_ASSIGN19211100.00
CONT_ASSIGN19311100.00
CONT_ASSIGN19411100.00
CONT_ASSIGN19511100.00
CONT_ASSIGN19611100.00
CONT_ASSIGN20011100.00
CONT_ASSIGN20211100.00
CONT_ASSIGN20811100.00
ALWAYS21133100.00
CONT_ASSIGN21911100.00
CONT_ASSIGN22111100.00
CONT_ASSIGN22311100.00
CONT_ASSIGN22411100.00
CONT_ASSIGN22911100.00
CONT_ASSIGN23900
CONT_ASSIGN24011100.00
CONT_ASSIGN24411100.00
ALWAYS24622100.00
ALWAYS25333100.00
CONT_ASSIGN26011100.00
CONT_ASSIGN26111100.00
CONT_ASSIGN26311100.00
CONT_ASSIGN34711100.00
CONT_ASSIGN34811100.00
ALWAYS3515360.00
ALWAYS36033100.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
111 1 1
129 unreachable
130 1 1
132 1 1
133 1 1
134 1 1
137 1 1
138 0 1
140 1 1
144 0 1
145 0 1
146 unreachable
147 unreachable
149 unreachable
153 1 1
159 1 1
163 1 1
165 1 1
166 1 1
167 0 1
168 0 1
169 0 1
175 1 1
176 1 1
177 1 1
178 1 1
180 1 1
181 1 1
183 1 1
184 0 1
MISSING_ELSE
190 1 1
192 1 1
193 1 1
194 1 1
195 1 1
196 1 1
200 1 1
202 1 1
208 1 1
211 1 1
212 1 1
214 1 1
219 1 1
221 1 1
223 1 1
224 1 1
229 1 1
239 unreachable
240 1 1
244 1 1
246 1 1
247 1 1
253 1 1
254 1 1
256 1 1
260 1 1
261 1 1
263 1 1
347 1 1
348 1 1
351 1 1
352 1 1
353 0 1
354 1 1
355 0 1
MISSING_ELSE
360 1 1
361 1 1
363 1 1


Cond Coverage for Module : usbdev_usbif
TotalCoveredPercent
Conditions572238.60
Logical572238.60
Non-Logical00
Event00

 LINE       111
 EXPRESSION (connect_en_i & usb_sense_i)
             ------1-----   -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11Not Covered

 LINE       130
 EXPRESSION (out_endpoint_val_o ? out_ep_current : '0)
             ---------1--------
-1-StatusTests
0Unreachable
1CoveredT1,T2,T3

 LINE       133
 EXPRESSION (((~connect_en_i)) | link_reset)
             --------1--------   -----2----
-1--2-StatusTests
00Not Covered
01Not Covered
10CoveredT1,T2,T3

 LINE       137
 EXPRESSION (out_ep_acked || out_ep_rollback)
             ------1-----    -------2-------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10Not Covered

 LINE       159
 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
011Not Covered
101Unreachable
110Not Covered
111Not Covered

 LINE       159
 SUB-EXPRESSION (out_ep_put_addr[1:0] == 2'b11)
                ---------------1---------------
-1-StatusTests
0CoveredT1,T2,T3
1Not Covered

 LINE       190
 EXPRESSION (av_rvalid_i & (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
10Not Covered
11Not Covered

 LINE       190
 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
00CoveredT1,T2,T3
01Not Covered
10Not Covered

 LINE       190
 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
011Not Covered
101Not Covered
110CoveredT1,T2,T3
111Not Covered

 LINE       190
 SUB-EXPRESSION (out_max_used_q[1:0] != 2'b11)
                ---------------1--------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       194
 EXPRESSION (mem_write_o ? mem_waddr : mem_raddr)
             -----1-----
-1-StatusTests
0CoveredT1,T2,T3
1Not Covered

 LINE       195
 EXPRESSION (mem_read | mem_write_o)
             ----1---   -----2-----
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10Not Covered

 LINE       221
 EXPRESSION (((~rx_wready_i)) | ((~av_rvalid_i)))
             --------1-------   --------2-------
-1--2-StatusTests
00Not Covered
01CoveredT1,T2,T3
10Not Covered

 LINE       229
 EXPRESSION (current_setup & rx_wvalid_o)
             ------1------   -----2-----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       240
 EXPRESSION (in_endpoint_val_o ? in_ep_current : '0)
             --------1--------
-1-StatusTests
0Unreachable
1CoveredT1,T2,T3

 LINE       244
 EXPRESSION ({1'b0, in_ep_get_addr} == in_size_i)
            ------------------1------------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       261
 EXPRESSION (pkt_start_rd | (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0)))
             ------1-----   ------------------------2-----------------------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10Not Covered

 LINE       261
 SUB-EXPRESSION (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0))
                 -------1------   --------------2--------------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11Not Covered

 LINE       261
 SUB-EXPRESSION (in_ep_get_addr[1:0] == 2'b0)
                --------------1--------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       263
 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
0CoveredT1,T2,T3
1Not Covered

 LINE       263
 SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[31:24] : mem_rdata_i[23:16])
                 --------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       263
 SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[15:8] : mem_rdata_i[7:0])
                 --------1--------
-1-StatusTests
0CoveredT1,T2,T3
1Not Covered

 LINE       348
 EXPRESSION (frame_q != frame_d)
            ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1Not Covered

Branch Coverage for Module : usbdev_usbif
Line No.TotalCoveredPercent
Branches 28 15 53.57
TERNARY 130 1 1 100.00
TERNARY 194 2 1 50.00
TERNARY 240 1 1 100.00
TERNARY 263 4 1 25.00
IF 137 3 1 33.33
CASE 165 5 1 20.00
IF 175 3 2 66.67
IF 211 2 2 100.00
IF 253 2 2 100.00
IF 352 3 1 33.33
IF 360 2 2 100.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-: 130 (out_endpoint_val_o) ?

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


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

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


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

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


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

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


LineNo. Expression -1-: 137 if ((out_ep_acked || out_ep_rollback)) -2-: 140 if (out_ep_data_put) -3-: 144 if ((int'(out_max_used_q) < (MaxPktSizeByte - 1))) -4-: 146 if ((int'(out_max_used_q) < (MaxPktSizeByte + 1)))

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


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

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


LineNo. Expression -1-: 175 if ((!rst_ni)) -2-: 183 if (out_ep_data_put)

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


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

Branches:
-1-StatusTests
1 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


LineNo. Expression -1-: 352 if (sof_valid_o) -2-: 354 if (do_internal_sof)

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


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

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


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 3 3 0 0
ParamMaxPktSizeByteValid 3 3 0 0
ParamNBufValid 3 3 0 0
ParamNEndpointsValid 3 3 0 0
ParamRXFifoWidthValid 3 3 0 0
ParamSramAwValid 3 3 0 0


ParamAVFifoWidthValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

ParamMaxPktSizeByteValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

ParamNBufValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

ParamNEndpointsValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

ParamRXFifoWidthValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

ParamSramAwValid
NameAttemptsReal SuccessesFailuresIncomplete
Total 3 3 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0

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