Line Coverage for Module :
prim_pulse_sync
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Module :
prim_pulse_sync
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T18 |
1 | 0 | Covered | T1,T14,T18 |
1 | 1 | Covered | T18,T3,T24 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T18 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T1,T14,T18 |
Branch Coverage for Module :
prim_pulse_sync
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Module :
prim_pulse_sync
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
207897 |
0 |
0 |
T1 |
60956 |
2 |
0 |
0 |
T2 |
72343 |
0 |
0 |
0 |
T3 |
44036 |
0 |
0 |
0 |
T4 |
103320 |
0 |
0 |
0 |
T5 |
95996 |
0 |
0 |
0 |
T6 |
0 |
2 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
0 |
2 |
0 |
0 |
T12 |
66443 |
0 |
0 |
0 |
T13 |
207414 |
0 |
0 |
0 |
T14 |
219760 |
2 |
0 |
0 |
T15 |
251648 |
0 |
0 |
0 |
T16 |
539898 |
18 |
0 |
0 |
T17 |
708849 |
0 |
0 |
0 |
T18 |
617757 |
0 |
0 |
0 |
T23 |
675844 |
0 |
0 |
0 |
T24 |
442869 |
33 |
0 |
0 |
T25 |
244366 |
0 |
0 |
0 |
T28 |
0 |
12 |
0 |
0 |
T29 |
119026 |
2 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T31 |
0 |
33 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T54 |
0 |
14 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T56 |
0 |
14 |
0 |
0 |
T57 |
0 |
14 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
16 |
0 |
0 |
T60 |
0 |
14 |
0 |
0 |
T61 |
0 |
16 |
0 |
0 |
T62 |
194596 |
0 |
0 |
0 |
T63 |
161006 |
0 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
209748 |
0 |
0 |
T1 |
60956 |
2 |
0 |
0 |
T2 |
72343 |
0 |
0 |
0 |
T3 |
44036 |
0 |
0 |
0 |
T4 |
103320 |
0 |
0 |
0 |
T5 |
95996 |
0 |
0 |
0 |
T6 |
0 |
2 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
0 |
2 |
0 |
0 |
T12 |
66443 |
0 |
0 |
0 |
T13 |
207414 |
0 |
0 |
0 |
T14 |
219760 |
2 |
0 |
0 |
T15 |
251648 |
0 |
0 |
0 |
T16 |
539898 |
18 |
0 |
0 |
T17 |
708849 |
0 |
0 |
0 |
T18 |
617757 |
0 |
0 |
0 |
T23 |
675844 |
0 |
0 |
0 |
T24 |
6838 |
33 |
0 |
0 |
T25 |
244366 |
0 |
0 |
0 |
T28 |
0 |
12 |
0 |
0 |
T29 |
119026 |
2 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T31 |
0 |
33 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T54 |
0 |
14 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T56 |
0 |
14 |
0 |
0 |
T57 |
0 |
14 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
16 |
0 |
0 |
T60 |
0 |
14 |
0 |
0 |
T61 |
0 |
16 |
0 |
0 |
T62 |
194596 |
0 |
0 |
0 |
T63 |
161006 |
0 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T14 T23
Cond Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T23 |
1 | 0 | Covered | T1,T14,T23 |
1 | 1 | Covered | T34,T319,T320 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T23 |
1 | 0 | Covered | T34,T319,T320 |
1 | 1 | Covered | T1,T14,T23 |
Branch Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1838 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1890 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T23 |
1 | 0 | Covered | T1,T14,T23 |
1 | 1 | Covered | T34,T319,T320 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T23 |
1 | 0 | Covered | T34,T319,T320 |
1 | 1 | Covered | T1,T14,T23 |
Branch Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ec_rst_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1883 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1883 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T18 T3 T24
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1058 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1109 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_ac_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1101 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1101 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T18 T3 T24
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1075 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1130 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_lid_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1121 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1121 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T18 T3 T24
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1030 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1087 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T24 |
1 | 1 | Covered | T18,T3,T71 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T18,T3,T24 |
1 | 0 | Covered | T18,T3,T71 |
1 | 1 | Covered | T18,T3,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_pwrb_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1079 |
0 |
0 |
T3 |
20691 |
3 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
204133 |
3 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1079 |
0 |
0 |
T3 |
1327 |
3 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T18 |
1786 |
3 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T3 T24 T10
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T24,T10 |
1 | 0 | Covered | T3,T24,T10 |
1 | 1 | Covered | T3,T24,T10 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T24,T10 |
1 | 0 | Covered | T3,T24,T10 |
1 | 1 | Covered | T3,T24,T10 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1010 |
0 |
0 |
T3 |
1327 |
4 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
2 |
0 |
0 |
T11 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T27 |
523 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
2 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T70 |
429 |
0 |
0 |
0 |
T92 |
0 |
2 |
0 |
0 |
T93 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1063 |
0 |
0 |
T3 |
20691 |
4 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
2 |
0 |
0 |
T11 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T27 |
128256 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
2 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T70 |
214377 |
0 |
0 |
0 |
T92 |
0 |
2 |
0 |
0 |
T93 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T24,T10 |
1 | 0 | Covered | T3,T24,T10 |
1 | 1 | Covered | T3,T24,T10 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T24,T10 |
1 | 0 | Covered | T3,T24,T10 |
1 | 1 | Covered | T3,T24,T10 |
Branch Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_ulp_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1056 |
0 |
0 |
T3 |
20691 |
4 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
2 |
0 |
0 |
T11 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T27 |
128256 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
2 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T70 |
214377 |
0 |
0 |
0 |
T92 |
0 |
2 |
0 |
0 |
T93 |
0 |
2 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1056 |
0 |
0 |
T3 |
1327 |
4 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
2 |
0 |
0 |
T11 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T27 |
523 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
2 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T70 |
429 |
0 |
0 |
0 |
T92 |
0 |
2 |
0 |
0 |
T93 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_wkup_status_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T3 T10 T11
Cond Coverage for Instance : tb.dut.u_reg.u_wkup_status_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T10,T11 |
1 | 0 | Covered | T3,T10,T11 |
1 | 1 | Covered | T3,T38,T42 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T10,T11 |
1 | 0 | Covered | T3,T38,T42 |
1 | 1 | Covered | T3,T10,T11 |
Branch Coverage for Instance : tb.dut.u_reg.u_wkup_status_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_wkup_status_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1018 |
0 |
0 |
T3 |
1327 |
2 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T6 |
480 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T27 |
523 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
3 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T70 |
429 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1074 |
0 |
0 |
T3 |
20691 |
2 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T6 |
62486 |
0 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T27 |
128256 |
0 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
3 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T70 |
214377 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T17 T25 T26
Cond Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T17,T25,T26 |
1 | 0 | Covered | T17,T25,T26 |
1 | 1 | Covered | T17,T25,T26 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T17,T25,T26 |
1 | 0 | Covered | T17,T25,T26 |
1 | 1 | Covered | T17,T25,T26 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
2221 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T17 |
491 |
20 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T25 |
496 |
20 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
2274 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T17 |
235792 |
20 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T25 |
121687 |
20 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T17,T25,T26 |
1 | 0 | Covered | T17,T25,T26 |
1 | 1 | Covered | T17,T25,T26 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T17,T25,T26 |
1 | 0 | Covered | T17,T25,T26 |
1 | 1 | Covered | T17,T25,T26 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_invert_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
2266 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T17 |
235792 |
20 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T25 |
121687 |
20 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T69 |
95170 |
0 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
2266 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T17 |
491 |
20 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T25 |
496 |
20 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T69 |
423 |
0 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T12 T15 T17
Cond Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T17 |
1 | 0 | Covered | T12,T15,T17 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T17 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T17 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
4264 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
1 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T26 |
0 |
1 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
4318 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
1 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T26 |
0 |
1 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T17 |
1 | 0 | Covered | T12,T15,T17 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T17 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T17 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_allowed_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
4309 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
1 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T26 |
0 |
1 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
4309 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
1 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T26 |
0 |
1 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T12 T14
Cond Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T12,T14 |
1 | 0 | Covered | T1,T12,T14 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T12,T14 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T1,T12,T14 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
5177 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
1 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
5230 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
1 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T12,T14 |
1 | 0 | Covered | T1,T12,T14 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T12,T14 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T1,T12,T14 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
5221 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
1 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
5221 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
1 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
0 |
1 |
0 |
0 |
T25 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T63 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T12 T15 T27
Cond Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T27 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T27 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T27 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
4218 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
T84 |
0 |
20 |
0 |
0 |
T85 |
0 |
20 |
0 |
0 |
T86 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
4276 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
T84 |
0 |
20 |
0 |
0 |
T85 |
0 |
20 |
0 |
0 |
T86 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T27 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T27 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T12,T15,T27 |
1 | 0 | Covered | T12,T15,T27 |
1 | 1 | Covered | T12,T15,T27 |
Branch Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_pin_out_value_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
4265 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T12 |
65916 |
20 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
20 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
T84 |
0 |
20 |
0 |
0 |
T85 |
0 |
20 |
0 |
0 |
T86 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
4265 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T12 |
527 |
20 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
20 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T27 |
0 |
20 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
40 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
T84 |
0 |
20 |
0 |
0 |
T85 |
0 |
20 |
0 |
0 |
T86 |
0 |
20 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T2 T5 T24
Cond Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T2,T5,T24 |
1 | 0 | Covered | T2,T5,T24 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T2,T5,T24 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T2,T5,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1024 |
0 |
0 |
T2 |
681 |
1 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T31 |
0 |
28 |
0 |
0 |
T43 |
0 |
1 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T46 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1077 |
0 |
0 |
T2 |
71662 |
1 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T31 |
0 |
28 |
0 |
0 |
T43 |
0 |
1 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T46 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T2,T5,T24 |
1 | 0 | Covered | T2,T5,T24 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T2,T5,T24 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T2,T5,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_intr_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1069 |
0 |
0 |
T2 |
71662 |
1 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
0 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T31 |
0 |
28 |
0 |
0 |
T43 |
0 |
1 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T46 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1069 |
0 |
0 |
T2 |
681 |
1 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
0 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T31 |
0 |
28 |
0 |
0 |
T43 |
0 |
1 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T46 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T2 T14
Cond Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T2,T14 |
1 | 0 | Covered | T1,T2,T14 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T2,T14 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T2,T14 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1843 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
1 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1898 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
1 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T2,T14 |
1 | 0 | Covered | T1,T2,T14 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T2,T14 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T2,T14 |
Branch Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_key_intr_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1891 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
1 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1891 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
1 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T16 T28 T24
Cond Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T24 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1217 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T16 |
716 |
6 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
2 |
0 |
0 |
T54 |
0 |
4 |
0 |
0 |
T56 |
0 |
4 |
0 |
0 |
T57 |
0 |
4 |
0 |
0 |
T59 |
0 |
5 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1276 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T16 |
179250 |
6 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
2 |
0 |
0 |
T54 |
0 |
4 |
0 |
0 |
T56 |
0 |
4 |
0 |
0 |
T57 |
0 |
4 |
0 |
0 |
T59 |
0 |
5 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T24 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_auto_block_debounce_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1268 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T16 |
179250 |
6 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
2 |
0 |
0 |
T54 |
0 |
4 |
0 |
0 |
T56 |
0 |
4 |
0 |
0 |
T57 |
0 |
4 |
0 |
0 |
T59 |
0 |
5 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1268 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T16 |
716 |
6 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
2 |
0 |
0 |
T54 |
0 |
4 |
0 |
0 |
T56 |
0 |
4 |
0 |
0 |
T57 |
0 |
4 |
0 |
0 |
T59 |
0 |
5 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T16 T28 T24
Cond Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T54 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T54 |
1 | 1 | Covered | T16,T28,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1139 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T16 |
716 |
3 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T54 |
0 |
3 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T57 |
0 |
3 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
3 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1187 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T16 |
179250 |
3 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T54 |
0 |
3 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T57 |
0 |
3 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
3 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T24 |
1 | 1 | Covered | T16,T28,T54 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T28,T24 |
1 | 0 | Covered | T16,T28,T54 |
1 | 1 | Covered | T16,T28,T24 |
Branch Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_auto_block_out_ctl_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1179 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T16 |
179250 |
3 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
121687 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
59042 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T54 |
0 |
3 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T57 |
0 |
3 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
3 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1179 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T16 |
716 |
3 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T31 |
0 |
1 |
0 |
0 |
T54 |
0 |
3 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T57 |
0 |
3 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
3 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T14 T29 T30
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T14,T29,T30 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T14,T29,T30 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6622 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
62 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6674 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
62 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T14,T29,T30 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T14,T29,T30 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6666 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
62 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6666 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
62 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6732 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T39 |
0 |
65 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
74 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6788 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T39 |
0 |
65 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
74 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6780 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T39 |
0 |
65 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
74 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6780 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T39 |
0 |
65 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
74 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6915 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T39 |
0 |
76 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
59 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6970 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T39 |
0 |
76 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
59 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6962 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T39 |
0 |
76 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
59 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6962 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T39 |
0 |
76 |
0 |
0 |
T42 |
0 |
76 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
59 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6878 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T39 |
0 |
75 |
0 |
0 |
T42 |
0 |
56 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
71 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6932 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T39 |
0 |
75 |
0 |
0 |
T42 |
0 |
56 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
71 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
6924 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T39 |
0 |
75 |
0 |
0 |
T42 |
0 |
56 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
71 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
6924 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T39 |
0 |
75 |
0 |
0 |
T42 |
0 |
56 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T89 |
0 |
71 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T14 T29 T30
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T14,T29,T30 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T14,T29,T30 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1259 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1315 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T14,T29,T30 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T14,T29,T30 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T14,T29,T30 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1309 |
0 |
0 |
T3 |
20691 |
0 |
0 |
0 |
T5 |
47208 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T23 |
337212 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
96894 |
0 |
0 |
0 |
T63 |
79778 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1309 |
0 |
0 |
T3 |
1327 |
0 |
0 |
0 |
T5 |
790 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T23 |
710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
404 |
0 |
0 |
0 |
T63 |
725 |
0 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1306 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1360 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1352 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1352 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1278 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1330 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1323 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1323 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1295 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1349 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_pre_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1341 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1341 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T39 |
0 |
7 |
0 |
0 |
T42 |
0 |
6 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
9 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T14 T29
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7118 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7172 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7165 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7165 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7141 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7195 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7187 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7187 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
70 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7423 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7481 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7472 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7472 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
51 |
0 |
0 |
T37 |
0 |
54 |
0 |
0 |
T38 |
0 |
67 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
51 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7357 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7413 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_sel_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
7405 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
7405 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
11 |
0 |
0 |
T31 |
0 |
11 |
0 |
0 |
T32 |
0 |
57 |
0 |
0 |
T37 |
0 |
60 |
0 |
0 |
T38 |
0 |
74 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
55 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
76 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T14 T29
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1759 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1812 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1803 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1803 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1790 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1842 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1835 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1835 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1769 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1828 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1820 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1820 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1786 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1839 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_det_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1832 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1832 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T14 T29
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1807 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1862 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T1,T14,T29 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T14,T29 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T1,T14,T29 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_0_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1854 |
0 |
0 |
T1 |
60473 |
1 |
0 |
0 |
T2 |
71662 |
0 |
0 |
0 |
T4 |
102900 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
65916 |
0 |
0 |
0 |
T13 |
206992 |
0 |
0 |
0 |
T14 |
219308 |
1 |
0 |
0 |
T15 |
251146 |
0 |
0 |
0 |
T16 |
179250 |
0 |
0 |
0 |
T17 |
235792 |
0 |
0 |
0 |
T18 |
204133 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1854 |
0 |
0 |
T1 |
483 |
1 |
0 |
0 |
T2 |
681 |
0 |
0 |
0 |
T4 |
420 |
0 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
527 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
452 |
1 |
0 |
0 |
T15 |
502 |
0 |
0 |
0 |
T16 |
716 |
0 |
0 |
0 |
T17 |
491 |
0 |
0 |
0 |
T18 |
1786 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1754 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1810 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_1_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1801 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1801 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1793 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1848 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_2_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1840 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1840 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T24 T31 T32
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_src_to_dst_req
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_src_to_dst_req
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_src_to_dst_req
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1778 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1834 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
ALWAYS | 31 | 3 | 3 | 100.00 |
CONT_ASSIGN | 49 | 0 | 0 | |
CONT_ASSIGN | 52 | 0 | 0 | |
ALWAYS | 55 | 0 | 0 | |
ALWAYS | 89 | 3 | 3 | 100.00 |
CONT_ASSIGN | 97 | 1 | 1 | 100.00 |
30 always_ff @(posedge clk_src_i or negedge rst_src_ni) begin
31 1/1 if (!rst_src_ni) begin
Tests: T1 T4 T2
32 1/1 src_level <= 1'b0;
Tests: T1 T4 T2
33 end else begin
34 1/1 src_level <= src_level ^ src_pulse_i;
Tests: T1 T4 T2
35 end
36 end
37
38
39 // source active must come far enough such that the destination domain has time
40 // to create a valid pulse.
41 `ifdef INC_ASSERT
42 //VCS coverage off
43 // pragma coverage off
44
45 // source active flag tracks whether there is an ongoing "toggle" event.
46 // Until this toggle event is accepted by the destination domain (negative edge of
47 // of the pulse output), the source side cannot toggle again.
48 logic effective_rst_n;
49 unreachable assign effective_rst_n = rst_src_ni && dst_pulse_o;
50
51 logic src_active_flag_d, src_active_flag_q;
52 unreachable assign src_active_flag_d = src_pulse_i || src_active_flag_q;
53
54 always_ff @(posedge clk_src_i or negedge effective_rst_n) begin
55 unreachable if (!effective_rst_n) begin
56 unreachable src_active_flag_q <= '0;
57 end else begin
58 unreachable src_active_flag_q <= src_active_flag_d;
59 end
60 end
61
62 //VCS coverage on
63 // pragma coverage on
64
65 `ASSERT(SrcPulseCheck_M, src_pulse_i |-> !src_active_flag_q, clk_src_i, !rst_src_ni)
66 `endif
67
68 //////////////////////////////////////////////////////////
69 // synchronize level signal to destination clock domain //
70 //////////////////////////////////////////////////////////
71 logic dst_level;
72
73 prim_flop_2sync #(.Width(1)) prim_flop_2sync (
74 // source clock domain
75 .d_i (src_level),
76 // destination clock domain
77 .clk_i (clk_dst_i),
78 .rst_ni (rst_dst_ni),
79 .q_o (dst_level)
80 );
81
82 ////////////////////////////////////////
83 // convert level signal back to pulse //
84 ////////////////////////////////////////
85 logic dst_level_q;
86
87 // delay dst_level by 1 cycle
88 always_ff @(posedge clk_dst_i or negedge rst_dst_ni) begin
89 1/1 if (!rst_dst_ni) begin
Tests: T1 T4 T2
90 1/1 dst_level_q <= 1'b0;
Tests: T1 T4 T2
91 end else begin
92 1/1 dst_level_q <= dst_level;
Tests: T1 T4 T2
93 end
94 end
95
96 // edge detection
97 1/1 assign dst_pulse_o = dst_level_q ^ dst_level;
Tests: T1 T4 T2
Cond Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Total | Covered | Percent |
Conditions | 8 | 8 | 100.00 |
Logical | 8 | 8 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 34
EXPRESSION (src_level ^ src_pulse_i)
----1---- -----2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T32 |
1 | 1 | Covered | T24,T31,T34 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T31,T32 |
1 | 0 | Covered | T24,T31,T34 |
1 | 1 | Covered | T24,T31,T32 |
Branch Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
31 |
2 |
2 |
100.00 |
IF |
89 |
2 |
2 |
100.00 |
31 if (!rst_src_ni) begin
-1-
32 src_level <= 1'b0;
==>
33 end else begin
34 src_level <= src_level ^ src_pulse_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
89 if (!rst_dst_ni) begin
-1-
90 dst_level_q <= 1'b0;
==>
91 end else begin
92 dst_level_q <= dst_level;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T2 |
0 |
Covered |
T1,T4,T2 |
Assert Coverage for Instance : tb.dut.u_reg.u_com_out_ctl_3_cdc.u_arb.gen_passthru.u_dst_to_src_ack
Assertion Details
DstPulseCheck_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1004924884 |
1826 |
0 |
0 |
T8 |
55420 |
0 |
0 |
0 |
T9 |
59046 |
0 |
0 |
0 |
T24 |
442869 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
349379 |
0 |
0 |
0 |
T55 |
75363 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
430906 |
0 |
0 |
0 |
T65 |
259395 |
0 |
0 |
0 |
T84 |
13999 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
284485 |
0 |
0 |
0 |
T91 |
41328 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6217524 |
1826 |
0 |
0 |
T8 |
522 |
0 |
0 |
0 |
T9 |
492 |
0 |
0 |
0 |
T24 |
6838 |
9 |
0 |
0 |
T31 |
0 |
9 |
0 |
0 |
T32 |
0 |
1 |
0 |
0 |
T37 |
0 |
4 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T41 |
0 |
5 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
751 |
0 |
0 |
0 |
T55 |
471 |
0 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T64 |
897 |
0 |
0 |
0 |
T65 |
540 |
0 |
0 |
0 |
T84 |
559 |
0 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T90 |
1161 |
0 |
0 |
0 |
T91 |
434 |
0 |
0 |
0 |