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



Module Instance : tb.dut.u_ctr_out

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
54.65 78.95 25.00 60.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
54.65 78.95 25.00 60.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.83 97.53 92.06 94.55 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children



Module Instance : tb.dut.u_ctr_in

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
54.65 78.95 25.00 60.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
54.65 78.95 25.00 60.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.83 97.53 92.06 94.55 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children



Module Instance : tb.dut.u_ctr_errors

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
65.57 84.21 50.00 62.50


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
65.57 84.21 50.00 62.50


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.83 97.53 92.06 94.55 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children



Module Instance : tb.dut.u_ctr_nodata_in

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
66.96 84.21 50.00 66.67


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
66.96 84.21 50.00 66.67


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.83 97.53 92.06 94.55 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children

Line Coverage for Module : usbdev_counter ( parameter NEndpoints=12,NEvents=4,Width=8,EpW=4 )
Line Coverage for Module self-instances :
SCORELINE
54.65 78.95
tb.dut.u_ctr_out

Line No.TotalCoveredPercent
TOTAL191578.95
ALWAYS457571.43
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Line Coverage for Module : usbdev_counter ( parameter NEndpoints=1,NEvents=4,Width=8,EpW=1 )
Line Coverage for Module self-instances :
SCORELINE
65.57 84.21
tb.dut.u_ctr_errors

Line No.TotalCoveredPercent
TOTAL191684.21
ALWAYS457685.71
CONT_ASSIGN6100
CONT_ASSIGN6211100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 2/2 if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  | T1 T2 T3  ==> MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; 59 end else begin : gen_single 60 logic unused_ep; 61 unreachable assign unused_ep = ^ep_i; // Endpoint number not required 62 1/1 assign ep_enabled = endpoints[0]; Tests: T1 T2 T3  63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Line Coverage for Module : usbdev_counter ( parameter NEndpoints=12,NEvents=3,Width=8,EpW=4 )
Line Coverage for Module self-instances :
SCORELINE
54.65 78.95
tb.dut.u_ctr_in

Line No.TotalCoveredPercent
TOTAL191578.95
ALWAYS457571.43
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Line Coverage for Module : usbdev_counter ( parameter NEndpoints=12,NEvents=1,Width=8,EpW=4 )
Line Coverage for Module self-instances :
SCORELINE
66.96 84.21
tb.dut.u_ctr_nodata_in

Line No.TotalCoveredPercent
TOTAL191684.21
ALWAYS457685.71
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 2/2 if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  | T1 T2 T3  ==> MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Cond Coverage for Module : usbdev_counter ( parameter NEndpoints=12,NEvents=4,Width=8,EpW=4 + NEndpoints=12,NEvents=3,Width=8,EpW=4 + NEndpoints=12,NEvents=1,Width=8,EpW=4 )
Cond Coverage for Module self-instances :
SCORECOND
54.65 25.00
tb.dut.u_ctr_out

SCORECOND
54.65 25.00
tb.dut.u_ctr_in

SCORECOND
66.96 50.00
tb.dut.u_ctr_nodata_in

