Line Coverage for Instance : tb.dut.u_sysrst_ctrl_autoblock.u_sysrst_ctrl_detect
| Line No. | Total | Covered | Percent |
TOTAL | | 46 | 46 | 100.00 |
CONT_ASSIGN | 58 | 1 | 1 | 100.00 |
ALWAYS | 69 | 3 | 3 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 32 | 100.00 |
ALWAYS | 219 | 3 | 3 | 100.00 |
57 if (EventType inside {LowLevel, EdgeToLow}) begin : gen_trigger_active_low
58 1/1 assign trigger_active = (trigger_i == 1'b0);
Tests: T4 T5 T13
59 end else begin : gen_trigger_active_high
60 assign trigger_active = (trigger_i == 1'b1);
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
70 1/1 trigger_active_q <= 1'b0;
Tests: T1 T4 T5
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T1 T4 T5
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T1 T4 T5
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 assign trigger_event = trigger_active;
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T16 T27 T28
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T16 T27 T28
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T16 T27 T28
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T1 T4 T5
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T1 T4 T5
129 1/1 cnt_en = 1'b0;
Tests: T1 T4 T5
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T1 T4 T5
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T1 T4 T5
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T1 T4 T5
139
140 1/1 unique case (state_q)
Tests: T1 T4 T5
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T1 T4 T5
148 1/1 state_d = DebounceSt;
Tests: T16 T27 T28
149 1/1 cnt_en = 1'b1;
Tests: T16 T27 T28
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T16 T27 T28
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T16 T27 T28
163 1/1 state_d = IdleSt;
Tests: T55
164 1/1 cnt_clr = 1'b1;
Tests: T55
165 1/1 end else if (cnt_done) begin
Tests: T16 T27 T28
166 1/1 cnt_clr = 1'b1;
Tests: T16 T27 T28
167 1/1 if (trigger_active) begin
Tests: T16 T27 T28
168 1/1 state_d = DetectSt;
Tests: T16 T27 T28
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T62 T146 T147
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T16 T27 T28
182 1/1 cnt_en = 1'b1;
Tests: T16 T27 T28
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T16 T27 T28
186 1/1 state_d = IdleSt;
Tests: T96 T105 T106
187 1/1 cnt_clr = 1'b1;
Tests: T96 T105 T106
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T16 T27 T28
191 1/1 state_d = StableSt;
Tests: T16 T27 T28
192 1/1 cnt_clr = 1'b1;
Tests: T16 T27 T28
193 1/1 event_detected_o = 1'b1;
Tests: T16 T27 T28
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T16 T27 T28
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T16 T27 T28
206 1/1 state_d = IdleSt;
Tests: T16 T27 T28
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T16 T27 T28
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_autoblock.u_sysrst_ctrl_detect
| Total | Covered | Percent |
Conditions | 22 | 21 | 95.45 |
Logical | 22 | 21 | 95.45 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 58
EXPRESSION (trigger_i == 1'b0)
---------1---------
-1- | Status | Tests |
0 | Covered | T4,T5,T13 |
1 | Covered | T1,T4,T5 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T4,T5,T13 |
1 | 0 | Covered | T1,T4,T5 |
1 | 1 | Covered | T1,T4,T5 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T16,T27,T28 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T16,T27,T28 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T16,T27,T28 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T16,T27,T28 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T16,T27,T28 |
0 | 1 | Covered | T96,T105,T106 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active)) && ((!Sticky))))
--------1-------- ------------------2-----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T16,T27,T28 |
0 | 1 | Covered | T16,T27,T28 |
1 | 0 | Covered | T12 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T16,T27,T28 |
1 | - | Covered | T16,T27,T28 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_autoblock.u_sysrst_ctrl_detect
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
6 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T16,T27,T28 |
DetectSt |
168 |
Covered |
T16,T27,T28 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T16,T27,T28 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T16,T27,T28 |
DebounceSt->IdleSt |
163 |
Covered |
T62,T55,T146 |
DetectSt->IdleSt |
186 |
Covered |
T96,T105,T106 |
DetectSt->StableSt |
191 |
Covered |
T16,T27,T28 |
IdleSt->DebounceSt |
148 |
Covered |
T16,T27,T28 |
StableSt->IdleSt |
206 |
Covered |
T16,T27,T28 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_autoblock.u_sysrst_ctrl_detect
| Line No. | Total | Covered | Percent |
Branches |
|
21 |
21 |
100.00 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
10 |
100.00 |
IF |
219 |
2 |
2 |
100.00 |
IF |
69 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T16,T27,T28 |
0 |
1 |
Covered |
T16,T27,T28 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T16,T27,T28 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T16,T27,T28 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T1,T4,T5 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T16,T27,T28 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T62,T146,T147 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T16,T27,T28 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T96,T105,T106 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T16,T27,T28 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T16,T27,T28 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T16,T27,T28 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
69 if (!rst_ni) begin
-1-
70 trigger_active_q <= 1'b0;
==>
71 end else begin
72 trigger_active_q <= trigger_active;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_autoblock.u_sysrst_ctrl_detect
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
198 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T16 |
674 |
4 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
2 |
0 |
0 |
T28 |
0 |
2 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T59 |
0 |
2 |
0 |
0 |
T60 |
0 |
2 |
0 |
0 |
T61 |
0 |
6 |
0 |
0 |
T62 |
0 |
3 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
4 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
77956 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
26 |
0 |
0 |
T16 |
674 |
99 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
24 |
0 |
0 |
T28 |
0 |
50 |
0 |
0 |
T58 |
0 |
28 |
0 |
0 |
T59 |
0 |
19 |
0 |
0 |
T60 |
0 |
78 |
0 |
0 |
T61 |
0 |
143 |
0 |
0 |
T62 |
0 |
173 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
82 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893446 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
269 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
3 |
0 |
0 |
T93 |
5318 |
0 |
0 |
0 |
T96 |
622 |
1 |
0 |
0 |
T105 |
0 |
1 |
0 |
0 |
T106 |
0 |
1 |
0 |
0 |
T121 |
1467 |
0 |
0 |
0 |
T122 |
493 |
0 |
0 |
0 |
T123 |
522 |
0 |
0 |
0 |
T124 |
628 |
0 |
0 |
0 |
T125 |
8402 |
0 |
0 |
0 |
T126 |
412 |
0 |
0 |
0 |
T127 |
500 |
0 |
0 |
0 |
T128 |
403 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
595 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T16 |
674 |
8 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
4 |
0 |
0 |
T28 |
0 |
11 |
0 |
0 |
T58 |
0 |
3 |
0 |
0 |
T59 |
0 |
3 |
0 |
0 |
T60 |
0 |
7 |
0 |
0 |
T61 |
0 |
27 |
0 |
0 |
T62 |
0 |
7 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
7 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
90 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6811238 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
98 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6813053 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
98 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
106 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
93 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
90 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
90 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
505 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T16 |
674 |
6 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
10 |
0 |
0 |
T58 |
0 |
2 |
0 |
0 |
T59 |
0 |
2 |
0 |
0 |
T60 |
0 |
6 |
0 |
0 |
T61 |
0 |
24 |
0 |
0 |
T62 |
0 |
6 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
5 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5593 |
0 |
0 |
T2 |
483 |
0 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T4 |
447 |
5 |
0 |
0 |
T5 |
496 |
7 |
0 |
0 |
T6 |
0 |
7 |
0 |
0 |
T13 |
422 |
2 |
0 |
0 |
T14 |
523 |
6 |
0 |
0 |
T15 |
708 |
0 |
0 |
0 |
T16 |
674 |
3 |
0 |
0 |
T17 |
1522 |
1 |
0 |
0 |
T18 |
497 |
7 |
0 |
0 |
T26 |
0 |
4 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
89 |
0 |
0 |
T3 |
709 |
0 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T16 |
674 |
2 |
0 |
0 |
T17 |
1522 |
0 |
0 |
0 |
T18 |
497 |
0 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
0 |
1 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T58 |
0 |
1 |
0 |
0 |
T59 |
0 |
1 |
0 |
0 |
T60 |
0 |
1 |
0 |
0 |
T61 |
0 |
3 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
T138 |
0 |
2 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_pwrb
| Line No. | Total | Covered | Percent |
TOTAL | | 46 | 46 | 100.00 |
CONT_ASSIGN | 58 | 1 | 1 | 100.00 |
ALWAYS | 69 | 3 | 3 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 32 | 100.00 |
ALWAYS | 219 | 3 | 3 | 100.00 |
57 if (EventType inside {LowLevel, EdgeToLow}) begin : gen_trigger_active_low
58 1/1 assign trigger_active = (trigger_i == 1'b0);
Tests: T4 T5 T13
59 end else begin : gen_trigger_active_high
60 assign trigger_active = (trigger_i == 1'b1);
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
70 1/1 trigger_active_q <= 1'b0;
Tests: T1 T4 T5
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T1 T4 T5
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T1 T4 T5
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 assign trigger_event = trigger_active;
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T6 T12 T19
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T6 T12 T19
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T6 T12 T19
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T1 T4 T5
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T1 T4 T5
129 1/1 cnt_en = 1'b0;
Tests: T1 T4 T5
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T1 T4 T5
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T1 T4 T5
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T1 T4 T5
139
140 1/1 unique case (state_q)
Tests: T1 T4 T5
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T1 T4 T5
148 1/1 state_d = DebounceSt;
Tests: T6 T12 T19
149 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T6 T12 T19
163 1/1 state_d = IdleSt;
Tests: T12 T55
164 1/1 cnt_clr = 1'b1;
Tests: T12 T55
165 1/1 end else if (cnt_done) begin
Tests: T6 T12 T19
166 1/1 cnt_clr = 1'b1;
Tests: T6 T19 T38
167 1/1 if (trigger_active) begin
Tests: T6 T19 T38
168 1/1 state_d = DetectSt;
Tests: T6 T19 T38
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T19 T71 T72
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T6 T19 T38
182 1/1 cnt_en = 1'b1;
Tests: T6 T19 T38
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T6 T19 T38
186 1/1 state_d = IdleSt;
Tests: T6 T97 T108
187 1/1 cnt_clr = 1'b1;
Tests: T6 T97 T108
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T19 T38 T69
191 1/1 state_d = StableSt;
Tests: T19 T38 T69
192 1/1 cnt_clr = 1'b1;
Tests: T19 T38 T69
193 1/1 event_detected_o = 1'b1;
Tests: T19 T38 T69
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T19 T38 T69
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T19 T38 T69
206 1/1 state_d = IdleSt;
Tests: T19 T38 T69
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T19 T38 T69
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_pwrb
| Total | Covered | Percent |
Conditions | 19 | 18 | 94.74 |
Logical | 19 | 18 | 94.74 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 58
EXPRESSION (trigger_i == 1'b0)
---------1---------
-1- | Status | Tests |
0 | Covered | T4,T5,T13 |
1 | Covered | T1,T4,T5 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T4,T5,T13 |
1 | 0 | Covered | T1,T4,T5 |
1 | 1 | Covered | T1,T4,T5 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T19,T38 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T6,T12,T19 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T6,T12,T19 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T19,T38,T69 |
0 | 1 | Covered | T6,T97,T108 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T19,T38,T69 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T19,T38,T69 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_pwrb
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
6 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T6,T12,T19 |
DetectSt |
168 |
Covered |
T6,T19,T38 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T19,T38,T69 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T6,T19,T38 |
DebounceSt->IdleSt |
163 |
Covered |
T12,T19,T71 |
DetectSt->IdleSt |
186 |
Covered |
T6,T97,T108 |
DetectSt->StableSt |
191 |
Covered |
T19,T38,T69 |
IdleSt->DebounceSt |
148 |
Covered |
T6,T12,T19 |
StableSt->IdleSt |
206 |
Covered |
T19,T38,T69 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_pwrb
| Line No. | Total | Covered | Percent |
Branches |
|
21 |
21 |
100.00 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
10 |
100.00 |
IF |
219 |
2 |
2 |
100.00 |
IF |
69 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T6,T12,T19 |
0 |
1 |
Covered |
T6,T12,T19 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T6,T19,T38 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T1,T4,T5 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T12,T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T6,T19,T38 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T19,T71,T72 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T6,T97,T108 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T19,T38,T69 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T19,T38,T69 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T19,T38,T69 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
69 if (!rst_ni) begin
-1-
70 trigger_active_q <= 1'b0;
==>
71 end else begin
72 trigger_active_q <= trigger_active;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_pwrb
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
146 |
0 |
0 |
T6 |
1143 |
4 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
5 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
4 |
0 |
0 |
T70 |
0 |
2 |
0 |
0 |
T71 |
0 |
6 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
T73 |
0 |
4 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
118600 |
0 |
0 |
T6 |
1143 |
160 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
52 |
0 |
0 |
T19 |
0 |
228 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
164 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
142 |
0 |
0 |
T70 |
0 |
86 |
0 |
0 |
T71 |
0 |
450 |
0 |
0 |
T72 |
0 |
94 |
0 |
0 |
T73 |
0 |
110 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
86 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893498 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
15 |
0 |
0 |
T6 |
1143 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T97 |
0 |
4 |
0 |
0 |
T100 |
0 |
1 |
0 |
0 |
T101 |
0 |
2 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T148 |
0 |
1 |
0 |
0 |
T149 |
0 |
1 |
0 |
0 |
T150 |
0 |
3 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
495861 |
0 |
0 |
T19 |
1687 |
310 |
0 |
0 |
T38 |
454044 |
502 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
811 |
0 |
0 |
T70 |
0 |
286 |
0 |
0 |
T73 |
0 |
859 |
0 |
0 |
T79 |
0 |
314 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
35 |
0 |
0 |
T108 |
0 |
253 |
0 |
0 |
T140 |
0 |
301 |
0 |
0 |
T141 |
0 |
46611 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
40 |
0 |
0 |
T19 |
1687 |
2 |
0 |
0 |
T38 |
454044 |
2 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5356981 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5358837 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
92 |
0 |
0 |
T6 |
1143 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
6 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
55 |
0 |
0 |
T6 |
1143 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T97 |
0 |
4 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
40 |
0 |
0 |
T19 |
1687 |
2 |
0 |
0 |
T38 |
454044 |
2 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
40 |
0 |
0 |
T19 |
1687 |
2 |
0 |
0 |
T38 |
454044 |
2 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
495821 |
0 |
0 |
T19 |
1687 |
308 |
0 |
0 |
T38 |
454044 |
500 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
809 |
0 |
0 |
T70 |
0 |
285 |
0 |
0 |
T73 |
0 |
857 |
0 |
0 |
T79 |
0 |
313 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
34 |
0 |
0 |
T108 |
0 |
252 |
0 |
0 |
T140 |
0 |
299 |
0 |
0 |
T141 |
0 |
46610 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5593 |
0 |
0 |
T2 |
483 |
0 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T4 |
447 |
5 |
0 |
0 |
T5 |
496 |
7 |
0 |
0 |
T6 |
0 |
7 |
0 |
0 |
T13 |
422 |
2 |
0 |
0 |
T14 |
523 |
6 |
0 |
0 |
T15 |
708 |
0 |
0 |
0 |
T16 |
674 |
3 |
0 |
0 |
T17 |
1522 |
1 |
0 |
0 |
T18 |
497 |
7 |
0 |
0 |
T26 |
0 |
4 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
918418 |
0 |
0 |
T19 |
1687 |
571 |
0 |
0 |
T38 |
454044 |
329193 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
149 |
0 |
0 |
T70 |
0 |
124 |
0 |
0 |
T73 |
0 |
642 |
0 |
0 |
T79 |
0 |
93409 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
31 |
0 |
0 |
T108 |
0 |
176 |
0 |
0 |
T140 |
0 |
409 |
0 |
0 |
T141 |
0 |
31 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_lid_open
| Line No. | Total | Covered | Percent |
TOTAL | | 46 | 46 | 100.00 |
CONT_ASSIGN | 60 | 1 | 1 | 100.00 |
ALWAYS | 69 | 3 | 3 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 32 | 100.00 |
ALWAYS | 219 | 3 | 3 | 100.00 |
59 end else begin : gen_trigger_active_high
60 1/1 assign trigger_active = (trigger_i == 1'b1);
Tests: T4 T5 T13
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
70 1/1 trigger_active_q <= 1'b0;
Tests: T1 T4 T5
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T1 T4 T5
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T4 T5 T13
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 assign trigger_event = trigger_active;
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T6 T12 T19
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T6 T12 T19
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T6 T12 T19
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T4 T5 T13
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T13
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T13
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T13
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T13
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T13
139
140 1/1 unique case (state_q)
Tests: T4 T5 T13
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T4 T5 T13
148 1/1 state_d = DebounceSt;
Tests: T6 T12 T19
149 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T6 T12 T19
163 1/1 state_d = IdleSt;
Tests: T12 T55
164 1/1 cnt_clr = 1'b1;
Tests: T12 T55
165 1/1 end else if (cnt_done) begin
Tests: T6 T12 T19
166 1/1 cnt_clr = 1'b1;
Tests: T6 T19 T38
167 1/1 if (trigger_active) begin
Tests: T6 T19 T38
168 1/1 state_d = DetectSt;
Tests: T6 T19 T38
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T38 T69 T70
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T6 T19 T38
182 1/1 cnt_en = 1'b1;
Tests: T6 T19 T38
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T6 T19 T38
186 1/1 state_d = IdleSt;
Tests: T38 T69 T71
187 1/1 cnt_clr = 1'b1;
Tests: T38 T69 T71
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T6 T19 T38
191 1/1 state_d = StableSt;
Tests: T6 T19 T38
192 1/1 cnt_clr = 1'b1;
Tests: T6 T19 T38
193 1/1 event_detected_o = 1'b1;
Tests: T6 T19 T38
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T6 T19 T38
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T6 T19 T38
206 1/1 state_d = IdleSt;
Tests: T6 T19 T38
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T6 T19 T38
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_lid_open
| Total | Covered | Percent |
Conditions | 19 | 18 | 94.74 |
Logical | 19 | 18 | 94.74 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 60
EXPRESSION (trigger_i == 1'b1)
---------1---------
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T4,T5,T13 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T4,T5 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T4,T5,T13 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T19,T38 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T6,T12,T19 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T6,T12,T19 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T19,T38 |
0 | 1 | Covered | T38,T69,T71 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T19,T38 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T6,T19,T38 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_lid_open
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
6 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T6,T12,T19 |
DetectSt |
168 |
Covered |
T6,T19,T38 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T6,T19,T38 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T6,T19,T38 |
DebounceSt->IdleSt |
163 |
Covered |
T12,T38,T69 |
DetectSt->IdleSt |
186 |
Covered |
T38,T69,T71 |
DetectSt->StableSt |
191 |
Covered |
T6,T19,T38 |
IdleSt->DebounceSt |
148 |
Covered |
T6,T12,T19 |
StableSt->IdleSt |
206 |
Covered |
T6,T19,T38 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_lid_open
| Line No. | Total | Covered | Percent |
Branches |
|
21 |
21 |
100.00 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
10 |
100.00 |
IF |
219 |
2 |
2 |
100.00 |
IF |
69 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T6,T12,T19 |
0 |
1 |
Covered |
T6,T12,T19 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T6,T19,T38 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T13 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T12,T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T6,T19,T38 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T38,T69,T70 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T38,T69,T71 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T6,T19,T38 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T6,T19,T38 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T6,T19,T38 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
69 if (!rst_ni) begin
-1-
70 trigger_active_q <= 1'b0;
==>
71 end else begin
72 trigger_active_q <= trigger_active;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_lid_open
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
168 |
0 |
0 |
T6 |
1143 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
4 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
11 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
15 |
0 |
0 |
T70 |
0 |
4 |
0 |
0 |
T71 |
0 |
8 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
T73 |
0 |
4 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
619883 |
0 |
0 |
T6 |
1143 |
22 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
54 |
0 |
0 |
T19 |
0 |
164 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
247278 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
729 |
0 |
0 |
T70 |
0 |
228 |
0 |
0 |
T71 |
0 |
152 |
0 |
0 |
T72 |
0 |
92 |
0 |
0 |
T73 |
0 |
24 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
82 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893476 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
19 |
0 |
0 |
T38 |
454044 |
4 |
0 |
0 |
T57 |
438 |
0 |
0 |
0 |
T58 |
629 |
0 |
0 |
0 |
T69 |
2117 |
6 |
0 |
0 |
T70 |
952 |
0 |
0 |
0 |
T71 |
0 |
3 |
0 |
0 |
T91 |
461 |
0 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T142 |
746 |
0 |
0 |
0 |
T143 |
422 |
0 |
0 |
0 |
T144 |
1100 |
0 |
0 |
0 |
T145 |
405 |
0 |
0 |
0 |
T151 |
0 |
5 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
402059 |
0 |
0 |
T6 |
1143 |
25 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
886 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
82430 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
79 |
0 |
0 |
T72 |
0 |
220 |
0 |
0 |
T73 |
0 |
139 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
260 |
0 |
0 |
T108 |
0 |
467 |
0 |
0 |
T139 |
0 |
18 |
0 |
0 |
T141 |
0 |
52 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
41 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5356981 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5358837 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
109 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
6 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
9 |
0 |
0 |
T70 |
0 |
4 |
0 |
0 |
T71 |
0 |
4 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
60 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
5 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
6 |
0 |
0 |
T71 |
0 |
4 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T99 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
41 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
41 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
1 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
2 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T141 |
0 |
1 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
402018 |
0 |
0 |
T6 |
1143 |
24 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
884 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
82429 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
78 |
0 |
0 |
T72 |
0 |
219 |
0 |
0 |
T73 |
0 |
137 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
259 |
0 |
0 |
T108 |
0 |
466 |
0 |
0 |
T139 |
0 |
16 |
0 |
0 |
T141 |
0 |
51 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
205453 |
0 |
0 |
T6 |
1143 |
155 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
163 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
63 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T71 |
0 |
168 |
0 |
0 |
T72 |
0 |
125 |
0 |
0 |
T73 |
0 |
1456 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
93485 |
0 |
0 |
T108 |
0 |
113 |
0 |
0 |
T139 |
0 |
96 |
0 |
0 |
T141 |
0 |
96080 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_ac_present
| Line No. | Total | Covered | Percent |
TOTAL | | 43 | 43 | 100.00 |
CONT_ASSIGN | 60 | 1 | 1 | 100.00 |
CONT_ASSIGN | 79 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 32 | 100.00 |
ALWAYS | 219 | 3 | 3 | 100.00 |
59 end else begin : gen_trigger_active_high
60 1/1 assign trigger_active = (trigger_i == 1'b1);
Tests: T4 T5 T13
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 if (!rst_ni) begin
70 trigger_active_q <= 1'b0;
71 end else begin
72 trigger_active_q <= trigger_active;
73 end
74 end
75
76 assign trigger_event = trigger_active & ~trigger_active_q;
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 1/1 assign trigger_event = trigger_active;
Tests: T4 T5 T13
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T6 T12 T19
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T6 T12 T19
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T6 T12 T19
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T4 T5 T13
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T13
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T13
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T13
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T13
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T13
139
140 1/1 unique case (state_q)
Tests: T4 T5 T13
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T4 T5 T13
148 1/1 state_d = DebounceSt;
Tests: T6 T12 T19
149 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T6 T12 T19
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T6 T12 T19
163 1/1 state_d = IdleSt;
Tests: T12 T55
164 1/1 cnt_clr = 1'b1;
Tests: T12 T55
165 1/1 end else if (cnt_done) begin
Tests: T6 T12 T19
166 1/1 cnt_clr = 1'b1;
Tests: T6 T19 T38
167 1/1 if (trigger_active) begin
Tests: T6 T19 T38
168 1/1 state_d = DetectSt;
Tests: T6 T19 T38
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T73 T97 T98
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T6 T19 T38
182 1/1 cnt_en = 1'b1;
Tests: T6 T19 T38
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T6 T19 T38
186 1/1 state_d = IdleSt;
Tests: T99 T100 T101
187 1/1 cnt_clr = 1'b1;
Tests: T99 T100 T101
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T6 T19 T38
191 1/1 state_d = StableSt;
Tests: T6 T19 T38
192 1/1 cnt_clr = 1'b1;
Tests: T6 T19 T38
193 1/1 event_detected_o = 1'b1;
Tests: T6 T19 T38
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T6 T19 T38
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T6 T19 T38
206 1/1 state_d = IdleSt;
Tests: T6 T19 T38
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T6 T19 T38
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_ac_present
| Total | Covered | Percent |
Conditions | 16 | 15 | 93.75 |
Logical | 16 | 15 | 93.75 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 60
EXPRESSION (trigger_i == 1'b1)
---------1---------
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T4,T5,T13 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T12,T19 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T6,T19,T38 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T6,T12,T19 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T6,T12,T19 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T19,T38 |
0 | 1 | Covered | T99,T100,T101 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T19,T38 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T6,T19,T38 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_ac_present
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
6 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T6,T12,T19 |
DetectSt |
168 |
Covered |
T6,T19,T38 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T6,T19,T38 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T6,T19,T38 |
DebounceSt->IdleSt |
163 |
Covered |
T12,T73,T55 |
DetectSt->IdleSt |
186 |
Covered |
T99,T100,T101 |
DetectSt->StableSt |
191 |
Covered |
T6,T19,T38 |
IdleSt->DebounceSt |
148 |
Covered |
T6,T12,T19 |
StableSt->IdleSt |
206 |
Covered |
T6,T19,T38 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_ac_present
| Line No. | Total | Covered | Percent |
Branches |
|
19 |
19 |
100.00 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
10 |
100.00 |
IF |
219 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T6,T12,T19 |
0 |
1 |
Covered |
T6,T12,T19 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T6,T19,T38 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T13 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T12,T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T6,T19,T38 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T73,T97,T98 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T6,T12,T19 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T99,T100,T101 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T6,T19,T38 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T6,T19,T38 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T6,T19,T38 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_ulp.u_sysrst_ctrl_detect_ac_present
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
147 |
0 |
0 |
T6 |
1143 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
4 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
4 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
4 |
0 |
0 |
T70 |
0 |
2 |
0 |
0 |
T71 |
0 |
4 |
0 |
0 |
T72 |
0 |
2 |
0 |
0 |
T73 |
0 |
5 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
29415 |
0 |
0 |
T6 |
1143 |
34 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
56 |
0 |
0 |
T19 |
0 |
104 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
84 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
86 |
0 |
0 |
T70 |
0 |
45 |
0 |
0 |
T71 |
0 |
80 |
0 |
0 |
T72 |
0 |
98 |
0 |
0 |
T73 |
0 |
285 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
17244 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893497 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
8 |
0 |
0 |
T39 |
26369 |
0 |
0 |
0 |
T94 |
5216 |
0 |
0 |
0 |
T99 |
1521 |
1 |
0 |
0 |
T100 |
0 |
5 |
0 |
0 |
T101 |
0 |
1 |
0 |
0 |
T151 |
0 |
1 |
0 |
0 |
T152 |
522 |
0 |
0 |
0 |
T153 |
492 |
0 |
0 |
0 |
T154 |
1127 |
0 |
0 |
0 |
T155 |
406 |
0 |
0 |
0 |
T156 |
422 |
0 |
0 |
0 |
T157 |
764 |
0 |
0 |
0 |
T158 |
1010 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
86060 |
0 |
0 |
T6 |
1143 |
47 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
559 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
361 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
666 |
0 |
0 |
T70 |
0 |
162 |
0 |
0 |
T71 |
0 |
264 |
0 |
0 |
T72 |
0 |
292 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
76539 |
0 |
0 |
T139 |
0 |
45 |
0 |
0 |
T140 |
0 |
144 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
38 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5356981 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
5358837 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
102 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T73 |
0 |
5 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
46 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
38 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
38 |
0 |
0 |
T6 |
1143 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
2 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
2 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
2 |
0 |
0 |
T70 |
0 |
1 |
0 |
0 |
T71 |
0 |
2 |
0 |
0 |
T72 |
0 |
1 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T139 |
0 |
2 |
0 |
0 |
T140 |
0 |
2 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
86022 |
0 |
0 |
T6 |
1143 |
46 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
557 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
359 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
664 |
0 |
0 |
T70 |
0 |
161 |
0 |
0 |
T71 |
0 |
262 |
0 |
0 |
T72 |
0 |
291 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
76538 |
0 |
0 |
T139 |
0 |
43 |
0 |
0 |
T140 |
0 |
142 |
0 |
0 |
gen_high_event_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
1259885 |
0 |
0 |
T6 |
1143 |
132 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T19 |
0 |
561 |
0 |
0 |
T25 |
506 |
0 |
0 |
0 |
T38 |
0 |
329429 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T69 |
0 |
377 |
0 |
0 |
T70 |
0 |
308 |
0 |
0 |
T71 |
0 |
239 |
0 |
0 |
T72 |
0 |
59 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T77 |
406 |
0 |
0 |
0 |
T79 |
0 |
46 |
0 |
0 |
T139 |
0 |
124 |
0 |
0 |
T140 |
0 |
706 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_l2h
| Line No. | Total | Covered | Percent |
TOTAL | | 46 | 44 | 95.65 |
CONT_ASSIGN | 60 | 1 | 1 | 100.00 |
ALWAYS | 69 | 3 | 3 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 30 | 93.75 |
ALWAYS | 219 | 3 | 3 | 100.00 |
59 end else begin : gen_trigger_active_high
60 1/1 assign trigger_active = (trigger_i == 1'b1);
Tests: T1 T4 T5
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
70 1/1 trigger_active_q <= 1'b0;
Tests: T1 T4 T5
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T1 T4 T5
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T1 T4 T5
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 assign trigger_event = trigger_active;
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T11 T12 T45
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T1 T2 T3
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T1 T2 T3
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T1 T4 T5
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T1 T4 T5
129 1/1 cnt_en = 1'b0;
Tests: T1 T4 T5
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T1 T4 T5
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T1 T4 T5
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T1 T4 T5
139
140 1/1 unique case (state_q)
Tests: T1 T4 T5
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T1 T4 T5
148 1/1 state_d = DebounceSt;
Tests: T11 T12 T45
149 1/1 cnt_en = 1'b1;
Tests: T11 T12 T45
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T11 T12 T45
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T11 T12 T45
163 1/1 state_d = IdleSt;
Tests: T55
164 1/1 cnt_clr = 1'b1;
Tests: T55
165 1/1 end else if (cnt_done) begin
Tests: T11 T12 T45
166 1/1 cnt_clr = 1'b1;
Tests: T11 T12 T45
167 1/1 if (trigger_active) begin
Tests: T11 T12 T45
168 1/1 state_d = DetectSt;
Tests: T11 T12 T45
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T53 T159
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T11 T12 T45
182 1/1 cnt_en = 1'b1;
Tests: T11 T12 T45
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T11 T12 T45
186 0/1 ==> state_d = IdleSt;
187 0/1 ==> cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T11 T12 T45
191 1/1 state_d = StableSt;
Tests: T11 T12 T45
192 1/1 cnt_clr = 1'b1;
Tests: T11 T12 T45
193 1/1 event_detected_o = 1'b1;
Tests: T11 T12 T45
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T11 T12 T45
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T11 T12 T45
206 1/1 state_d = IdleSt;
Tests: T12 T45 T49
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T11 T12 T45
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_l2h
| Total | Covered | Percent |
Conditions | 22 | 20 | 90.91 |
Logical | 22 | 20 | 90.91 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 60
EXPRESSION (trigger_i == 1'b1)
---------1---------
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T1,T4,T5 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T4,T5 |
1 | 0 | Covered | T1,T4,T5 |
1 | 1 | Covered | T1,T4,T5 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T11,T12,T45 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T11,T12,T45 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T11,T12,T45 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T3,T7,T11 |
1 | 0 | Covered | T1,T4,T5 |
1 | 1 | Covered | T11,T12,T45 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T11,T12,T45 |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active)) && ((!Sticky))))
--------1-------- ------------------2-----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T11,T12,T45 |
0 | 1 | Covered | T45,T49,T160 |
1 | 0 | Covered | T12 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T11,T12,T45 |
1 | - | Covered | T45,T49,T160 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_l2h
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
5 |
83.33 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T11,T12,T45 |
DetectSt |
168 |
Covered |
T11,T12,T45 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T11,T12,T45 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T11,T12,T45 |
DebounceSt->IdleSt |
163 |
Covered |
T53,T55,T159 |
DetectSt->IdleSt |
186 |
Not Covered |
|
DetectSt->StableSt |
191 |
Covered |
T11,T12,T45 |
IdleSt->DebounceSt |
148 |
Covered |
T11,T12,T45 |
StableSt->IdleSt |
206 |
Covered |
T12,T45,T49 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_l2h
| Line No. | Total | Covered | Percent |
Branches |
|
21 |
20 |
95.24 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
9 |
90.00 |
IF |
219 |
2 |
2 |
100.00 |
IF |
69 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T11,T12,T45 |
0 |
1 |
Covered |
T11,T12,T45 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T11,T12,T45 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T11,T12,T45 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T1,T4,T5 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T11,T12,T45 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T53,T159 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T11,T12,T45 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Not Covered |
|
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T11,T12,T45 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T12,T45,T49 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T11,T12,T45 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
69 if (!rst_ni) begin
-1-
70 trigger_active_q <= 1'b0;
==>
71 end else begin
72 trigger_active_q <= trigger_active;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_l2h
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
47 |
0 |
0 |
T11 |
694 |
2 |
0 |
0 |
T12 |
7268 |
2 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
2 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T51 |
0 |
2 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
4 |
0 |
0 |
T161 |
0 |
2 |
0 |
0 |
T162 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
1095 |
0 |
0 |
T11 |
694 |
42 |
0 |
0 |
T12 |
7268 |
15 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
95 |
0 |
0 |
T49 |
0 |
27 |
0 |
0 |
T51 |
0 |
46 |
0 |
0 |
T53 |
0 |
11 |
0 |
0 |
T55 |
0 |
27 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
108 |
0 |
0 |
T161 |
0 |
34 |
0 |
0 |
T162 |
0 |
88 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893597 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
1190 |
0 |
0 |
T11 |
694 |
43 |
0 |
0 |
T12 |
7268 |
20 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
93 |
0 |
0 |
T49 |
0 |
43 |
0 |
0 |
T51 |
0 |
86 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
82 |
0 |
0 |
T161 |
0 |
41 |
0 |
0 |
T162 |
0 |
52 |
0 |
0 |
T163 |
0 |
189 |
0 |
0 |
T164 |
0 |
95 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
22 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
1 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T51 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T161 |
0 |
1 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T164 |
0 |
2 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6716981 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6718805 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
25 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
1 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T51 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T161 |
0 |
1 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
22 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
1 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T51 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T161 |
0 |
1 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T164 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
22 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
1 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T51 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T161 |
0 |
1 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T164 |
0 |
2 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
22 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
1 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T51 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T161 |
0 |
1 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T164 |
0 |
2 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
1158 |
0 |
0 |
T11 |
694 |
41 |
0 |
0 |
T12 |
7268 |
19 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T45 |
0 |
92 |
0 |
0 |
T49 |
0 |
42 |
0 |
0 |
T51 |
0 |
84 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
79 |
0 |
0 |
T161 |
0 |
39 |
0 |
0 |
T162 |
0 |
50 |
0 |
0 |
T163 |
0 |
188 |
0 |
0 |
T164 |
0 |
92 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
11 |
0 |
0 |
T45 |
1176 |
1 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T60 |
714 |
0 |
0 |
0 |
T61 |
690 |
0 |
0 |
0 |
T82 |
495 |
0 |
0 |
0 |
T159 |
0 |
1 |
0 |
0 |
T160 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T164 |
0 |
1 |
0 |
0 |
T165 |
0 |
1 |
0 |
0 |
T166 |
0 |
1 |
0 |
0 |
T167 |
0 |
1 |
0 |
0 |
T168 |
0 |
1 |
0 |
0 |
T169 |
740 |
0 |
0 |
0 |
T170 |
529 |
0 |
0 |
0 |
T171 |
506 |
0 |
0 |
0 |
T172 |
422 |
0 |
0 |
0 |
T173 |
414 |
0 |
0 |
0 |
T174 |
405 |
0 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
| Line No. | Total | Covered | Percent |
TOTAL | | 46 | 44 | 95.65 |
CONT_ASSIGN | 58 | 1 | 1 | 100.00 |
ALWAYS | 69 | 3 | 3 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 92 | 1 | 1 | 100.00 |
CONT_ASSIGN | 99 | 1 | 1 | 100.00 |
CONT_ASSIGN | 101 | 1 | 1 | 100.00 |
ALWAYS | 104 | 3 | 3 | 100.00 |
ALWAYS | 125 | 32 | 30 | 93.75 |
ALWAYS | 219 | 3 | 3 | 100.00 |
57 if (EventType inside {LowLevel, EdgeToLow}) begin : gen_trigger_active_low
58 1/1 assign trigger_active = (trigger_i == 1'b0);
Tests: T1 T4 T5
59 end else begin : gen_trigger_active_high
60 assign trigger_active = (trigger_i == 1'b1);
61 end
62
63 // In case of edge events, we also need to detect the transition.
64 logic trigger_event;
65 if (EventType inside {EdgeToLow, EdgeToHigh}) begin : gen_trigger_event_edge
66 // This flop is always active, no matter the enable state.
67 logic trigger_active_q;
68 always_ff @(posedge clk_i or negedge rst_ni) begin : p_trigger_reg
69 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
70 1/1 trigger_active_q <= 1'b0;
Tests: T1 T4 T5
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T1 T4 T5
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T1 T4 T5
77 // In case of level events, the event is equal to the level being active.
78 end else begin : gen_trigger_event_level
79 assign trigger_event = trigger_active;
80 end
81
82 /////////////////
83 // Timer Logic //
84 /////////////////
85
86 // Take the maximum width of both timer values.
87 localparam int unsigned TimerWidth =
88 (DetectTimerWidth > DebounceTimerWidth) ? DetectTimerWidth : DebounceTimerWidth;
89
90 logic cnt_en, cnt_clr;
91 logic [TimerWidth-1:0] cnt_d, cnt_q;
92 1/1 assign cnt_d = (cnt_clr) ? '0 :
Tests: T3 T7 T11
93 (cnt_en) ? cnt_q + 1'b1 :
94 cnt_q;
95
96
97 logic cnt_done, thresh_sel;
98 logic [TimerWidth-1:0] thresh;
99 1/1 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
Tests: T1 T2 T3
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T1 T2 T3
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
105 1/1 cnt_q <= '0;
Tests: T1 T4 T5
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T1 T4 T5
108 end
109 end
110
111 /////////
112 // FSM //
113 /////////
114
115 typedef enum logic [1:0] {
116 IdleSt,
117 DebounceSt,
118 DetectSt,
119 StableSt
120 } state_t;
121
122 state_t state_d, state_q;
123
124 always_comb begin : p_fsm
125 1/1 state_d = state_q;
Tests: T1 T4 T5
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T1 T4 T5
129 1/1 cnt_en = 1'b0;
Tests: T1 T4 T5
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T1 T4 T5
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T1 T4 T5
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T1 T4 T5
139
140 1/1 unique case (state_q)
Tests: T1 T4 T5
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 1/1 if (trigger_event && cfg_enable_i) begin
Tests: T1 T4 T5
148 1/1 state_d = DebounceSt;
Tests: T3 T7 T11
149 1/1 cnt_en = 1'b1;
Tests: T3 T7 T11
150 end
MISSING_ELSE
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 1/1 cnt_en = 1'b1;
Tests: T3 T7 T11
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T3 T7 T11
163 1/1 state_d = IdleSt;
Tests: T55
164 1/1 cnt_clr = 1'b1;
Tests: T55
165 1/1 end else if (cnt_done) begin
Tests: T3 T7 T11
166 1/1 cnt_clr = 1'b1;
Tests: T3 T7 T11
167 1/1 if (trigger_active) begin
Tests: T3 T7 T11
168 1/1 state_d = DetectSt;
Tests: T3 T7 T11
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T175 T176
171 end
172 end
MISSING_ELSE
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 1/1 thresh_sel = 1'b1;
Tests: T3 T7 T11
182 1/1 cnt_en = 1'b1;
Tests: T3 T7 T11
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 1/1 if (!cfg_enable_i || !trigger_active) begin
Tests: T3 T7 T11
186 0/1 ==> state_d = IdleSt;
187 0/1 ==> cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T3 T7 T11
191 1/1 state_d = StableSt;
Tests: T3 T7 T11
192 1/1 cnt_clr = 1'b1;
Tests: T3 T7 T11
193 1/1 event_detected_o = 1'b1;
Tests: T3 T7 T11
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T3 T7 T11
195 end
==> MISSING_ELSE
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 1/1 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
Tests: T3 T7 T11
206 1/1 state_d = IdleSt;
Tests: T11 T12 T48
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T3 T7 T11
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
Exclude Annotation: VC_COV_UNR
215 endcase // state_q
216 end
217
218 always_ff @(posedge clk_i or negedge rst_ni) begin : p_fsm_reg
219 1/1 if (!rst_ni) begin
Tests: T1 T4 T5
220 1/1 state_q <= IdleSt;
Tests: T1 T4 T5
221 end else begin
222 1/1 state_q <= state_d;
Tests: T1 T4 T5
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
| Total | Covered | Percent |
Conditions | 22 | 20 | 90.91 |
Logical | 22 | 20 | 90.91 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 58
EXPRESSION (trigger_i == 1'b0)
---------1---------
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T1,T4,T5 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T4,T5 |
1 | 0 | Covered | T1,T4,T5 |
1 | 1 | Covered | T1,T4,T5 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T3,T7,T11 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T3,T7,T11 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T1,T4,T5 |
1 | Covered | T3,T7,T11 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T3,T7,T11 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T3,T7,T11 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T3,T7,T11 |
0 | 1 | Not Covered | |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active)) && ((!Sticky))))
--------1-------- ------------------2-----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T3,T7,T11 |
0 | 1 | Covered | T11,T48,T53 |
1 | 0 | Covered | T12 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T3,T7,T11 |
1 | - | Covered | T11,T48,T53 |
FSM Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
6 |
5 |
83.33 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T3,T7,T11 |
DetectSt |
168 |
Covered |
T3,T7,T11 |
IdleSt |
163 |
Covered |
T1,T4,T5 |
StableSt |
191 |
Covered |
T3,T7,T11 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T3,T7,T11 |
DebounceSt->IdleSt |
163 |
Covered |
T55,T175,T176 |
DetectSt->IdleSt |
186 |
Not Covered |
|
DetectSt->StableSt |
191 |
Covered |
T3,T7,T11 |
IdleSt->DebounceSt |
148 |
Covered |
T3,T7,T11 |
StableSt->IdleSt |
206 |
Covered |
T11,T12,T48 |
Branch Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
| Line No. | Total | Covered | Percent |
Branches |
|
21 |
20 |
95.24 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
9 |
90.00 |
IF |
219 |
2 |
2 |
100.00 |
IF |
69 |
2 |
2 |
100.00 |
92 assign cnt_d = (cnt_clr) ? '0 :
-1-
==>
93 (cnt_en) ? cnt_q + 1'b1 :
-2-
==>
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T3,T7,T11 |
0 |
1 |
Covered |
T3,T7,T11 |
0 |
0 |
Covered |
T1,T4,T5 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T3,T7,T11 |
0 |
Covered |
T1,T4,T5 |
104 if (!rst_ni) begin
-1-
105 cnt_q <= '0;
==>
106 end else begin
107 cnt_q <= cnt_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
140 unique case (state_q)
-1-
141 ////////////////////////////////////////////
142 // We are waiting for the event to occur.
143 // This can be either a specific level or edge,
144 // depending on the configuration.
145 IdleSt: begin
146 // Stay here if the detector is disabled.
147 if (trigger_event && cfg_enable_i) begin
-2-
148 state_d = DebounceSt;
==>
149 cnt_en = 1'b1;
150 end
MISSING_ELSE
==>
151 end
152 ////////////////////////////////////////////
153 // If an event has occurred, we back off for
154 // the amount of debounce cycles configured.
155 // Once the timer has expired, we sample the
156 // signal again and check whether it has the
157 // correct level. If so, we move on to the
158 // detection stage, otherwise we fall back.
159 DebounceSt: begin
160 cnt_en = 1'b1;
161 // Unconditionally go back to idle if the detector is disabled.
162 if (!cfg_enable_i) begin
-3-
163 state_d = IdleSt;
==>
164 cnt_clr = 1'b1;
165 end else if (cnt_done) begin
-4-
166 cnt_clr = 1'b1;
167 if (trigger_active) begin
-5-
168 state_d = DetectSt;
==>
169 end else begin
170 state_d = IdleSt;
==>
171 end
172 end
MISSING_ELSE
==>
173 end
174 ////////////////////////////////////////////
175 // Once the debounce period has passed, we
176 // check whether the signal remains stable
177 // throughout the entire detection period.
178 // If it is not stable at any cycle, we fall
179 // back to idle.
180 DetectSt: begin
181 thresh_sel = 1'b1;
182 cnt_en = 1'b1;
183 // Go back to idle if either the trigger level is not active anymore, or if the
184 // detector is disabled.
185 if (!cfg_enable_i || !trigger_active) begin
-6-
186 state_d = IdleSt;
==>
187 cnt_clr = 1'b1;
188 // If the trigger is active, count up.
189 end else begin
190 if (cnt_done) begin
-7-
191 state_d = StableSt;
==>
192 cnt_clr = 1'b1;
193 event_detected_o = 1'b1;
194 event_detected_pulse_o = 1'b1;
195 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
196 end
197 end
198 ////////////////////////////////////////////
199 // At this point we have detected the event
200 // and monitor whether the signal remains stable.
201 StableSt: begin
202 // Go back to idle if either the trigger level is not active anymore, or if the detector is
203 // disabled. Note that if the detector is sticky, it has to be explicitly disabled in order
204 // to go back to the idle state.
205 if (!cfg_enable_i || (!trigger_active && !Sticky)) begin
-8-
206 state_d = IdleSt;
==>
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 event_detected_o = 1'b1;
==>
210 end
211 end
212 ////////////////////////////////////////////
213 // This is a full case statement
214 default: ;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | Status | Tests | Exclude Annotation |
IdleSt |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T3,T7,T11 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T1,T4,T5 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T55 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T3,T7,T11 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T175,T176 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T3,T7,T11 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Not Covered |
|
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T3,T7,T11 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T11,T12,T48 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T3,T7,T11 |
|
default |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
219 if (!rst_ni) begin
-1-
220 state_q <= IdleSt;
==>
221 end else begin
222 state_q <= state_d;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
69 if (!rst_ni) begin
-1-
70 trigger_active_q <= 1'b0;
==>
71 end else begin
72 trigger_active_q <= trigger_active;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T4,T5 |
0 |
Covered |
T1,T4,T5 |
Assert Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
Assertion Details
CntClr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
89 |
0 |
0 |
T3 |
709 |
2 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
2 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
2 |
0 |
0 |
T12 |
0 |
2 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
4 |
0 |
0 |
T52 |
0 |
2 |
0 |
0 |
T53 |
0 |
4 |
0 |
0 |
T54 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
2557 |
0 |
0 |
T3 |
709 |
53 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
96 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
42 |
0 |
0 |
T12 |
0 |
15 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
194 |
0 |
0 |
T52 |
0 |
25 |
0 |
0 |
T53 |
0 |
22 |
0 |
0 |
T54 |
0 |
11 |
0 |
0 |
T55 |
0 |
29 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
73 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6893555 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
3779 |
0 |
0 |
T3 |
709 |
41 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
40 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
157 |
0 |
0 |
T12 |
0 |
20 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
87 |
0 |
0 |
T52 |
0 |
72 |
0 |
0 |
T53 |
0 |
104 |
0 |
0 |
T54 |
0 |
120 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
38 |
0 |
0 |
T177 |
0 |
57 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
43 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
1 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6715167 |
0 |
0 |
T1 |
505 |
104 |
0 |
0 |
T2 |
483 |
82 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
496 |
95 |
0 |
0 |
T13 |
422 |
21 |
0 |
0 |
T14 |
523 |
122 |
0 |
0 |
T15 |
708 |
307 |
0 |
0 |
T16 |
674 |
273 |
0 |
0 |
T17 |
1522 |
41 |
0 |
0 |
T18 |
497 |
96 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6716991 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
46 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
43 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
1 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
43 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
1 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
43 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
1 |
0 |
0 |
T12 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
2 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
1 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
3717 |
0 |
0 |
T3 |
709 |
39 |
0 |
0 |
T6 |
1143 |
0 |
0 |
0 |
T7 |
0 |
38 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T9 |
484 |
0 |
0 |
0 |
T11 |
0 |
156 |
0 |
0 |
T12 |
0 |
19 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T48 |
0 |
84 |
0 |
0 |
T52 |
0 |
71 |
0 |
0 |
T53 |
0 |
101 |
0 |
0 |
T54 |
0 |
119 |
0 |
0 |
T64 |
402 |
0 |
0 |
0 |
T65 |
422 |
0 |
0 |
0 |
T74 |
502 |
0 |
0 |
0 |
T75 |
523 |
0 |
0 |
0 |
T76 |
441 |
0 |
0 |
0 |
T124 |
0 |
36 |
0 |
0 |
T177 |
0 |
55 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
1552 |
0 |
0 |
T2 |
483 |
0 |
0 |
0 |
T3 |
709 |
1 |
0 |
0 |
T4 |
447 |
6 |
0 |
0 |
T5 |
496 |
4 |
0 |
0 |
T13 |
422 |
2 |
0 |
0 |
T14 |
523 |
5 |
0 |
0 |
T15 |
708 |
0 |
0 |
0 |
T16 |
674 |
0 |
0 |
0 |
T17 |
1522 |
1 |
0 |
0 |
T18 |
497 |
5 |
0 |
0 |
T26 |
0 |
5 |
0 |
0 |
T65 |
0 |
3 |
0 |
0 |
T74 |
0 |
5 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
6895503 |
0 |
0 |
T1 |
505 |
105 |
0 |
0 |
T2 |
483 |
83 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
496 |
96 |
0 |
0 |
T13 |
422 |
22 |
0 |
0 |
T14 |
523 |
123 |
0 |
0 |
T15 |
708 |
308 |
0 |
0 |
T16 |
674 |
274 |
0 |
0 |
T17 |
1522 |
47 |
0 |
0 |
T18 |
497 |
97 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
7365022 |
23 |
0 |
0 |
T11 |
694 |
1 |
0 |
0 |
T12 |
7268 |
0 |
0 |
0 |
T27 |
683 |
0 |
0 |
0 |
T28 |
705 |
0 |
0 |
0 |
T29 |
471 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T52 |
0 |
1 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T54 |
0 |
1 |
0 |
0 |
T56 |
453 |
0 |
0 |
0 |
T66 |
448 |
0 |
0 |
0 |
T67 |
404 |
0 |
0 |
0 |
T88 |
523 |
0 |
0 |
0 |
T103 |
1311 |
0 |
0 |
0 |
T160 |
0 |
2 |
0 |
0 |
T162 |
0 |
1 |
0 |
0 |
T163 |
0 |
1 |
0 |
0 |
T178 |
0 |
1 |
0 |
0 |
T179 |
0 |
1 |
0 |
0 |