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,T2,T14 |
1 | 0 | Covered | T1,T2,T14 |
1 | 1 | Covered | T3,T6,T23 |
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 | T3,T6,T23 |
1 | 1 | Covered | T1,T2,T14 |
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 |
202176 |
0 |
0 |
T1 |
64127 |
2 |
0 |
0 |
T2 |
119446 |
2 |
0 |
0 |
T3 |
119264 |
0 |
0 |
0 |
T4 |
31160 |
0 |
0 |
0 |
T5 |
423576 |
0 |
0 |
0 |
T6 |
190344 |
0 |
0 |
0 |
T7 |
245588 |
2 |
0 |
0 |
T8 |
47706 |
2 |
0 |
0 |
T12 |
52280 |
0 |
0 |
0 |
T13 |
211851 |
0 |
0 |
0 |
T14 |
92173 |
0 |
0 |
0 |
T15 |
244214 |
0 |
0 |
0 |
T16 |
484716 |
12 |
0 |
0 |
T17 |
99354 |
0 |
0 |
0 |
T24 |
845686 |
33 |
0 |
0 |
T25 |
216944 |
0 |
0 |
0 |
T26 |
502640 |
0 |
0 |
0 |
T27 |
0 |
14 |
0 |
0 |
T28 |
0 |
14 |
0 |
0 |
T29 |
0 |
2 |
0 |
0 |
T30 |
0 |
15 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
2 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T56 |
0 |
16 |
0 |
0 |
T57 |
0 |
2 |
0 |
0 |
T58 |
0 |
4 |
0 |
0 |
T59 |
0 |
12 |
0 |
0 |
T60 |
0 |
12 |
0 |
0 |
T61 |
0 |
16 |
0 |
0 |
T62 |
122714 |
0 |
0 |
0 |
T63 |
411076 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
2147483647 |
205893 |
0 |
0 |
T1 |
64127 |
2 |
0 |
0 |
T2 |
119446 |
2 |
0 |
0 |
T3 |
119264 |
0 |
0 |
0 |
T4 |
31160 |
0 |
0 |
0 |
T5 |
423576 |
0 |
0 |
0 |
T6 |
190344 |
0 |
0 |
0 |
T7 |
245588 |
2 |
0 |
0 |
T8 |
47706 |
2 |
0 |
0 |
T12 |
52280 |
0 |
0 |
0 |
T13 |
211851 |
0 |
0 |
0 |
T14 |
92173 |
0 |
0 |
0 |
T15 |
244214 |
0 |
0 |
0 |
T16 |
484716 |
12 |
0 |
0 |
T17 |
99354 |
0 |
0 |
0 |
T24 |
7077 |
33 |
0 |
0 |
T25 |
216944 |
0 |
0 |
0 |
T26 |
502640 |
0 |
0 |
0 |
T27 |
0 |
14 |
0 |
0 |
T28 |
0 |
14 |
0 |
0 |
T29 |
0 |
2 |
0 |
0 |
T30 |
0 |
15 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
2 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T56 |
0 |
16 |
0 |
0 |
T57 |
0 |
2 |
0 |
0 |
T58 |
0 |
4 |
0 |
0 |
T59 |
0 |
12 |
0 |
0 |
T60 |
0 |
12 |
0 |
0 |
T61 |
0 |
16 |
0 |
0 |
T62 |
122714 |
0 |
0 |
0 |
T63 |
411076 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
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 T2 T14
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,T2,T14 |
1 | 0 | Covered | T1,T2,T14 |
1 | 1 | Covered | T274,T20,T21 |
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 | T274,T20,T21 |
1 | 1 | Covered | T1,T2,T14 |
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 |
5045782 |
1691 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
1 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T69 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1800 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
1 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T69 |
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,T2,T14 |
1 | 0 | Covered | T1,T2,T14 |
1 | 1 | Covered | T274,T20,T21 |
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 | T274,T20,T21 |
1 | 1 | Covered | T1,T2,T14 |
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 |
1237025007 |
1792 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
1 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T69 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1792 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
1 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T69 |
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: T3 T6 T23
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
5045782 |
938 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1052 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
1237025007 |
1045 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1045 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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: T3 T6 T23
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
5045782 |
949 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1058 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
1237025007 |
1051 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1051 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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: T3 T6 T23
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
5045782 |
954 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1064 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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 | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T23 |
1 | 0 | Covered | T3,T6,T23 |
1 | 1 | Covered | T3,T6,T23 |
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 |
1237025007 |
1057 |
0 |
0 |
T3 |
117509 |
3 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1057 |
0 |
0 |
T3 |
1755 |
3 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T23 |
0 |
3 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
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 T6 T24
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,T6,T24 |
1 | 0 | Covered | T3,T6,T24 |
1 | 1 | Covered | T3,T6,T24 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T24 |
1 | 0 | Covered | T3,T6,T24 |
1 | 1 | Covered | T3,T6,T24 |
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 |
5045782 |
977 |
0 |
0 |
T3 |
1755 |
2 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
6 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
4 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
6 |
0 |
0 |
T92 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1082 |
0 |
0 |
T3 |
117509 |
2 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
6 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
4 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
6 |
0 |
0 |
T92 |
0 |
4 |
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,T6,T24 |
1 | 0 | Covered | T3,T6,T24 |
1 | 1 | Covered | T3,T6,T24 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T24 |
1 | 0 | Covered | T3,T6,T24 |
1 | 1 | Covered | T3,T6,T24 |
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 |
1237025007 |
1077 |
0 |
0 |
T3 |
117509 |
2 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
6 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
4 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
6 |
0 |
0 |
T92 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1077 |
0 |
0 |
T3 |
1755 |
2 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
6 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T24 |
0 |
4 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
4 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
2 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
6 |
0 |
0 |
T92 |
0 |
4 |
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 T6 T18
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,T6,T18 |
1 | 0 | Covered | T3,T6,T18 |
1 | 1 | Covered | T6,T68,T92 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T3,T6,T18 |
1 | 0 | Covered | T6,T68,T92 |
1 | 1 | Covered | T3,T6,T18 |
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 |
5045782 |
915 |
0 |
0 |
T3 |
1755 |
1 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T37 |
0 |
5 |
0 |
0 |
T40 |
0 |
2 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T68 |
0 |
3 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1015 |
0 |
0 |
T3 |
117509 |
1 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
0 |
3 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T37 |
0 |
5 |
0 |
0 |
T40 |
0 |
2 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T66 |
0 |
1 |
0 |
0 |
T67 |
0 |
1 |
0 |
0 |
T68 |
0 |
3 |
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: T15 T25 T7
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 | T15,T25,T7 |
1 | 0 | Covered | T15,T25,T7 |
1 | 1 | Covered | T15,T25,T7 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T15,T25,T7 |
1 | 0 | Covered | T15,T25,T7 |
1 | 1 | Covered | T15,T25,T7 |
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 |
5045782 |
2168 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T7 |
1860 |
20 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T15 |
492 |
20 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
3498 |
20 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T58 |
0 |
20 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T71 |
0 |
20 |
0 |
0 |
T72 |
0 |
20 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
2274 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T7 |
120934 |
20 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T15 |
243722 |
20 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
104974 |
20 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T58 |
0 |
20 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T71 |
0 |
20 |
0 |
0 |
T72 |
0 |
20 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
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 | T15,T25,T7 |
1 | 0 | Covered | T15,T25,T7 |
1 | 1 | Covered | T15,T25,T7 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T15,T25,T7 |
1 | 0 | Covered | T15,T25,T7 |
1 | 1 | Covered | T15,T25,T7 |
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 |
1237025007 |
2269 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T7 |
120934 |
20 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T15 |
243722 |
20 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
104974 |
20 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T58 |
0 |
20 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T71 |
0 |
20 |
0 |
0 |
T72 |
0 |
20 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
2269 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T7 |
1860 |
20 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T15 |
492 |
20 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
3498 |
20 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T58 |
0 |
20 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T71 |
0 |
20 |
0 |
0 |
T72 |
0 |
20 |
0 |
0 |
T73 |
0 |
20 |
0 |
0 |
T74 |
0 |
20 |
0 |
0 |
T75 |
0 |
20 |
0 |
0 |
T76 |
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: T4 T15 T26
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 | T4,T15,T26 |
1 | 0 | Covered | T4,T15,T26 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T4,T15,T26 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T15,T26 |
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 |
5045782 |
3974 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
1 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
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 |
1237025007 |
4087 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
1 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
26 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
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_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 | T4,T15,T26 |
1 | 0 | Covered | T4,T15,T26 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T4,T15,T26 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T15,T26 |
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 |
1237025007 |
4077 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
1 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
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 |
5045782 |
4077 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
1 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
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_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 T4 T2
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,T4,T2 |
1 | 0 | Covered | T1,T4,T2 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T4,T2 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T1,T4,T2 |
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 |
5045782 |
4911 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
1 |
0 |
0 |
T15 |
492 |
1 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
5019 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
1 |
0 |
0 |
T15 |
243722 |
1 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
26 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
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,T4,T2 |
1 | 0 | Covered | T1,T4,T2 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T4,T2 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T1,T4,T2 |
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 |
1237025007 |
5010 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
1 |
0 |
0 |
T15 |
243722 |
1 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
5010 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
1 |
0 |
0 |
T15 |
492 |
1 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
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: T4 T26 T25
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 | T4,T26,T25 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T4,T26,T25 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T26,T25 |
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 |
5045782 |
3941 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
24 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
20 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
4058 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
25 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
20 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
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 | T4,T26,T25 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T26,T25 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T4,T26,T25 |
1 | 0 | Covered | T4,T26,T25 |
1 | 1 | Covered | T4,T26,T25 |
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 |
1237025007 |
4050 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
20 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T25 |
0 |
24 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
20 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
0 |
20 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
4050 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
20 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T25 |
0 |
24 |
0 |
0 |
T26 |
0 |
20 |
0 |
0 |
T77 |
0 |
20 |
0 |
0 |
T78 |
0 |
20 |
0 |
0 |
T79 |
0 |
20 |
0 |
0 |
T80 |
0 |
20 |
0 |
0 |
T81 |
0 |
20 |
0 |
0 |
T82 |
0 |
20 |
0 |
0 |
T83 |
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: T5 T9 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 | T5,T9,T24 |
1 | 0 | Covered | T5,T9,T24 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T5,T9,T24 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T5,T9,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 |
5045782 |
955 |
0 |
0 |
T5 |
519 |
1 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
28 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T50 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T77 |
522 |
0 |
0 |
0 |
T78 |
503 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1061 |
0 |
0 |
T5 |
211269 |
1 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
28 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T50 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T77 |
260847 |
0 |
0 |
0 |
T78 |
120737 |
0 |
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 | T5,T9,T24 |
1 | 0 | Covered | T5,T9,T24 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T5,T9,T24 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T5,T9,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 |
1237025007 |
1055 |
0 |
0 |
T5 |
211269 |
1 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T30 |
0 |
28 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T50 |
0 |
1 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
T77 |
260847 |
0 |
0 |
0 |
T78 |
120737 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1055 |
0 |
0 |
T5 |
519 |
1 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T10 |
0 |
1 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T24 |
0 |
28 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T30 |
0 |
28 |
0 |
0 |
T44 |
0 |
1 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T47 |
0 |
1 |
0 |
0 |
T50 |
0 |
1 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
T77 |
522 |
0 |
0 |
0 |
T78 |
503 |
0 |
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 T5
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,T5 |
1 | 0 | Covered | T1,T2,T5 |
1 | 1 | Covered | T24,T30,T274 |
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,T5 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T5 |
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 |
5045782 |
1705 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1812 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
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,T5 |
1 | 0 | Covered | T1,T2,T5 |
1 | 1 | Covered | T24,T30,T274 |
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,T5 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T5 |
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 |
1237025007 |
1806 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1806 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T5 |
0 |
1 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T9 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
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 T27 T28
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,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
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 |
5045782 |
1090 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
3 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T27 |
0 |
4 |
0 |
0 |
T28 |
0 |
4 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T56 |
0 |
5 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1196 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
3 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T27 |
0 |
4 |
0 |
0 |
T28 |
0 |
4 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T56 |
0 |
5 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
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,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
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 |
1237025007 |
1190 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
3 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T27 |
0 |
4 |
0 |
0 |
T28 |
0 |
4 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T56 |
0 |
5 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1190 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
3 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
2 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T27 |
0 |
4 |
0 |
0 |
T28 |
0 |
4 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T56 |
0 |
5 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
4 |
0 |
0 |
T61 |
0 |
5 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
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 T27 T28
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,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
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 |
5045782 |
1024 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
3 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
2 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1134 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
3 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
2 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
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,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T16,T27,T28 |
1 | 1 | Covered | T16,T27,T28 |
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 |
1237025007 |
1126 |
0 |
0 |
T5 |
211269 |
0 |
0 |
0 |
T6 |
91716 |
0 |
0 |
0 |
T7 |
120934 |
0 |
0 |
0 |
T8 |
23335 |
0 |
0 |
0 |
T16 |
160902 |
3 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
104974 |
0 |
0 |
0 |
T26 |
250798 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
2 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
60938 |
0 |
0 |
0 |
T63 |
205116 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1126 |
0 |
0 |
T5 |
519 |
0 |
0 |
0 |
T6 |
3456 |
0 |
0 |
0 |
T7 |
1860 |
0 |
0 |
0 |
T8 |
518 |
0 |
0 |
0 |
T16 |
670 |
3 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
1 |
0 |
0 |
T25 |
3498 |
0 |
0 |
0 |
T26 |
522 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
3 |
0 |
0 |
T30 |
0 |
1 |
0 |
0 |
T56 |
0 |
3 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
2 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
419 |
0 |
0 |
0 |
T63 |
422 |
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: T1 T8 T29
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 | T1,T8,T29 |
1 | 0 | Covered | T1,T8,T29 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T8,T29 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T1,T8,T29 |
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 |
5045782 |
6669 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
6782 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
51 |
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 | T1,T8,T29 |
1 | 0 | Covered | T1,T8,T29 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T8,T29 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T1,T8,T29 |
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 |
1237025007 |
6777 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
6777 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
51 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
6669 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
6783 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
6779 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
6779 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
6696 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
6806 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
6798 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
6798 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
6892 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
7004 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
6998 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
6998 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T88 |
0 |
51 |
0 |
0 |
T89 |
0 |
51 |
0 |
0 |
T90 |
415 |
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: T1 T8 T29
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 | T1,T8,T29 |
1 | 0 | Covered | T1,T8,T29 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T8,T29 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T8,T29 |
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 |
5045782 |
1188 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1298 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
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 | T1,T8,T29 |
1 | 0 | Covered | T1,T8,T29 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T1,T8,T29 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T8,T29 |
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 |
1237025007 |
1292 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
0 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1292 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
0 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T84 |
0 |
1 |
0 |
0 |
T85 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1146 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1257 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1252 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1252 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1098 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1209 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1202 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1202 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1164 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1273 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1267 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1267 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T88 |
0 |
1 |
0 |
0 |
T89 |
0 |
1 |
0 |
0 |
T90 |
415 |
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 T2 T7
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T31 |
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,T7 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T1,T2,T7 |
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 |
5045782 |
7205 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
7312 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T31 |
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,T7 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T1,T2,T7 |
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 |
1237025007 |
7306 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
7306 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
11 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
7152 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
7260 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
7255 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
7255 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
54 |
0 |
0 |
T37 |
0 |
67 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
62 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
7166 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
7279 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
7273 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
7273 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
74 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
63 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
65 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
7379 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
7488 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
7484 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
7484 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
11 |
0 |
0 |
T30 |
0 |
11 |
0 |
0 |
T31 |
0 |
66 |
0 |
0 |
T37 |
0 |
94 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
73 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
51 |
0 |
0 |
T86 |
0 |
84 |
0 |
0 |
T87 |
0 |
51 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T2 T7
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T274 |
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,T7 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T7 |
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 |
5045782 |
1681 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1790 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T274 |
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,T7 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T7 |
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 |
1237025007 |
1783 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1783 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1632 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1740 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1734 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1734 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1642 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1750 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1744 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1744 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1656 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1764 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1758 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1758 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T2 T7
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T274 |
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,T7 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T7 |
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 |
5045782 |
1691 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1794 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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,T2,T7 |
1 | 0 | Covered | T1,T2,T7 |
1 | 1 | Covered | T24,T30,T274 |
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,T7 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T1,T2,T7 |
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 |
1237025007 |
1787 |
0 |
0 |
T1 |
63618 |
1 |
0 |
0 |
T2 |
118961 |
1 |
0 |
0 |
T3 |
117509 |
0 |
0 |
0 |
T4 |
30650 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
51830 |
0 |
0 |
0 |
T13 |
211429 |
0 |
0 |
0 |
T14 |
91412 |
0 |
0 |
0 |
T15 |
243722 |
0 |
0 |
0 |
T16 |
160902 |
0 |
0 |
0 |
T17 |
32710 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1787 |
0 |
0 |
T1 |
509 |
1 |
0 |
0 |
T2 |
485 |
1 |
0 |
0 |
T3 |
1755 |
0 |
0 |
0 |
T4 |
510 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
0 |
1 |
0 |
0 |
T12 |
450 |
0 |
0 |
0 |
T13 |
422 |
0 |
0 |
0 |
T14 |
761 |
0 |
0 |
0 |
T15 |
492 |
0 |
0 |
0 |
T16 |
670 |
0 |
0 |
0 |
T17 |
408 |
0 |
0 |
0 |
T24 |
0 |
9 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T57 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1647 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1758 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1752 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1752 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1640 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1752 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1745 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1745 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
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 T30 T31
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
5045782 |
1637 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1237025007 |
1748 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
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,T30,T31 |
1 | 0 | Covered | T24,T30,T31 |
1 | 1 | Covered | T24,T30,T274 |
LINE 97
EXPRESSION (dst_level_q ^ dst_level)
-----1----- ----2----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T4,T2 |
0 | 1 | Covered | T24,T30,T31 |
1 | 0 | Covered | T24,T30,T274 |
1 | 1 | Covered | T24,T30,T31 |
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 |
1237025007 |
1743 |
0 |
0 |
T10 |
460207 |
0 |
0 |
0 |
T11 |
335211 |
0 |
0 |
0 |
T24 |
845686 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
57704 |
0 |
0 |
0 |
T56 |
84396 |
0 |
0 |
0 |
T64 |
50595 |
0 |
0 |
0 |
T65 |
51023 |
0 |
0 |
0 |
T73 |
118680 |
0 |
0 |
0 |
T82 |
34502 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
197412 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |
SrcPulseCheck_M
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
5045782 |
1743 |
0 |
0 |
T10 |
1200 |
0 |
0 |
0 |
T11 |
684 |
0 |
0 |
0 |
T24 |
7077 |
9 |
0 |
0 |
T30 |
0 |
9 |
0 |
0 |
T31 |
0 |
4 |
0 |
0 |
T37 |
0 |
8 |
0 |
0 |
T40 |
0 |
3 |
0 |
0 |
T52 |
0 |
6 |
0 |
0 |
T55 |
461 |
0 |
0 |
0 |
T56 |
674 |
0 |
0 |
0 |
T64 |
405 |
0 |
0 |
0 |
T65 |
425 |
0 |
0 |
0 |
T73 |
493 |
0 |
0 |
0 |
T82 |
530 |
0 |
0 |
0 |
T85 |
0 |
1 |
0 |
0 |
T86 |
0 |
3 |
0 |
0 |
T87 |
0 |
1 |
0 |
0 |
T90 |
415 |
0 |
0 |
0 |
T91 |
0 |
4 |
0 |
0 |