TotalCoveredPercent
Conditions5240.00
Logical5240.00
Non-Logical00
Event00

 LINE       58
 EXPRESSION ((ep_i < 4'(NEndpoints)) ? endpoints[ep_i] : 1'b0)
             -----------1-----------
-1-StatusTests
0Not Covered
1CoveredT1,T2,T3

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTests
01Not Covered
10CoveredT4,T5,T6
11Not Covered

Cond Coverage for Module : usbdev_counter ( parameter NEndpoints=1,NEvents=4,Width=8,EpW=1 )
Cond Coverage for Module self-instances :
SCORECOND
65.57 50.00
tb.dut.u_ctr_errors

TotalCoveredPercent
Conditions3133.33
Logical3133.33
Non-Logical00
Event00

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11Not Covered

Branch Coverage for Module : usbdev_counter ( parameter NEndpoints=12,NEvents=4,Width=8,EpW=4 + NEndpoints=12,NEvents=3,Width=8,EpW=4 + NEndpoints=12,NEvents=1,Width=8,EpW=4 )
Branch Coverage for Module self-instances :
SCOREBRANCH
54.65 60.00
tb.dut.u_ctr_out

SCOREBRANCH
54.65 60.00
tb.dut.u_ctr_in

SCOREBRANCH
66.96 66.67
tb.dut.u_ctr_nodata_in

Line No.TotalCoveredPercent
Branches 11 7 63.64
TERNARY 58 2 1 50.00
IF 45 5 4 80.00
IF 70 4 2 50.00


58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; -1- ==> ==>

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


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==>

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


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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


Branch Coverage for Module : usbdev_counter ( parameter NEndpoints=1,NEvents=4,Width=8,EpW=1 )
Branch Coverage for Module self-instances :
SCOREBRANCH
65.57 62.50
tb.dut.u_ctr_errors

Line No.TotalCoveredPercent
Branches 9 5 55.56
IF 45 5 3 60.00
IF 70 4 2 50.00


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==>

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


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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

Line Coverage for Instance : tb.dut.u_ctr_out
Line No.TotalCoveredPercent
TOTAL191578.95
ALWAYS457571.43
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Cond Coverage for Instance : tb.dut.u_ctr_out
TotalCoveredPercent
Conditions4125.00
Logical4125.00
Non-Logical00
Event00

 LINE       58
 EXPRESSION ((ep_i < 4'(NEndpoints)) ? endpoints[ep_i] : 1'b0)
             -----------1-----------
-1-StatusTestsExclude Annotation
0Excluded VC_COV_UNR
1CoveredT1,T2,T3

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

Branch Coverage for Instance : tb.dut.u_ctr_out
Line No.TotalCoveredPercent
Branches 10 6 60.00
TERNARY 58 1 1 100.00
IF 45 5 3 60.00
IF 70 4 2 50.00


58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; -1- ==> ==> (Excluded)

Branches:
-1-StatusTestsExclude Annotation
1 Covered T1,T2,T3
0 Excluded VC_COV_UNR


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==>

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


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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

Line Coverage for Instance : tb.dut.u_ctr_in
Line No.TotalCoveredPercent
TOTAL191578.95
ALWAYS457571.43
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Cond Coverage for Instance : tb.dut.u_ctr_in
TotalCoveredPercent
Conditions4125.00
Logical4125.00
Non-Logical00
Event00

 LINE       58
 EXPRESSION ((ep_i < 4'(NEndpoints)) ? endpoints[ep_i] : 1'b0)
             -----------1-----------
-1-StatusTestsExclude Annotation
0Excluded VC_COV_UNR
1CoveredT1,T2,T3

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

Branch Coverage for Instance : tb.dut.u_ctr_in
Line No.TotalCoveredPercent
Branches 10 6 60.00
TERNARY 58 1 1 100.00
IF 45 5 3 60.00
IF 70 4 2 50.00


58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; -1- ==> ==> (Excluded)

Branches:
-1-StatusTestsExclude Annotation
1 Covered T1,T2,T3
0 Excluded VC_COV_UNR


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==>

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


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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

Line Coverage for Instance : tb.dut.u_ctr_errors
Line No.TotalCoveredPercent
TOTAL191684.21
ALWAYS457685.71
CONT_ASSIGN6100
CONT_ASSIGN6211100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 2/2 if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  | T1 T2 T3  ==> MISSING_ELSE 51 1/2 ==> if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; 59 end else begin : gen_single 60 logic unused_ep; 61 unreachable assign unused_ep = ^ep_i; // Endpoint number not required 62 1/1 assign ep_enabled = endpoints[0]; Tests: T1 T2 T3  63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Cond Coverage for Instance : tb.dut.u_ctr_errors
TotalCoveredPercent
Conditions2150.00
Logical2150.00
Non-Logical00
Event00

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTestsExclude Annotation
01CoveredT1,T2,T3
10Excluded VC_COV_UNR
11Not Covered

Branch Coverage for Instance : tb.dut.u_ctr_errors
Line No.TotalCoveredPercent
Branches 8 5 62.50
IF 45 4 3 75.00
IF 70 4 2 50.00


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> (Excluded) Exclude Annotation: VC_COV_UNR 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==>

Branches:
-1--2--3-StatusTestsExclude Annotation
1 - - Covered T1,T2,T3
0 1 - Covered T1,T2,T3
0 0 - Excluded VC_COV_UNR
0 - 1 Not Covered
0 - 0 Covered T1,T2,T3


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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

Line Coverage for Instance : tb.dut.u_ctr_nodata_in
Line No.TotalCoveredPercent
TOTAL191684.21
ALWAYS457685.71
CONT_ASSIGN5811100.00
ALWAYS708675.00
CONT_ASSIGN8411100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN8611100.00

44 always_ff @(posedge clk_i or negedge rst_ni) begin 45 1/1 if (!rst_ni) begin Tests: T1 T2 T3  46 1/1 endpoints <= NEndpoints'(0); Tests: T1 T2 T3  47 1/1 ev_enables <= NEvents'(0); Tests: T1 T2 T3  48 end else begin 49 // Software writes to set the current enables. 50 1/2 ==> if (endp_qe_i) endpoints <= endpoints_i; Tests: T1 T2 T3  MISSING_ELSE 51 2/2 if (ev_qe_i) ev_enables <= ev_i; Tests: T1 T2 T3  | T1 T2 T3  ==> MISSING_ELSE 52 end 53 end 54 55 // Respond to events on this endpoint? 56 logic ep_enabled; 57 if (NEndpoints > 1) begin : gen_multi 58 1/1 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; Tests: T1 T2 T3  59 end else begin : gen_single 60 logic unused_ep; 61 assign unused_ep = ^ep_i; // Endpoint number not required 62 assign ep_enabled = endpoints[0]; 63 end 64 65 // Saturating event counter. 66 logic [Width-1:0] count; 67 logic [NEvents-1:0] event_q; 68 69 always_ff @(posedge clk_i or negedge rst_ni) begin 70 1/1 if (!rst_ni) begin Tests: T1 T2 T3  71 1/1 count <= Width'(0); Tests: T1 T2 T3  72 1/1 event_q <= NEvents'(0); Tests: T1 T2 T3  73 1/1 end else if (reset_i) begin Tests: T1 T2 T3  74 0/1 ==> count <= Width'(0); 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 1/2 ==> if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; Tests: T1 T2 T3  MISSING_ELSE 79 // Retain previous state of event input signals. 80 1/1 event_q <= event_i; Tests: T1 T2 T3  81 end 82 end 83 84 1/1 assign ev_o = ev_enables; Tests: T1 T2 T3  85 1/1 assign endpoints_o = endpoints; Tests: T1 T2 T3  86 1/1 assign count_o = count; Tests: T1 T2 T3 

Cond Coverage for Instance : tb.dut.u_ctr_nodata_in
TotalCoveredPercent
Conditions4250.00
Logical4250.00
Non-Logical00
Event00

 LINE       58
 EXPRESSION ((ep_i < 4'(NEndpoints)) ? endpoints[ep_i] : 1'b0)
             -----------1-----------
-1-StatusTestsExclude Annotation
0Excluded VC_COV_UNR
1CoveredT1,T2,T3

 LINE       78
 EXPRESSION (((|((ev_enables & event_i) & (~event_q)))) & ep_enabled)
             ---------------------1--------------------   -----2----
-1--2-StatusTests
01Not Covered
10CoveredT4,T5,T6
11Not Covered

Branch Coverage for Instance : tb.dut.u_ctr_nodata_in
Line No.TotalCoveredPercent
Branches 9 6 66.67
TERNARY 58 1 1 100.00
IF 45 4 3 75.00
IF 70 4 2 50.00


58 assign ep_enabled = (ep_i < EpW'(NEndpoints)) ? endpoints[ep_i] : 1'b0; -1- ==> ==> (Excluded)

Branches:
-1-StatusTestsExclude Annotation
1 Covered T1,T2,T3
0 Excluded VC_COV_UNR


45 if (!rst_ni) begin -1- 46 endpoints <= NEndpoints'(0); ==> 47 ev_enables <= NEvents'(0); 48 end else begin 49 // Software writes to set the current enables. 50 if (endp_qe_i) endpoints <= endpoints_i; -2- ==> MISSING_ELSE ==> 51 if (ev_qe_i) ev_enables <= ev_i; -3- ==> MISSING_ELSE ==> (Excluded) Exclude Annotation: VC_COV_UNR

Branches:
-1--2--3-StatusTestsExclude Annotation
1 - - Covered T1,T2,T3
0 1 - Not Covered
0 0 - Covered T1,T2,T3
0 - 1 Covered T1,T2,T3
0 - 0 Excluded VC_COV_UNR


70 if (!rst_ni) begin -1- 71 count <= Width'(0); ==> 72 event_q <= NEvents'(0); 73 end else if (reset_i) begin -2- 74 count <= Width'(0); ==> 75 // Do not modify 'event_q' here because the event inputs may still be asserted. 76 end else begin 77 // Positive-edge triggered, saturating count of events. 78 if (|(ev_enables & event_i & ~event_q) & ep_enabled) count <= count + ~&count; -3- ==> MISSING_ELSE ==>

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

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