Line Coverage for Module :
prim_arbiter_ppc ( parameter N=3,DW=109,EnDataPort=1,IdxW=2 )
Line Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Line Coverage for Module :
prim_arbiter_ppc ( parameter N=2,DW=109,EnDataPort=1,IdxW=1 )
Line Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Module :
prim_arbiter_ppc ( parameter N=3,DW=109,EnDataPort=1,IdxW=2 )
Cond Coverage for Module self-instances :
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Cond Coverage for Module :
prim_arbiter_ppc ( parameter N=2,DW=109,EnDataPort=1,IdxW=1 )
Cond Coverage for Module self-instances :
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Module :
prim_arbiter_ppc
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Module :
prim_arbiter_ppc
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
2147483647 |
0 |
0 |
T1 |
268560 |
267360 |
0 |
0 |
T2 |
50952 |
50280 |
0 |
0 |
T3 |
420336 |
419112 |
0 |
0 |
T7 |
458832 |
458256 |
0 |
0 |
T8 |
105648 |
105336 |
0 |
0 |
T9 |
111768 |
111576 |
0 |
0 |
T10 |
239208 |
238344 |
0 |
0 |
T11 |
59928 |
58656 |
0 |
0 |
T12 |
1021560 |
1020192 |
0 |
0 |
T13 |
842256 |
841128 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
21600 |
21600 |
0 |
0 |
T1 |
24 |
24 |
0 |
0 |
T2 |
24 |
24 |
0 |
0 |
T3 |
24 |
24 |
0 |
0 |
T7 |
24 |
24 |
0 |
0 |
T8 |
24 |
24 |
0 |
0 |
T9 |
24 |
24 |
0 |
0 |
T10 |
24 |
24 |
0 |
0 |
T11 |
24 |
24 |
0 |
0 |
T12 |
24 |
24 |
0 |
0 |
T13 |
24 |
24 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
2147483647 |
0 |
0 |
T1 |
268560 |
267360 |
0 |
0 |
T2 |
50952 |
50280 |
0 |
0 |
T3 |
420336 |
419112 |
0 |
0 |
T7 |
458832 |
458256 |
0 |
0 |
T8 |
105648 |
105336 |
0 |
0 |
T9 |
111768 |
111576 |
0 |
0 |
T10 |
239208 |
238344 |
0 |
0 |
T11 |
59928 |
58656 |
0 |
0 |
T12 |
1021560 |
1020192 |
0 |
0 |
T13 |
842256 |
841128 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
2147483647 |
0 |
0 |
T1 |
268560 |
267360 |
0 |
0 |
T2 |
50952 |
50280 |
0 |
0 |
T3 |
420336 |
419112 |
0 |
0 |
T7 |
458832 |
458256 |
0 |
0 |
T8 |
105648 |
105336 |
0 |
0 |
T9 |
111768 |
111576 |
0 |
0 |
T10 |
239208 |
238344 |
0 |
0 |
T11 |
59928 |
58656 |
0 |
0 |
T12 |
1021560 |
1020192 |
0 |
0 |
T13 |
842256 |
841128 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
292457545 |
0 |
0 |
T1 |
268560 |
12756 |
0 |
0 |
T2 |
50952 |
565 |
0 |
0 |
T3 |
420336 |
26449 |
0 |
0 |
T7 |
458832 |
29646 |
0 |
0 |
T8 |
105648 |
2755 |
0 |
0 |
T9 |
111768 |
1985 |
0 |
0 |
T10 |
239208 |
11357 |
0 |
0 |
T11 |
59928 |
721 |
0 |
0 |
T12 |
1021560 |
56707 |
0 |
0 |
T13 |
842256 |
50219 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
28723169 |
0 |
0 |
T1 |
268560 |
1017 |
0 |
0 |
T2 |
50952 |
555 |
0 |
0 |
T3 |
420336 |
3824 |
0 |
0 |
T7 |
458832 |
4273 |
0 |
0 |
T8 |
105648 |
3063 |
0 |
0 |
T9 |
111768 |
1902 |
0 |
0 |
T10 |
239208 |
938 |
0 |
0 |
T11 |
59928 |
616 |
0 |
0 |
T12 |
1021560 |
5883 |
0 |
0 |
T13 |
842256 |
4917 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
50085 |
0 |
21600 |
T4 |
30662 |
0 |
0 |
2 |
T7 |
38236 |
0 |
0 |
2 |
T8 |
8804 |
15 |
0 |
2 |
T9 |
9314 |
4 |
0 |
2 |
T10 |
19934 |
0 |
0 |
2 |
T11 |
4994 |
0 |
0 |
2 |
T12 |
85130 |
2 |
0 |
2 |
T13 |
70188 |
0 |
0 |
2 |
T14 |
0 |
2 |
0 |
0 |
T15 |
0 |
14 |
0 |
0 |
T16 |
0 |
42 |
0 |
0 |
T17 |
0 |
16 |
0 |
0 |
T18 |
0 |
8 |
0 |
0 |
T19 |
0 |
20 |
0 |
0 |
T20 |
0 |
21 |
0 |
0 |
T21 |
0 |
1 |
0 |
0 |
T22 |
0 |
515 |
0 |
0 |
T23 |
0 |
20 |
0 |
0 |
T24 |
0 |
7 |
0 |
0 |
T25 |
548618 |
0 |
0 |
2 |
T26 |
23248 |
0 |
0 |
2 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
2147483647 |
0 |
0 |
T1 |
268560 |
267360 |
0 |
0 |
T2 |
50952 |
50280 |
0 |
0 |
T3 |
420336 |
419112 |
0 |
0 |
T7 |
458832 |
458256 |
0 |
0 |
T8 |
105648 |
105336 |
0 |
0 |
T9 |
111768 |
111576 |
0 |
0 |
T10 |
239208 |
238344 |
0 |
0 |
T11 |
59928 |
58656 |
0 |
0 |
T12 |
1021560 |
1020192 |
0 |
0 |
T13 |
842256 |
841128 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
8089425 |
0 |
0 |
T1 |
268560 |
423 |
0 |
0 |
T2 |
50952 |
494 |
0 |
0 |
T3 |
420336 |
1413 |
0 |
0 |
T7 |
458832 |
1927 |
0 |
0 |
T8 |
105648 |
2672 |
0 |
0 |
T9 |
111768 |
1863 |
0 |
0 |
T10 |
239208 |
390 |
0 |
0 |
T11 |
59928 |
528 |
0 |
0 |
T12 |
1021560 |
2790 |
0 |
0 |
T13 |
842256 |
2316 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_29.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_29.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_29.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_29.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
8666740 |
0 |
0 |
T1 |
11190 |
384 |
0 |
0 |
T2 |
2123 |
48 |
0 |
0 |
T3 |
17514 |
1107 |
0 |
0 |
T7 |
19118 |
1687 |
0 |
0 |
T8 |
4402 |
236 |
0 |
0 |
T9 |
4657 |
217 |
0 |
0 |
T10 |
9967 |
285 |
0 |
0 |
T11 |
2497 |
53 |
0 |
0 |
T12 |
42565 |
2363 |
0 |
0 |
T13 |
35094 |
1760 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2144278 |
0 |
0 |
T1 |
11190 |
74 |
0 |
0 |
T2 |
2123 |
67 |
0 |
0 |
T3 |
17514 |
294 |
0 |
0 |
T7 |
19118 |
361 |
0 |
0 |
T8 |
4402 |
395 |
0 |
0 |
T9 |
4657 |
236 |
0 |
0 |
T10 |
9967 |
41 |
0 |
0 |
T11 |
2497 |
102 |
0 |
0 |
T12 |
42565 |
458 |
0 |
0 |
T13 |
35094 |
325 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
907522 |
0 |
0 |
T1 |
11190 |
50 |
0 |
0 |
T2 |
2123 |
57 |
0 |
0 |
T3 |
17514 |
168 |
0 |
0 |
T7 |
19118 |
226 |
0 |
0 |
T8 |
4402 |
315 |
0 |
0 |
T9 |
4657 |
226 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
77 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
237 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_31.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_31.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_31.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_31.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
8630237 |
0 |
0 |
T1 |
11190 |
400 |
0 |
0 |
T2 |
2123 |
47 |
0 |
0 |
T3 |
17514 |
1140 |
0 |
0 |
T7 |
19118 |
1619 |
0 |
0 |
T8 |
4402 |
235 |
0 |
0 |
T9 |
4657 |
192 |
0 |
0 |
T10 |
9967 |
270 |
0 |
0 |
T11 |
2497 |
41 |
0 |
0 |
T12 |
42565 |
2149 |
0 |
0 |
T13 |
35094 |
1920 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2145513 |
0 |
0 |
T1 |
11190 |
76 |
0 |
0 |
T2 |
2123 |
74 |
0 |
0 |
T3 |
17514 |
304 |
0 |
0 |
T7 |
19118 |
408 |
0 |
0 |
T8 |
4402 |
416 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
47 |
0 |
0 |
T11 |
2497 |
78 |
0 |
0 |
T12 |
42565 |
580 |
0 |
0 |
T13 |
35094 |
401 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
909739 |
0 |
0 |
T1 |
11190 |
54 |
0 |
0 |
T2 |
2123 |
60 |
0 |
0 |
T3 |
17514 |
163 |
0 |
0 |
T7 |
19118 |
218 |
0 |
0 |
T8 |
4402 |
325 |
0 |
0 |
T9 |
4657 |
196 |
0 |
0 |
T10 |
9967 |
40 |
0 |
0 |
T11 |
2497 |
59 |
0 |
0 |
T12 |
42565 |
304 |
0 |
0 |
T13 |
35094 |
265 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_33.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T8 T7 T12
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_33.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T8,T7,T12 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T8,T7,T12 |
Branch Coverage for Instance : tb.dut.u_sm1_33.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T8,T7,T12 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_33.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2080667 |
0 |
0 |
T1 |
11190 |
86 |
0 |
0 |
T2 |
2123 |
16 |
0 |
0 |
T3 |
17514 |
179 |
0 |
0 |
T7 |
19118 |
351 |
0 |
0 |
T8 |
4402 |
77 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
82 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
611 |
0 |
0 |
T13 |
35094 |
448 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
472970 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
65 |
0 |
0 |
T8 |
4402 |
84 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
115 |
0 |
0 |
T13 |
35094 |
61 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
209814 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
25 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
77 |
0 |
0 |
T13 |
35094 |
57 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_34.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_34.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_34.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_34.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2136366 |
0 |
0 |
T1 |
11190 |
61 |
0 |
0 |
T2 |
2123 |
19 |
0 |
0 |
T3 |
17514 |
340 |
0 |
0 |
T7 |
19118 |
614 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
50 |
0 |
0 |
T10 |
9967 |
75 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
530 |
0 |
0 |
T13 |
35094 |
444 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
536388 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
52 |
0 |
0 |
T7 |
19118 |
76 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
96 |
0 |
0 |
T13 |
35094 |
86 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
224053 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
73 |
0 |
0 |
T8 |
4402 |
62 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_36.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_36.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_36.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_36.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
4461975 |
0 |
0 |
T1 |
11190 |
364 |
0 |
0 |
T2 |
2123 |
79 |
0 |
0 |
T3 |
17514 |
304 |
0 |
0 |
T7 |
19118 |
735 |
0 |
0 |
T8 |
4402 |
394 |
0 |
0 |
T9 |
4657 |
171 |
0 |
0 |
T10 |
9967 |
169 |
0 |
0 |
T11 |
2497 |
175 |
0 |
0 |
T12 |
42565 |
1918 |
0 |
0 |
T13 |
35094 |
770 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
1296928 |
0 |
0 |
T1 |
11190 |
22 |
0 |
0 |
T2 |
2123 |
26 |
0 |
0 |
T3 |
17514 |
30 |
0 |
0 |
T7 |
19118 |
118 |
0 |
0 |
T8 |
4402 |
134 |
0 |
0 |
T9 |
4657 |
61 |
0 |
0 |
T10 |
9967 |
25 |
0 |
0 |
T11 |
2497 |
42 |
0 |
0 |
T12 |
42565 |
244 |
0 |
0 |
T13 |
35094 |
92 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
225960 |
0 |
0 |
T1 |
11190 |
14 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
26 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
59 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
9 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
94 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_38.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_38.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_38.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_38.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
4041287 |
0 |
0 |
T1 |
11190 |
144 |
0 |
0 |
T2 |
2123 |
47 |
0 |
0 |
T3 |
17514 |
2723 |
0 |
0 |
T7 |
19118 |
758 |
0 |
0 |
T8 |
4402 |
303 |
0 |
0 |
T9 |
4657 |
225 |
0 |
0 |
T10 |
9967 |
128 |
0 |
0 |
T11 |
2497 |
86 |
0 |
0 |
T12 |
42565 |
672 |
0 |
0 |
T13 |
35094 |
886 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
1116369 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
477 |
0 |
0 |
T7 |
19118 |
101 |
0 |
0 |
T8 |
4402 |
125 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
19 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
90 |
0 |
0 |
T13 |
35094 |
115 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
223342 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
63 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
62 |
0 |
0 |
T13 |
35094 |
64 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_40.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_40.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_40.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_40.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
3954197 |
0 |
0 |
T1 |
11190 |
198 |
0 |
0 |
T2 |
2123 |
74 |
0 |
0 |
T3 |
17514 |
419 |
0 |
0 |
T7 |
19118 |
275 |
0 |
0 |
T8 |
4402 |
223 |
0 |
0 |
T9 |
4657 |
176 |
0 |
0 |
T10 |
9967 |
123 |
0 |
0 |
T11 |
2497 |
71 |
0 |
0 |
T12 |
42565 |
1036 |
0 |
0 |
T13 |
35094 |
1064 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
985085 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
62 |
0 |
0 |
T7 |
19118 |
48 |
0 |
0 |
T8 |
4402 |
91 |
0 |
0 |
T9 |
4657 |
54 |
0 |
0 |
T10 |
9967 |
39 |
0 |
0 |
T11 |
2497 |
22 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
71 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
215810 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
17 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
38 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
49 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_42.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T3 T8 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_42.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T2,T3,T8 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T3,T8,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T3,T8,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_42.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T2,T3,T8 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T3,T8,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_42.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
3614155 |
0 |
0 |
T1 |
11190 |
57 |
0 |
0 |
T2 |
2123 |
46 |
0 |
0 |
T3 |
17514 |
936 |
0 |
0 |
T7 |
19118 |
361 |
0 |
0 |
T8 |
4402 |
226 |
0 |
0 |
T9 |
4657 |
151 |
0 |
0 |
T10 |
9967 |
87 |
0 |
0 |
T11 |
2497 |
69 |
0 |
0 |
T12 |
42565 |
1205 |
0 |
0 |
T13 |
35094 |
4275 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
1056363 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
94 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
88 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
27 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
140 |
0 |
0 |
T13 |
35094 |
252 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
219688 |
0 |
0 |
T1 |
11190 |
5 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
42 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_43.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_43.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_43.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_43.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2148560 |
0 |
0 |
T1 |
11190 |
84 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
366 |
0 |
0 |
T7 |
19118 |
442 |
0 |
0 |
T8 |
4402 |
64 |
0 |
0 |
T9 |
4657 |
60 |
0 |
0 |
T10 |
9967 |
84 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
656 |
0 |
0 |
T13 |
35094 |
482 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
476061 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
19 |
0 |
0 |
T3 |
17514 |
51 |
0 |
0 |
T7 |
19118 |
61 |
0 |
0 |
T8 |
4402 |
71 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
107 |
0 |
0 |
T13 |
35094 |
93 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
212907 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
42 |
0 |
0 |
T7 |
19118 |
54 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
19 |
0 |
0 |
T12 |
42565 |
84 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_44.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T3 T8 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_44.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T3,T8,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T3,T8,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_44.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T3,T8,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_44.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2129819 |
0 |
0 |
T1 |
11190 |
74 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
242 |
0 |
0 |
T7 |
19118 |
419 |
0 |
0 |
T8 |
4402 |
80 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
114 |
0 |
0 |
T11 |
2497 |
8 |
0 |
0 |
T12 |
42565 |
541 |
0 |
0 |
T13 |
35094 |
425 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
524321 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
41 |
0 |
0 |
T7 |
19118 |
84 |
0 |
0 |
T8 |
4402 |
93 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
27 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
76 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
222286 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
7 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
56 |
0 |
0 |
T8 |
4402 |
86 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
7 |
0 |
0 |
T12 |
42565 |
69 |
0 |
0 |
T13 |
35094 |
52 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_45.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_45.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_45.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_45.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2139793 |
0 |
0 |
T1 |
11190 |
67 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
261 |
0 |
0 |
T7 |
19118 |
372 |
0 |
0 |
T8 |
4402 |
74 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
90 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
689 |
0 |
0 |
T13 |
35094 |
420 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
543106 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
72 |
0 |
0 |
T8 |
4402 |
83 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
17 |
0 |
0 |
T11 |
2497 |
21 |
0 |
0 |
T12 |
42565 |
111 |
0 |
0 |
T13 |
35094 |
63 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
230301 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
32 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
20 |
0 |
0 |
T12 |
42565 |
87 |
0 |
0 |
T13 |
35094 |
58 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_46.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_46.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_46.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_46.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2134872 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
281 |
0 |
0 |
T7 |
19118 |
438 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
85 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
625 |
0 |
0 |
T13 |
35094 |
411 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
496391 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
56 |
0 |
0 |
T7 |
19118 |
68 |
0 |
0 |
T8 |
4402 |
87 |
0 |
0 |
T9 |
4657 |
57 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
112 |
0 |
0 |
T13 |
35094 |
69 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218630 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
38 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
82 |
0 |
0 |
T9 |
4657 |
56 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
86 |
0 |
0 |
T13 |
35094 |
68 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_47.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T3 T8 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_47.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T3,T8,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T3,T8,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_47.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T3,T8,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_47.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2125989 |
0 |
0 |
T1 |
11190 |
94 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
284 |
0 |
0 |
T7 |
19118 |
437 |
0 |
0 |
T8 |
4402 |
66 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
62 |
0 |
0 |
T11 |
2497 |
18 |
0 |
0 |
T12 |
42565 |
387 |
0 |
0 |
T13 |
35094 |
540 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
542834 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
82 |
0 |
0 |
T7 |
19118 |
96 |
0 |
0 |
T8 |
4402 |
73 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
10 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
80 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
220145 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
43 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
69 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
8 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
64 |
0 |
0 |
T13 |
35094 |
73 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_48.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_48.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_48.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_48.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2165765 |
0 |
0 |
T1 |
11190 |
88 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
327 |
0 |
0 |
T7 |
19118 |
437 |
0 |
0 |
T8 |
4402 |
75 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
102 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
657 |
0 |
0 |
T13 |
35094 |
466 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
553948 |
0 |
0 |
T1 |
11190 |
11 |
0 |
0 |
T2 |
2123 |
21 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
87 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
61 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
107 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229683 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
20 |
0 |
0 |
T3 |
17514 |
39 |
0 |
0 |
T7 |
19118 |
62 |
0 |
0 |
T8 |
4402 |
76 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
81 |
0 |
0 |
T13 |
35094 |
60 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_49.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_49.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_49.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_49.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2161184 |
0 |
0 |
T1 |
11190 |
80 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
236 |
0 |
0 |
T7 |
19118 |
314 |
0 |
0 |
T8 |
4402 |
75 |
0 |
0 |
T9 |
4657 |
49 |
0 |
0 |
T10 |
9967 |
61 |
0 |
0 |
T11 |
2497 |
13 |
0 |
0 |
T12 |
42565 |
482 |
0 |
0 |
T13 |
35094 |
474 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
569351 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
19 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
47 |
0 |
0 |
T8 |
4402 |
84 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
16 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
102 |
0 |
0 |
T13 |
35094 |
75 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
236832 |
0 |
0 |
T1 |
11190 |
8 |
0 |
0 |
T2 |
2123 |
18 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
45 |
0 |
0 |
T8 |
4402 |
79 |
0 |
0 |
T9 |
4657 |
48 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
74 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_50.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T8 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_50.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T8,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T8,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_50.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T8,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_50.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2159624 |
0 |
0 |
T1 |
11190 |
66 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
320 |
0 |
0 |
T7 |
19118 |
349 |
0 |
0 |
T8 |
4402 |
89 |
0 |
0 |
T9 |
4657 |
59 |
0 |
0 |
T10 |
9967 |
32 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
515 |
0 |
0 |
T13 |
35094 |
548 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
510696 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
16 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
67 |
0 |
0 |
T8 |
4402 |
100 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
17 |
0 |
0 |
T12 |
42565 |
106 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221344 |
0 |
0 |
T1 |
11190 |
7 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
94 |
0 |
0 |
T9 |
4657 |
58 |
0 |
0 |
T10 |
9967 |
5 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
75 |
0 |
0 |
T13 |
35094 |
70 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_51.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T2 T3
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_51.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T2,T3 |
Branch Coverage for Instance : tb.dut.u_sm1_51.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T2,T3 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_51.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2228877 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
296 |
0 |
0 |
T7 |
19118 |
347 |
0 |
0 |
T8 |
4402 |
64 |
0 |
0 |
T9 |
4657 |
47 |
0 |
0 |
T10 |
9967 |
130 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
898 |
0 |
0 |
T13 |
35094 |
757 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
509124 |
0 |
0 |
T1 |
11190 |
29 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
73 |
0 |
0 |
T7 |
19118 |
52 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
193 |
0 |
0 |
T13 |
35094 |
152 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
232830 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
44 |
0 |
0 |
T8 |
4402 |
65 |
0 |
0 |
T9 |
4657 |
46 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
130 |
0 |
0 |
T13 |
35094 |
100 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_52.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_52.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_52.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_52.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2187658 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
274 |
0 |
0 |
T7 |
19118 |
353 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
50 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
475 |
0 |
0 |
T13 |
35094 |
517 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
513541 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
59 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
74 |
0 |
0 |
T9 |
4657 |
55 |
0 |
0 |
T10 |
9967 |
24 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
72 |
0 |
0 |
T13 |
35094 |
106 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
221684 |
0 |
0 |
T1 |
11190 |
9 |
0 |
0 |
T2 |
2123 |
14 |
0 |
0 |
T3 |
17514 |
34 |
0 |
0 |
T7 |
19118 |
40 |
0 |
0 |
T8 |
4402 |
70 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
11 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
65 |
0 |
0 |
T13 |
35094 |
66 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_53.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_53.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_53.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_53.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2135492 |
0 |
0 |
T1 |
11190 |
81 |
0 |
0 |
T2 |
2123 |
16 |
0 |
0 |
T3 |
17514 |
200 |
0 |
0 |
T7 |
19118 |
354 |
0 |
0 |
T8 |
4402 |
64 |
0 |
0 |
T9 |
4657 |
54 |
0 |
0 |
T10 |
9967 |
92 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
618 |
0 |
0 |
T13 |
35094 |
522 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
572009 |
0 |
0 |
T1 |
11190 |
36 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
36 |
0 |
0 |
T7 |
19118 |
63 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
12 |
0 |
0 |
T12 |
42565 |
96 |
0 |
0 |
T13 |
35094 |
72 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
229805 |
0 |
0 |
T1 |
11190 |
13 |
0 |
0 |
T2 |
2123 |
15 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
46 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
12 |
0 |
0 |
T11 |
2497 |
11 |
0 |
0 |
T12 |
42565 |
83 |
0 |
0 |
T13 |
35094 |
67 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_54.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_54.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_54.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_54.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2143199 |
0 |
0 |
T1 |
11190 |
77 |
0 |
0 |
T2 |
2123 |
13 |
0 |
0 |
T3 |
17514 |
253 |
0 |
0 |
T7 |
19118 |
416 |
0 |
0 |
T8 |
4402 |
74 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
116 |
0 |
0 |
T11 |
2497 |
10 |
0 |
0 |
T12 |
42565 |
680 |
0 |
0 |
T13 |
35094 |
469 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
522587 |
0 |
0 |
T1 |
11190 |
12 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
30 |
0 |
0 |
T7 |
19118 |
72 |
0 |
0 |
T8 |
4402 |
83 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
97 |
0 |
0 |
T13 |
35094 |
83 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
218901 |
0 |
0 |
T1 |
11190 |
10 |
0 |
0 |
T2 |
2123 |
12 |
0 |
0 |
T3 |
17514 |
29 |
0 |
0 |
T7 |
19118 |
49 |
0 |
0 |
T8 |
4402 |
78 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
13 |
0 |
0 |
T11 |
2497 |
9 |
0 |
0 |
T12 |
42565 |
85 |
0 |
0 |
T13 |
35094 |
62 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_55.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_55.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_55.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_55.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2120218 |
0 |
0 |
T1 |
11190 |
124 |
0 |
0 |
T2 |
2123 |
9 |
0 |
0 |
T3 |
17514 |
234 |
0 |
0 |
T7 |
19118 |
425 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
54 |
0 |
0 |
T10 |
9967 |
47 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
535 |
0 |
0 |
T13 |
35094 |
414 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
494941 |
0 |
0 |
T1 |
11190 |
21 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
49 |
0 |
0 |
T7 |
19118 |
78 |
0 |
0 |
T8 |
4402 |
64 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
18 |
0 |
0 |
T11 |
2497 |
16 |
0 |
0 |
T12 |
42565 |
93 |
0 |
0 |
T13 |
35094 |
54 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
226725 |
0 |
0 |
T1 |
11190 |
18 |
0 |
0 |
T2 |
2123 |
8 |
0 |
0 |
T3 |
17514 |
35 |
0 |
0 |
T7 |
19118 |
51 |
0 |
0 |
T8 |
4402 |
63 |
0 |
0 |
T9 |
4657 |
53 |
0 |
0 |
T10 |
9967 |
7 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
73 |
0 |
0 |
T13 |
35094 |
46 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_56.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T2 T3 T8
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_56.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T2,T3,T8 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T2,T3,T8 |
Branch Coverage for Instance : tb.dut.u_sm1_56.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T2,T3,T8 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_56.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2159547 |
0 |
0 |
T1 |
11190 |
43 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
369 |
0 |
0 |
T7 |
19118 |
425 |
0 |
0 |
T8 |
4402 |
64 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
84 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
641 |
0 |
0 |
T13 |
35094 |
499 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
563675 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
11 |
0 |
0 |
T3 |
17514 |
61 |
0 |
0 |
T7 |
19118 |
67 |
0 |
0 |
T8 |
4402 |
71 |
0 |
0 |
T9 |
4657 |
52 |
0 |
0 |
T10 |
9967 |
32 |
0 |
0 |
T11 |
2497 |
15 |
0 |
0 |
T12 |
42565 |
128 |
0 |
0 |
T13 |
35094 |
77 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
900 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
231512 |
0 |
0 |
T1 |
11190 |
6 |
0 |
0 |
T2 |
2123 |
10 |
0 |
0 |
T3 |
17514 |
44 |
0 |
0 |
T7 |
19118 |
53 |
0 |
0 |
T8 |
4402 |
67 |
0 |
0 |
T9 |
4657 |
51 |
0 |
0 |
T10 |
9967 |
14 |
0 |
0 |
T11 |
2497 |
14 |
0 |
0 |
T12 |
42565 |
78 |
0 |
0 |
T13 |
35094 |
76 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_28.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_28.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_28.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_28.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
8014387 |
0 |
0 |
T1 |
11190 |
345 |
0 |
0 |
T2 |
2123 |
1 |
0 |
0 |
T3 |
17514 |
1247 |
0 |
0 |
T7 |
19118 |
1795 |
0 |
0 |
T8 |
4402 |
1 |
0 |
0 |
T9 |
4657 |
1 |
0 |
0 |
T10 |
9967 |
334 |
0 |
0 |
T11 |
2497 |
1 |
0 |
0 |
T12 |
42565 |
2004 |
0 |
0 |
T13 |
35094 |
1663 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
2018580 |
0 |
0 |
T1 |
11190 |
86 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
351 |
0 |
0 |
T7 |
19118 |
432 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
69 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
402 |
0 |
0 |
T13 |
35094 |
332 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
20681 |
0 |
900 |
T4 |
15331 |
0 |
0 |
1 |
T7 |
19118 |
0 |
0 |
1 |
T8 |
4402 |
10 |
0 |
1 |
T9 |
4657 |
4 |
0 |
1 |
T10 |
9967 |
0 |
0 |
1 |
T11 |
2497 |
0 |
0 |
1 |
T12 |
42565 |
0 |
0 |
1 |
T13 |
35094 |
0 |
0 |
1 |
T15 |
0 |
5 |
0 |
0 |
T16 |
0 |
19 |
0 |
0 |
T17 |
0 |
6 |
0 |
0 |
T18 |
0 |
4 |
0 |
0 |
T19 |
0 |
9 |
0 |
0 |
T20 |
0 |
21 |
0 |
0 |
T23 |
0 |
20 |
0 |
0 |
T24 |
0 |
7 |
0 |
0 |
T25 |
274309 |
0 |
0 |
1 |
T26 |
11624 |
0 |
0 |
1 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
908691 |
0 |
0 |
T1 |
11190 |
55 |
0 |
0 |
T2 |
2123 |
53 |
0 |
0 |
T3 |
17514 |
183 |
0 |
0 |
T7 |
19118 |
254 |
0 |
0 |
T8 |
4402 |
286 |
0 |
0 |
T9 |
4657 |
197 |
0 |
0 |
T10 |
9967 |
51 |
0 |
0 |
T11 |
2497 |
62 |
0 |
0 |
T12 |
42565 |
301 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sm1_30.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
TOTAL | | 23 | 23 | 100.00 |
CONT_ASSIGN | 55 | 0 | 0 | |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
ALWAYS | 82 | 3 | 3 | 100.00 |
CONT_ASSIGN | 89 | 1 | 1 | 100.00 |
CONT_ASSIGN | 90 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 94 | 1 | 1 | 100.00 |
ALWAYS | 96 | 6 | 6 | 100.00 |
ALWAYS | 109 | 4 | 4 | 100.00 |
ALWAYS | 124 | 4 | 4 | 100.00 |
54 logic unused_req_chk;
55 unreachable assign unused_req_chk = req_chk_i;
56
57 `ASSERT_INIT(CheckNGreaterZero_A, N > 0)
58
59 // this case is basically just a bypass
60 if (N == 1) begin : gen_degenerate_case
61
62 assign valid_o = req_i[0];
63 assign data_o = data_i[0];
64 assign gnt_o[0] = valid_o & ready_i;
65 assign idx_o = '0;
66
67 end else begin : gen_normal_case
68
69 logic [N-1:0] masked_req;
70 logic [N-1:0] ppc_out;
71 logic [N-1:0] arb_req;
72 logic [N-1:0] mask, mask_next;
73 logic [N-1:0] winner;
74
75 1/1 assign masked_req = mask & req_i;
Tests: T1 T2 T3
76 1/1 assign arb_req = (|masked_req) ? masked_req : req_i;
Tests: T1 T2 T3
77
78 // PPC
79 // Even below code looks O(n) but DC optimizes it to O(log(N))
80 // Using Parallel Prefix Computation
81 always_comb begin
82 1/1 ppc_out[0] = arb_req[0];
Tests: T1 T2 T3
83 1/1 for (int i = 1 ; i < N ; i++) begin
Tests: T1 T2 T3
84 1/1 ppc_out[i] = ppc_out[i-1] | arb_req[i];
Tests: T1 T2 T3
85 end
86 end
87
88 // Grant Generation: Leading-One detector
89 1/1 assign winner = ppc_out ^ {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
90 1/1 assign gnt_o = (ready_i) ? winner : '0;
Tests: T1 T2 T3
91
92 1/1 assign valid_o = |req_i;
Tests: T1 T2 T3
93 // Mask Generation
94 1/1 assign mask_next = {ppc_out[N-2:0], 1'b0};
Tests: T1 T2 T3
95 always_ff @(posedge clk_i or negedge rst_ni) begin
96 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
97 1/1 mask <= '0;
Tests: T1 T2 T3
98 1/1 end else if (valid_o && ready_i) begin
Tests: T1 T2 T3
99 // Latch only when requests accepted
100 1/1 mask <= mask_next;
Tests: T1 T2 T3
101 1/1 end else if (valid_o && !ready_i) begin
Tests: T1 T2 T3
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 1/1 mask <= ppc_out;
Tests: T1 T3 T7
104 end
MISSING_ELSE
105 end
106
107 if (EnDataPort == 1) begin: gen_datapath
108 always_comb begin
109 1/1 data_o = '0;
Tests: T1 T2 T3
110 1/1 for (int i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
111 1/1 if (winner[i]) begin
Tests: T1 T2 T3
112 1/1 data_o = data_i[i];
Tests: T1 T2 T3
113 end
MISSING_ELSE
114 end
115 end
116 end else begin: gen_nodatapath
117 assign data_o = '1;
118 // The following signal is used to avoid possible lint errors.
119 logic [DW-1:0] unused_data [N];
120 assign unused_data = data_i;
121 end
122
123 always_comb begin
124 1/1 idx_o = '0;
Tests: T1 T2 T3
125 1/1 for (int unsigned i = 0 ; i < N ; i++) begin
Tests: T1 T2 T3
126 1/1 if (winner[i]) begin
Tests: T1 T2 T3
127 1/1 idx_o = i[IdxW-1:0];
Tests: T1 T2 T3
128 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.u_sm1_30.gen_arb_ppc.u_reqarb
| Total | Covered | Percent |
Conditions | 13 | 12 | 92.31 |
Logical | 13 | 12 | 92.31 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 76
EXPRESSION (((|gen_normal_case.masked_req)) ? gen_normal_case.masked_req : req_i)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 84
EXPRESSION (gen_normal_case.ppc_out[(i - 1)] | gen_normal_case.arb_req[i])
----------------1--------------- -------------2------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 90
EXPRESSION (ready_i ? gen_normal_case.winner : '0)
---1---
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (valid_o && ready_i)
---1--- ---2---
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T3,T7 |
1 | 1 | Covered | T1,T2,T3 |
LINE 101
EXPRESSION (valid_o && ((!ready_i)))
---1--- ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T1,T3,T7 |
Branch Coverage for Instance : tb.dut.u_sm1_30.gen_arb_ppc.u_reqarb
| Line No. | Total | Covered | Percent |
Branches |
|
12 |
12 |
100.00 |
TERNARY |
76 |
2 |
2 |
100.00 |
TERNARY |
90 |
2 |
2 |
100.00 |
IF |
96 |
4 |
4 |
100.00 |
IF |
126 |
2 |
2 |
100.00 |
IF |
111 |
2 |
2 |
100.00 |
76 assign arb_req = (|masked_req) ? masked_req : req_i;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
90 assign gnt_o = (ready_i) ? winner : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
96 if (!rst_ni) begin
-1-
97 mask <= '0;
==>
98 end else if (valid_o && ready_i) begin
-2-
99 // Latch only when requests accepted
100 mask <= mask_next;
==>
101 end else if (valid_o && !ready_i) begin
-3-
102 // Downstream isn't yet ready so, keep current request alive. (First come first serve)
103 mask <= ppc_out;
==>
104 end
MISSING_ELSE
==>
Branches:
-1- | -2- | -3- | Status | Tests |
1 |
- |
- |
Covered |
T1,T2,T3 |
0 |
1 |
- |
Covered |
T1,T2,T3 |
0 |
0 |
1 |
Covered |
T1,T3,T7 |
0 |
0 |
0 |
Covered |
T1,T2,T3 |
126 if (winner[i]) begin
-1-
127 idx_o = i[IdxW-1:0];
==>
128 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
111 if (winner[i]) begin
-1-
112 data_o = data_i[i];
==>
113 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_sm1_30.gen_arb_ppc.u_reqarb
Assertion Details
CheckHotOne_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
CheckNGreaterZero_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
900 |
900 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T7 |
1 |
1 |
0 |
0 |
T8 |
1 |
1 |
0 |
0 |
T9 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
GntImpliesReady_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
GntImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
GrantKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IdxKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
IndexIsCorrect_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
LockArbDecision_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
NoReadyValidNoGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
216716937 |
0 |
0 |
T1 |
11190 |
9662 |
0 |
0 |
T2 |
2123 |
1 |
0 |
0 |
T3 |
17514 |
14111 |
0 |
0 |
T7 |
19118 |
15923 |
0 |
0 |
T8 |
4402 |
1 |
0 |
0 |
T9 |
4657 |
1 |
0 |
0 |
T10 |
9967 |
8655 |
0 |
0 |
T11 |
2497 |
1 |
0 |
0 |
T12 |
42565 |
35820 |
0 |
0 |
T13 |
35094 |
30045 |
0 |
0 |
ReadyAndValidImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
ReqAndReadyImplyGrant_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |
ReqImpliesValid_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
9558110 |
0 |
0 |
T1 |
11190 |
508 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
1441 |
0 |
0 |
T7 |
19118 |
1656 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
430 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
2191 |
0 |
0 |
T13 |
35094 |
2058 |
0 |
0 |
ReqStaysHighUntilGranted0_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
0 |
0 |
0 |
RoundRobin_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
29404 |
0 |
900 |
T4 |
15331 |
0 |
0 |
1 |
T7 |
19118 |
0 |
0 |
1 |
T8 |
4402 |
5 |
0 |
1 |
T9 |
4657 |
0 |
0 |
1 |
T10 |
9967 |
0 |
0 |
1 |
T11 |
2497 |
0 |
0 |
1 |
T12 |
42565 |
2 |
0 |
1 |
T13 |
35094 |
0 |
0 |
1 |
T14 |
0 |
2 |
0 |
0 |
T15 |
0 |
9 |
0 |
0 |
T16 |
0 |
23 |
0 |
0 |
T17 |
0 |
10 |
0 |
0 |
T18 |
0 |
4 |
0 |
0 |
T19 |
0 |
11 |
0 |
0 |
T21 |
0 |
1 |
0 |
0 |
T22 |
0 |
515 |
0 |
0 |
T25 |
274309 |
0 |
0 |
1 |
T26 |
11624 |
0 |
0 |
1 |
ValidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
260733876 |
0 |
0 |
T1 |
11190 |
11140 |
0 |
0 |
T2 |
2123 |
2095 |
0 |
0 |
T3 |
17514 |
17463 |
0 |
0 |
T7 |
19118 |
19094 |
0 |
0 |
T8 |
4402 |
4389 |
0 |
0 |
T9 |
4657 |
4649 |
0 |
0 |
T10 |
9967 |
9931 |
0 |
0 |
T11 |
2497 |
2444 |
0 |
0 |
T12 |
42565 |
42508 |
0 |
0 |
T13 |
35094 |
35047 |
0 |
0 |
gen_data_port_assertion.DataFlow_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
260875270 |
891221 |
0 |
0 |
T1 |
11190 |
59 |
0 |
0 |
T2 |
2123 |
59 |
0 |
0 |
T3 |
17514 |
176 |
0 |
0 |
T7 |
19118 |
210 |
0 |
0 |
T8 |
4402 |
290 |
0 |
0 |
T9 |
4657 |
201 |
0 |
0 |
T10 |
9967 |
52 |
0 |
0 |
T11 |
2497 |
56 |
0 |
0 |
T12 |
42565 |
282 |
0 |
0 |
T13 |
35094 |
255 |
0 |
0 |