Line Coverage for Module :
usbdev_usbif
| Line No. | Total | Covered | Percent |
TOTAL | | 63 | 54 | 85.71 |
CONT_ASSIGN | 111 | 1 | 1 | 100.00 |
CONT_ASSIGN | 129 | 0 | 0 | |
CONT_ASSIGN | 130 | 1 | 1 | 100.00 |
CONT_ASSIGN | 132 | 1 | 1 | 100.00 |
CONT_ASSIGN | 133 | 1 | 1 | 100.00 |
CONT_ASSIGN | 134 | 1 | 1 | 100.00 |
ALWAYS | 137 | 6 | 3 | 50.00 |
CONT_ASSIGN | 159 | 1 | 1 | 100.00 |
ALWAYS | 163 | 6 | 3 | 50.00 |
ALWAYS | 175 | 8 | 7 | 87.50 |
CONT_ASSIGN | 190 | 1 | 1 | 100.00 |
CONT_ASSIGN | 192 | 1 | 1 | 100.00 |
CONT_ASSIGN | 193 | 1 | 1 | 100.00 |
CONT_ASSIGN | 194 | 1 | 1 | 100.00 |
CONT_ASSIGN | 195 | 1 | 1 | 100.00 |
CONT_ASSIGN | 196 | 1 | 1 | 100.00 |
CONT_ASSIGN | 200 | 1 | 1 | 100.00 |
CONT_ASSIGN | 202 | 1 | 1 | 100.00 |
CONT_ASSIGN | 208 | 1 | 1 | 100.00 |
ALWAYS | 211 | 3 | 3 | 100.00 |
CONT_ASSIGN | 219 | 1 | 1 | 100.00 |
CONT_ASSIGN | 221 | 1 | 1 | 100.00 |
CONT_ASSIGN | 223 | 1 | 1 | 100.00 |
CONT_ASSIGN | 224 | 1 | 1 | 100.00 |
CONT_ASSIGN | 229 | 1 | 1 | 100.00 |
CONT_ASSIGN | 239 | 0 | 0 | |
CONT_ASSIGN | 240 | 1 | 1 | 100.00 |
CONT_ASSIGN | 244 | 1 | 1 | 100.00 |
ALWAYS | 246 | 2 | 2 | 100.00 |
ALWAYS | 253 | 3 | 3 | 100.00 |
CONT_ASSIGN | 260 | 1 | 1 | 100.00 |
CONT_ASSIGN | 261 | 1 | 1 | 100.00 |
CONT_ASSIGN | 263 | 1 | 1 | 100.00 |
CONT_ASSIGN | 347 | 1 | 1 | 100.00 |
CONT_ASSIGN | 348 | 1 | 1 | 100.00 |
ALWAYS | 351 | 5 | 3 | 60.00 |
ALWAYS | 360 | 3 | 3 | 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, so annotated line coverage report could not be generated.
Line No. | Covered | Statements | |
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
| Total | Covered | Percent |
Conditions | 57 | 22 | 38.60 |
Logical | 57 | 22 | 38.60 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 111
EXPRESSION (connect_en_i & usb_sense_i)
------1----- -----2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 130
EXPRESSION (out_endpoint_val_o ? out_ep_current : '0)
---------1--------
-1- | Status | Tests |
0 | Unreachable | |
1 | Covered | T1,T2,T3 |
LINE 133
EXPRESSION (((~connect_en_i)) | link_reset)
--------1-------- -----2----
-1- | -2- | Status | Tests |
0 | 0 | Not Covered | |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 137
EXPRESSION (out_ep_acked || out_ep_rollback)
------1----- -------2-------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Not 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- | Status | Tests |
0 | 1 | 1 | Not Covered | |
1 | 0 | 1 | Unreachable | |
1 | 1 | 0 | Not Covered | |
1 | 1 | 1 | Not Covered | |
LINE 159
SUB-EXPRESSION (out_ep_put_addr[1:0] == 2'b11)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Not 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- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
1 | 1 | Not 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- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Not 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- | Status | Tests |
0 | 1 | 1 | Not Covered | |
1 | 0 | 1 | Not Covered | |
1 | 1 | 0 | Covered | T1,T2,T3 |
1 | 1 | 1 | Not Covered | |
LINE 190
SUB-EXPRESSION (out_max_used_q[1:0] != 2'b11)
---------------1--------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 194
EXPRESSION (mem_write_o ? mem_waddr : mem_raddr)
-----1-----
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Not Covered | |
LINE 195
EXPRESSION (mem_read | mem_write_o)
----1--- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
LINE 221
EXPRESSION (((~rx_wready_i)) | ((~av_rvalid_i)))
--------1------- --------2-------
-1- | -2- | Status | Tests |
0 | 0 | Not Covered | |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
LINE 229
EXPRESSION (current_setup & rx_wvalid_o)
------1------ -----2-----
-1- | -2- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 240
EXPRESSION (in_endpoint_val_o ? in_ep_current : '0)
--------1--------
-1- | Status | Tests |
0 | Unreachable | |
1 | Covered | T1,T2,T3 |
LINE 244
EXPRESSION ({1'b0, in_ep_get_addr} == in_size_i)
------------------1------------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 261
EXPRESSION (pkt_start_rd | (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0)))
------1----- ------------------------2-----------------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
LINE 261
SUB-EXPRESSION (in_ep_data_get & (in_ep_get_addr[1:0] == 2'b0))
-------1------ --------------2--------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 261
SUB-EXPRESSION (in_ep_get_addr[1:0] == 2'b0)
--------------1--------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,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- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Not Covered | |
LINE 263
SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[31:24] : mem_rdata_i[23:16])
--------1--------
-1- | Status | Tests |
0 | Not Covered | |
1 | Not Covered | |
LINE 263
SUB-EXPRESSION (in_ep_get_addr[0] ? mem_rdata_i[15:8] : mem_rdata_i[7:0])
--------1--------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Not Covered | |
LINE 348
EXPRESSION (frame_q != frame_d)
----------1---------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Not Covered | |
Branch Coverage for Module :
usbdev_usbif
| Line No. | Total | Covered | Percent |
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- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Unreachable |
|
LineNo. Expression
-1-: 194 (mem_write_o) ?
Branches:
-1- | Status | Tests |
1 |
Not Covered |
|
0 |
Covered |
T1,T2,T3 |
LineNo. Expression
-1-: 240 (in_endpoint_val_o) ?
Branches:
-1- | Status | Tests |
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- | Status | Tests |
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- | Status | Tests |
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- | Status | Tests |
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- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
LineNo. Expression
-1-: 211 if ((!rst_ni))
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
LineNo. Expression
-1-: 253 if ((!rst_ni))
Branches:
-1- | Status | Tests |
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- | Status | Tests |
1 |
- |
Not Covered |
|
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
LineNo. Expression
-1-: 360 if ((!rst_ni))
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Module :
usbdev_usbif
Assertion Details
ParamAVFifoWidthValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
ParamMaxPktSizeByteValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
ParamNBufValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
ParamNEndpointsValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
ParamRXFifoWidthValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
ParamSramAwValid
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
4 |
4 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |