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: T4 T5 T1
70 1/1 trigger_active_q <= 1'b0;
Tests: T4 T5 T1
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T4 T5 T1
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T4 T5 T1
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: T17 T29 T30
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: T17 T29 T30
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T17 T29 T30
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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 T1
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T1
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T1
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T1
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T1
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T1
139
140 1/1 unique case (state_q)
Tests: T4 T5 T1
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 T1
148 1/1 state_d = DebounceSt;
Tests: T17 T29 T30
149 1/1 cnt_en = 1'b1;
Tests: T17 T29 T30
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: T17 T29 T30
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T17 T29 T30
163 1/1 state_d = IdleSt;
Tests: T20
164 1/1 cnt_clr = 1'b1;
Tests: T20
165 1/1 end else if (cnt_done) begin
Tests: T17 T29 T30
166 1/1 cnt_clr = 1'b1;
Tests: T17 T29 T30
167 1/1 if (trigger_active) begin
Tests: T17 T29 T30
168 1/1 state_d = DetectSt;
Tests: T17 T29 T30
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T65 T159 T160
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: T17 T29 T30
182 1/1 cnt_en = 1'b1;
Tests: T17 T29 T30
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: T17 T29 T30
186 1/1 state_d = IdleSt;
Tests: T115 T116 T132
187 1/1 cnt_clr = 1'b1;
Tests: T115 T116 T132
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T17 T29 T30
191 1/1 state_d = StableSt;
Tests: T17 T29 T30
192 1/1 cnt_clr = 1'b1;
Tests: T17 T29 T30
193 1/1 event_detected_o = 1'b1;
Tests: T17 T29 T30
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T17 T29 T30
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: T17 T29 T30
206 1/1 state_d = IdleSt;
Tests: T17 T29 T30
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T17 T29 T30
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
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 | T4,T5,T1 |
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 | T4,T5,T1 |
1 | 1 | Covered | T4,T5,T1 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T17,T29,T30 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T17,T29,T30 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T17,T29,T30 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T17,T29,T30 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T17,T29,T30 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T17,T29,T30 |
0 | 1 | Covered | T115,T116,T132 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active)) && ((!Sticky))))
--------1-------- ------------------2-----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T17,T29,T30 |
0 | 1 | Covered | T17,T29,T30 |
1 | 0 | Covered | T76 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T17,T29,T30 |
1 | - | Covered | T17,T29,T30 |
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 |
T17,T29,T30 |
DetectSt |
168 |
Covered |
T17,T29,T30 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T17,T29,T30 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T17,T29,T30 |
DebounceSt->IdleSt |
163 |
Covered |
T20,T65,T159 |
DetectSt->IdleSt |
186 |
Covered |
T115,T116,T132 |
DetectSt->StableSt |
191 |
Covered |
T17,T29,T30 |
IdleSt->DebounceSt |
148 |
Covered |
T17,T29,T30 |
StableSt->IdleSt |
206 |
Covered |
T17,T29,T30 |
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 |
T17,T29,T30 |
0 |
1 |
Covered |
T17,T29,T30 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T17,T29,T30 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T17,T29,T30 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T1 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T20 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T17,T29,T30 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T65,T159,T160 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T17,T29,T30 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T115,T116,T132 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T17,T29,T30 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T17,T29,T30 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T17,T29,T30 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
192 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
2 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
2 |
0 |
0 |
T30 |
0 |
4 |
0 |
0 |
T62 |
0 |
2 |
0 |
0 |
T64 |
0 |
2 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
T66 |
0 |
6 |
0 |
0 |
T67 |
0 |
4 |
0 |
0 |
T68 |
0 |
2 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
191866 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
47 |
0 |
0 |
T20 |
0 |
37 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
89 |
0 |
0 |
T30 |
0 |
95 |
0 |
0 |
T62 |
0 |
11 |
0 |
0 |
T64 |
0 |
60 |
0 |
0 |
T65 |
0 |
59 |
0 |
0 |
T66 |
0 |
158 |
0 |
0 |
T67 |
0 |
177 |
0 |
0 |
T68 |
0 |
17 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879206 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
3 |
0 |
0 |
T44 |
13553 |
0 |
0 |
0 |
T115 |
594 |
1 |
0 |
0 |
T116 |
0 |
1 |
0 |
0 |
T132 |
0 |
1 |
0 |
0 |
T137 |
405 |
0 |
0 |
0 |
T138 |
502 |
0 |
0 |
0 |
T139 |
3492 |
0 |
0 |
0 |
T140 |
526 |
0 |
0 |
0 |
T141 |
522 |
0 |
0 |
0 |
T142 |
16931 |
0 |
0 |
0 |
T143 |
505 |
0 |
0 |
0 |
T144 |
722 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
577 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
4 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
4 |
0 |
0 |
T30 |
0 |
14 |
0 |
0 |
T50 |
0 |
10 |
0 |
0 |
T62 |
0 |
6 |
0 |
0 |
T64 |
0 |
12 |
0 |
0 |
T66 |
0 |
23 |
0 |
0 |
T67 |
0 |
19 |
0 |
0 |
T68 |
0 |
6 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
14 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
86 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
2 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5683118 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5685090 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
104 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T65 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
89 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
2 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
86 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
2 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
86 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
2 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
491 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
3 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
3 |
0 |
0 |
T30 |
0 |
12 |
0 |
0 |
T50 |
0 |
8 |
0 |
0 |
T62 |
0 |
5 |
0 |
0 |
T64 |
0 |
11 |
0 |
0 |
T66 |
0 |
20 |
0 |
0 |
T67 |
0 |
17 |
0 |
0 |
T68 |
0 |
5 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
0 |
12 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5703 |
0 |
0 |
T1 |
485 |
0 |
0 |
0 |
T2 |
486 |
0 |
0 |
0 |
T3 |
672 |
2 |
0 |
0 |
T4 |
447 |
5 |
0 |
0 |
T5 |
493 |
10 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T13 |
822 |
4 |
0 |
0 |
T14 |
494 |
5 |
0 |
0 |
T15 |
421 |
2 |
0 |
0 |
T16 |
504 |
4 |
0 |
0 |
T17 |
0 |
3 |
0 |
0 |
T26 |
0 |
4 |
0 |
0 |
T27 |
0 |
5 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
85 |
0 |
0 |
T6 |
717 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T17 |
664 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T29 |
0 |
1 |
0 |
0 |
T30 |
0 |
2 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T62 |
0 |
1 |
0 |
0 |
T64 |
0 |
1 |
0 |
0 |
T66 |
0 |
3 |
0 |
0 |
T67 |
0 |
2 |
0 |
0 |
T68 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T151 |
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: T4 T5 T1
70 1/1 trigger_active_q <= 1'b0;
Tests: T4 T5 T1
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T4 T5 T1
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T4 T5 T1
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: T7 T18 T20
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: T13 T7 T18
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T13 T7 T18
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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 T1
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T1
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T1
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T1
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T1
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T1
139
140 1/1 unique case (state_q)
Tests: T4 T5 T1
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 T1
148 1/1 state_d = DebounceSt;
Tests: T7 T18 T20
149 1/1 cnt_en = 1'b1;
Tests: T7 T18 T20
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: T7 T18 T20
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T7 T18 T20
163 1/1 state_d = IdleSt;
Tests: T20 T76
164 1/1 cnt_clr = 1'b1;
Tests: T20 T76
165 1/1 end else if (cnt_done) begin
Tests: T7 T18 T20
166 1/1 cnt_clr = 1'b1;
Tests: T7 T18 T19
167 1/1 if (trigger_active) begin
Tests: T7 T18 T19
168 1/1 state_d = DetectSt;
Tests: T18 T19 T77
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T7 T77 T152
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: T18 T19 T77
182 1/1 cnt_en = 1'b1;
Tests: T18 T19 T77
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: T18 T19 T77
186 1/1 state_d = IdleSt;
Tests: T77 T108 T121
187 1/1 cnt_clr = 1'b1;
Tests: T77 T108 T121
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T18 T19 T78
191 1/1 state_d = StableSt;
Tests: T18 T19 T78
192 1/1 cnt_clr = 1'b1;
Tests: T18 T19 T78
193 1/1 event_detected_o = 1'b1;
Tests: T18 T19 T78
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T18 T19 T78
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: T18 T19 T78
206 1/1 state_d = IdleSt;
Tests: T18 T19 T78
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T18 T19 T78
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
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 | T4,T5,T1 |
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 | T4,T5,T1 |
1 | 1 | Covered | T4,T5,T1 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T18,T19,T77 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T7,T18,T20 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T7,T18,T20 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T18,T19,T78 |
0 | 1 | Covered | T77,T108,T121 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T18,T19,T78 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T18,T19,T78 |
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 |
T7,T18,T20 |
DetectSt |
168 |
Covered |
T18,T19,T77 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T18,T19,T78 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T18,T19,T77 |
DebounceSt->IdleSt |
163 |
Covered |
T7,T20,T77 |
DetectSt->IdleSt |
186 |
Covered |
T77,T108,T121 |
DetectSt->StableSt |
191 |
Covered |
T18,T19,T78 |
IdleSt->DebounceSt |
148 |
Covered |
T7,T18,T20 |
StableSt->IdleSt |
206 |
Covered |
T18,T19,T78 |
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 |
T7,T18,T20 |
0 |
1 |
Covered |
T7,T18,T20 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T18,T19,T77 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T7,T18,T20 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T1 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T20,T76 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T18,T19,T77 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T7,T77,T152 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T7,T18,T20 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T77,T108,T121 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T18,T19,T78 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T18,T19,T78 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T18,T19,T78 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
151 |
0 |
0 |
T7 |
942 |
3 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T19 |
0 |
6 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
2 |
0 |
0 |
T77 |
0 |
5 |
0 |
0 |
T78 |
0 |
2 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
T80 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
281174 |
0 |
0 |
T7 |
942 |
198 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
20 |
0 |
0 |
T19 |
0 |
51 |
0 |
0 |
T20 |
0 |
53 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
15 |
0 |
0 |
T77 |
0 |
30 |
0 |
0 |
T78 |
0 |
40 |
0 |
0 |
T79 |
0 |
58 |
0 |
0 |
T80 |
0 |
26 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
13 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879247 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
13 |
0 |
0 |
T49 |
1068 |
0 |
0 |
0 |
T68 |
646 |
0 |
0 |
0 |
T77 |
633 |
2 |
0 |
0 |
T108 |
0 |
2 |
0 |
0 |
T121 |
0 |
2 |
0 |
0 |
T161 |
0 |
4 |
0 |
0 |
T162 |
0 |
3 |
0 |
0 |
T163 |
526 |
0 |
0 |
0 |
T164 |
522 |
0 |
0 |
0 |
T165 |
635 |
0 |
0 |
0 |
T166 |
403 |
0 |
0 |
0 |
T167 |
422 |
0 |
0 |
0 |
T168 |
889 |
0 |
0 |
0 |
T169 |
593 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
444013 |
0 |
0 |
T18 |
1213 |
9 |
0 |
0 |
T19 |
0 |
206 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
7 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
179 |
0 |
0 |
T79 |
0 |
253 |
0 |
0 |
T80 |
0 |
52 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
7 |
0 |
0 |
T139 |
0 |
43 |
0 |
0 |
T153 |
0 |
128 |
0 |
0 |
T154 |
0 |
52 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
41 |
0 |
0 |
T18 |
1213 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
1 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4361645 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4363650 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
98 |
0 |
0 |
T7 |
942 |
3 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T77 |
0 |
3 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
54 |
0 |
0 |
T18 |
1213 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T77 |
0 |
2 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
1 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T108 |
0 |
2 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
41 |
0 |
0 |
T18 |
1213 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
1 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
41 |
0 |
0 |
T18 |
1213 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
1 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
443972 |
0 |
0 |
T18 |
1213 |
8 |
0 |
0 |
T19 |
0 |
203 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
6 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
178 |
0 |
0 |
T79 |
0 |
252 |
0 |
0 |
T80 |
0 |
51 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
6 |
0 |
0 |
T139 |
0 |
42 |
0 |
0 |
T153 |
0 |
127 |
0 |
0 |
T154 |
0 |
50 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
0 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5703 |
0 |
0 |
T1 |
485 |
0 |
0 |
0 |
T2 |
486 |
0 |
0 |
0 |
T3 |
672 |
2 |
0 |
0 |
T4 |
447 |
5 |
0 |
0 |
T5 |
493 |
10 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T13 |
822 |
4 |
0 |
0 |
T14 |
494 |
5 |
0 |
0 |
T15 |
421 |
2 |
0 |
0 |
T16 |
504 |
4 |
0 |
0 |
T17 |
0 |
3 |
0 |
0 |
T26 |
0 |
4 |
0 |
0 |
T27 |
0 |
5 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
288453 |
0 |
0 |
T18 |
1213 |
135 |
0 |
0 |
T19 |
0 |
680 |
0 |
0 |
T47 |
798 |
0 |
0 |
0 |
T57 |
0 |
165 |
0 |
0 |
T62 |
664 |
0 |
0 |
0 |
T63 |
462 |
0 |
0 |
0 |
T78 |
0 |
393 |
0 |
0 |
T79 |
0 |
85 |
0 |
0 |
T80 |
0 |
83 |
0 |
0 |
T88 |
1303 |
0 |
0 |
0 |
T101 |
2792 |
0 |
0 |
0 |
T107 |
0 |
94 |
0 |
0 |
T139 |
0 |
204 |
0 |
0 |
T153 |
0 |
57 |
0 |
0 |
T154 |
0 |
80852 |
0 |
0 |
T155 |
506 |
0 |
0 |
0 |
T156 |
1251 |
0 |
0 |
0 |
T157 |
410 |
0 |
0 |
0 |
T158 |
412 |
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: T4 T5 T1
70 1/1 trigger_active_q <= 1'b0;
Tests: T4 T5 T1
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T4 T5 T1
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: T7 T18 T20
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: T13 T7 T18
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T13 T7 T18
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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: T7 T18 T20
149 1/1 cnt_en = 1'b1;
Tests: T7 T18 T20
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: T7 T18 T20
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T7 T18 T20
163 1/1 state_d = IdleSt;
Tests: T20 T76
164 1/1 cnt_clr = 1'b1;
Tests: T20 T76
165 1/1 end else if (cnt_done) begin
Tests: T7 T18 T20
166 1/1 cnt_clr = 1'b1;
Tests: T7 T18 T19
167 1/1 if (trigger_active) begin
Tests: T7 T18 T19
168 1/1 state_d = DetectSt;
Tests: T7 T18 T19
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T77 T79 T80
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: T7 T18 T19
182 1/1 cnt_en = 1'b1;
Tests: T7 T18 T19
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: T7 T18 T19
186 1/1 state_d = IdleSt;
Tests: T77 T79 T107
187 1/1 cnt_clr = 1'b1;
Tests: T77 T79 T107
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T7 T18 T19
191 1/1 state_d = StableSt;
Tests: T7 T18 T19
192 1/1 cnt_clr = 1'b1;
Tests: T7 T18 T19
193 1/1 event_detected_o = 1'b1;
Tests: T7 T18 T19
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T7 T18 T19
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: T7 T18 T19
206 1/1 state_d = IdleSt;
Tests: T7 T18 T19
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T7 T18 T19
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
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 | T4,T5,T1 |
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 | T4,T5,T1 |
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 | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T19 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T7,T18,T20 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T7,T18,T20 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T7,T18,T19 |
0 | 1 | Covered | T77,T79,T107 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T7,T18,T19 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T7,T18,T19 |
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 |
T7,T18,T20 |
DetectSt |
168 |
Covered |
T7,T18,T19 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T7,T18,T19 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T7,T18,T19 |
DebounceSt->IdleSt |
163 |
Covered |
T20,T77,T79 |
DetectSt->IdleSt |
186 |
Covered |
T77,T79,T107 |
DetectSt->StableSt |
191 |
Covered |
T7,T18,T19 |
IdleSt->DebounceSt |
148 |
Covered |
T7,T18,T20 |
StableSt->IdleSt |
206 |
Covered |
T7,T18,T19 |
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 |
T7,T18,T20 |
0 |
1 |
Covered |
T7,T18,T20 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T7,T18,T19 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T7,T18,T20 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T13 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T20,T76 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T7,T18,T19 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T77,T79,T80 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T7,T18,T20 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T77,T79,T107 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T7,T18,T19 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T7,T18,T19 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T7,T18,T19 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
167 |
0 |
0 |
T7 |
942 |
4 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T19 |
0 |
6 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
2 |
0 |
0 |
T77 |
0 |
4 |
0 |
0 |
T78 |
0 |
2 |
0 |
0 |
T79 |
0 |
6 |
0 |
0 |
T80 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
467688 |
0 |
0 |
T7 |
942 |
120 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
15 |
0 |
0 |
T19 |
0 |
66 |
0 |
0 |
T20 |
0 |
54 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
69 |
0 |
0 |
T77 |
0 |
87 |
0 |
0 |
T78 |
0 |
83 |
0 |
0 |
T79 |
0 |
80 |
0 |
0 |
T80 |
0 |
68 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
95 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879231 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
27 |
0 |
0 |
T49 |
1068 |
0 |
0 |
0 |
T68 |
646 |
0 |
0 |
0 |
T77 |
633 |
1 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T110 |
0 |
3 |
0 |
0 |
T111 |
0 |
1 |
0 |
0 |
T121 |
0 |
5 |
0 |
0 |
T152 |
0 |
3 |
0 |
0 |
T163 |
526 |
0 |
0 |
0 |
T164 |
522 |
0 |
0 |
0 |
T165 |
635 |
0 |
0 |
0 |
T166 |
403 |
0 |
0 |
0 |
T167 |
422 |
0 |
0 |
0 |
T168 |
889 |
0 |
0 |
0 |
T169 |
593 |
0 |
0 |
0 |
T170 |
0 |
2 |
0 |
0 |
T171 |
0 |
2 |
0 |
0 |
T172 |
0 |
3 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
60345 |
0 |
0 |
T7 |
942 |
70 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
309 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
51 |
0 |
0 |
T78 |
0 |
370 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
113 |
0 |
0 |
T139 |
0 |
147 |
0 |
0 |
T152 |
0 |
158 |
0 |
0 |
T153 |
0 |
69 |
0 |
0 |
T154 |
0 |
53912 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4361645 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4363650 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
105 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T77 |
0 |
3 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
4 |
0 |
0 |
T80 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
63 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
4 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T78 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
1 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
T154 |
0 |
2 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
60309 |
0 |
0 |
T7 |
942 |
68 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T19 |
0 |
306 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
50 |
0 |
0 |
T78 |
0 |
369 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
112 |
0 |
0 |
T139 |
0 |
146 |
0 |
0 |
T152 |
0 |
157 |
0 |
0 |
T153 |
0 |
68 |
0 |
0 |
T154 |
0 |
53910 |
0 |
0 |
T173 |
0 |
340 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
425810 |
0 |
0 |
T7 |
942 |
247 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
150 |
0 |
0 |
T19 |
0 |
543 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
69 |
0 |
0 |
T78 |
0 |
158 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T121 |
0 |
84517 |
0 |
0 |
T139 |
0 |
80 |
0 |
0 |
T152 |
0 |
336 |
0 |
0 |
T153 |
0 |
191 |
0 |
0 |
T154 |
0 |
84 |
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: T7 T18 T20
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: T13 T7 T18
100 TimerWidth'(cfg_debounce_timer_i);
101 1/1 assign cnt_done = (cnt_q >= thresh);
Tests: T13 T7 T18
102
103 always_ff @(posedge clk_i or negedge rst_ni) begin : p_cnt_reg
104 1/1 if (!rst_ni) begin
Tests: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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: T7 T18 T20
149 1/1 cnt_en = 1'b1;
Tests: T7 T18 T20
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: T7 T18 T20
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T7 T18 T20
163 1/1 state_d = IdleSt;
Tests: T20 T76
164 1/1 cnt_clr = 1'b1;
Tests: T20 T76
165 1/1 end else if (cnt_done) begin
Tests: T7 T18 T20
166 1/1 cnt_clr = 1'b1;
Tests: T7 T18 T19
167 1/1 if (trigger_active) begin
Tests: T7 T18 T19
168 1/1 state_d = DetectSt;
Tests: T7 T18 T19
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T78 T57 T80
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: T7 T18 T19
182 1/1 cnt_en = 1'b1;
Tests: T7 T18 T19
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: T7 T18 T19
186 1/1 state_d = IdleSt;
Tests: T109 T110 T111
187 1/1 cnt_clr = 1'b1;
Tests: T109 T110 T111
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T7 T18 T19
191 1/1 state_d = StableSt;
Tests: T7 T18 T19
192 1/1 cnt_clr = 1'b1;
Tests: T7 T18 T19
193 1/1 event_detected_o = 1'b1;
Tests: T7 T18 T19
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T7 T18 T19
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: T7 T18 T19
206 1/1 state_d = IdleSt;
Tests: T7 T18 T19
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T7 T18 T19
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
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 | T4,T5,T1 |
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 | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T20 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T7,T18,T19 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T7,T18,T20 |
1 | 0 | Covered | T4,T5,T13 |
1 | 1 | Covered | T7,T18,T20 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T7,T18,T19 |
0 | 1 | Covered | T109,T110,T111 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active) && (!Sticky))))
--------1-------- -----------------2----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T7,T18,T19 |
0 | 1 | Unreachable | |
1 | 0 | Covered | T7,T18,T19 |
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 |
T7,T18,T20 |
DetectSt |
168 |
Covered |
T7,T18,T19 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T7,T18,T19 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T7,T18,T19 |
DebounceSt->IdleSt |
163 |
Covered |
T20,T78,T57 |
DetectSt->IdleSt |
186 |
Covered |
T109,T110,T111 |
DetectSt->StableSt |
191 |
Covered |
T7,T18,T19 |
IdleSt->DebounceSt |
148 |
Covered |
T7,T18,T20 |
StableSt->IdleSt |
206 |
Covered |
T7,T18,T19 |
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 |
T7,T18,T20 |
0 |
1 |
Covered |
T7,T18,T20 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T7,T18,T19 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T7,T18,T20 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T13 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Covered |
T20,T76 |
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T7,T18,T19 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T78,T57,T80 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T7,T18,T20 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T109,T110,T111 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T7,T18,T19 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T7,T18,T19 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T7,T18,T19 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
147 |
0 |
0 |
T7 |
942 |
4 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
2 |
0 |
0 |
T19 |
0 |
6 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T77 |
0 |
2 |
0 |
0 |
T78 |
0 |
4 |
0 |
0 |
T79 |
0 |
2 |
0 |
0 |
T80 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
233032 |
0 |
0 |
T7 |
942 |
34 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
95 |
0 |
0 |
T19 |
0 |
141 |
0 |
0 |
T20 |
0 |
55 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
90 |
0 |
0 |
T77 |
0 |
31 |
0 |
0 |
T78 |
0 |
244 |
0 |
0 |
T79 |
0 |
59 |
0 |
0 |
T80 |
0 |
62 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
11 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879251 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
14 |
0 |
0 |
T109 |
1060 |
1 |
0 |
0 |
T110 |
0 |
2 |
0 |
0 |
T111 |
0 |
1 |
0 |
0 |
T174 |
0 |
5 |
0 |
0 |
T175 |
0 |
1 |
0 |
0 |
T176 |
0 |
3 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
T178 |
19726 |
0 |
0 |
0 |
T179 |
402 |
0 |
0 |
0 |
T180 |
797 |
0 |
0 |
0 |
T181 |
860 |
0 |
0 |
0 |
T182 |
25128 |
0 |
0 |
0 |
T183 |
528 |
0 |
0 |
0 |
T184 |
6237 |
0 |
0 |
0 |
T185 |
796 |
0 |
0 |
0 |
T186 |
402 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
47884 |
0 |
0 |
T7 |
942 |
34 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
45 |
0 |
0 |
T19 |
0 |
691 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
137 |
0 |
0 |
T79 |
0 |
185 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
9 |
0 |
0 |
T108 |
0 |
180 |
0 |
0 |
T139 |
0 |
163 |
0 |
0 |
T152 |
0 |
989 |
0 |
0 |
T153 |
0 |
135 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
2 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4361645 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
4363650 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
98 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T78 |
0 |
4 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T80 |
0 |
2 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
50 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
2 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
2 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
36 |
0 |
0 |
T7 |
942 |
2 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
1 |
0 |
0 |
T19 |
0 |
3 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
1 |
0 |
0 |
T79 |
0 |
1 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
1 |
0 |
0 |
T108 |
0 |
1 |
0 |
0 |
T139 |
0 |
1 |
0 |
0 |
T152 |
0 |
2 |
0 |
0 |
T153 |
0 |
1 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
47848 |
0 |
0 |
T7 |
942 |
32 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
44 |
0 |
0 |
T19 |
0 |
688 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
136 |
0 |
0 |
T79 |
0 |
184 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
8 |
0 |
0 |
T108 |
0 |
179 |
0 |
0 |
T139 |
0 |
162 |
0 |
0 |
T152 |
0 |
987 |
0 |
0 |
T153 |
0 |
134 |
0 |
0 |
gen_high_event_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
828876 |
0 |
0 |
T7 |
942 |
390 |
0 |
0 |
T10 |
488 |
0 |
0 |
0 |
T18 |
0 |
32 |
0 |
0 |
T19 |
0 |
127 |
0 |
0 |
T25 |
496 |
0 |
0 |
0 |
T29 |
703 |
0 |
0 |
0 |
T77 |
0 |
35 |
0 |
0 |
T79 |
0 |
165 |
0 |
0 |
T81 |
522 |
0 |
0 |
0 |
T82 |
405 |
0 |
0 |
0 |
T83 |
428 |
0 |
0 |
0 |
T84 |
402 |
0 |
0 |
0 |
T85 |
525 |
0 |
0 |
0 |
T86 |
503 |
0 |
0 |
0 |
T107 |
0 |
111 |
0 |
0 |
T108 |
0 |
87 |
0 |
0 |
T139 |
0 |
38 |
0 |
0 |
T152 |
0 |
140 |
0 |
0 |
T153 |
0 |
92 |
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 | 41 | 89.13 |
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 | 27 | 84.38 |
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 T1
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: T4 T5 T1
70 1/1 trigger_active_q <= 1'b0;
Tests: T4 T5 T1
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T4 T5 T1
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T4 T5 T1
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: T28 T20 T48
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: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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 T1
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T1
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T1
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T1
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T1
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T1
139
140 1/1 unique case (state_q)
Tests: T4 T5 T1
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 T1
148 1/1 state_d = DebounceSt;
Tests: T28 T20 T48
149 1/1 cnt_en = 1'b1;
Tests: T28 T20 T48
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: T28 T20 T48
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T28 T20 T48
163 0/1 ==> state_d = IdleSt;
164 0/1 ==> cnt_clr = 1'b1;
165 1/1 end else if (cnt_done) begin
Tests: T28 T20 T48
166 1/1 cnt_clr = 1'b1;
Tests: T28 T20 T48
167 1/1 if (trigger_active) begin
Tests: T28 T20 T48
168 1/1 state_d = DetectSt;
Tests: T28 T20 T48
169 end else begin
170 0/1 ==> 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 1/1 thresh_sel = 1'b1;
Tests: T28 T20 T48
182 1/1 cnt_en = 1'b1;
Tests: T28 T20 T48
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: T28 T20 T48
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: T28 T20 T48
191 1/1 state_d = StableSt;
Tests: T28 T20 T48
192 1/1 cnt_clr = 1'b1;
Tests: T28 T20 T48
193 1/1 event_detected_o = 1'b1;
Tests: T28 T20 T48
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T28 T20 T48
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: T28 T20 T48
206 1/1 state_d = IdleSt;
Tests: T20 T50 T76
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T28 T20 T48
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
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 | T4,T5,T1 |
1 | Covered | T4,T5,T1 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T4,T5,T1 |
1 | 0 | Covered | T4,T5,T1 |
1 | 1 | Covered | T4,T5,T1 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T28,T20,T48 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T28,T20,T48 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T28,T20,T48 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T28,T20,T48 |
1 | 0 | Covered | T4,T5,T1 |
1 | 1 | Covered | T28,T20,T48 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T28,T20,T48 |
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 | T28,T20,T48 |
0 | 1 | Covered | T50,T120,T187 |
1 | 0 | Covered | T20,T76 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T28,T20,T48 |
1 | - | Covered | T50,T120,T187 |
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 |
T28,T20,T48 |
DetectSt |
168 |
Covered |
T28,T20,T48 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T28,T20,T48 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T28,T20,T48 |
DebounceSt->IdleSt |
163 |
Covered |
T188 |
DetectSt->IdleSt |
186 |
Not Covered |
|
DetectSt->StableSt |
191 |
Covered |
T28,T20,T48 |
IdleSt->DebounceSt |
148 |
Covered |
T28,T20,T48 |
StableSt->IdleSt |
206 |
Covered |
T20,T50,T76 |
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 |
18 |
85.71 |
TERNARY |
92 |
3 |
3 |
100.00 |
TERNARY |
99 |
2 |
2 |
100.00 |
IF |
104 |
2 |
2 |
100.00 |
CASE |
140 |
10 |
7 |
70.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 |
T28,T20,T48 |
0 |
1 |
Covered |
T28,T20,T48 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T28,T20,T48 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T28,T20,T48 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T1 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Not Covered |
|
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T28,T20,T48 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Not Covered |
|
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T28,T20,T48 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Not Covered |
|
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T28,T20,T48 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T20,T50,T76 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T28,T20,T48 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
38 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T28 |
618 |
2 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
2 |
0 |
0 |
T50 |
0 |
4 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
2 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
2 |
0 |
0 |
T187 |
0 |
2 |
0 |
0 |
T189 |
0 |
2 |
0 |
0 |
T190 |
0 |
2 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
27423 |
0 |
0 |
T20 |
0 |
20 |
0 |
0 |
T28 |
618 |
25 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
33 |
0 |
0 |
T50 |
0 |
168 |
0 |
0 |
T55 |
0 |
37 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
19 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
49 |
0 |
0 |
T187 |
0 |
58 |
0 |
0 |
T188 |
0 |
11 |
0 |
0 |
T189 |
0 |
74 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879360 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
44474 |
0 |
0 |
T20 |
0 |
25 |
0 |
0 |
T28 |
618 |
42 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
41 |
0 |
0 |
T50 |
0 |
212 |
0 |
0 |
T55 |
0 |
66 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
26 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
44 |
0 |
0 |
T187 |
0 |
39 |
0 |
0 |
T189 |
0 |
144 |
0 |
0 |
T190 |
0 |
30 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
19 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
1 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5675839 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5677819 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
20 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
1 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T188 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
19 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
1 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
19 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
1 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
19 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
1 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
44447 |
0 |
0 |
T20 |
0 |
24 |
0 |
0 |
T28 |
618 |
40 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T48 |
0 |
39 |
0 |
0 |
T50 |
0 |
210 |
0 |
0 |
T55 |
0 |
64 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T76 |
0 |
25 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T120 |
0 |
43 |
0 |
0 |
T187 |
0 |
38 |
0 |
0 |
T189 |
0 |
142 |
0 |
0 |
T190 |
0 |
29 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
gen_high_level_sva.HighLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
9 |
0 |
0 |
T50 |
3492 |
2 |
0 |
0 |
T59 |
7386 |
0 |
0 |
0 |
T80 |
958 |
0 |
0 |
0 |
T120 |
0 |
1 |
0 |
0 |
T151 |
723 |
0 |
0 |
0 |
T187 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T195 |
0 |
1 |
0 |
0 |
T196 |
0 |
1 |
0 |
0 |
T197 |
0 |
1 |
0 |
0 |
T198 |
0 |
1 |
0 |
0 |
T199 |
402 |
0 |
0 |
0 |
T200 |
502 |
0 |
0 |
0 |
T201 |
697 |
0 |
0 |
0 |
T202 |
420 |
0 |
0 |
0 |
T203 |
893 |
0 |
0 |
0 |
T204 |
522 |
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: T4 T5 T1
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: T4 T5 T1
70 1/1 trigger_active_q <= 1'b0;
Tests: T4 T5 T1
71 end else begin
72 1/1 trigger_active_q <= trigger_active;
Tests: T4 T5 T1
73 end
74 end
75
76 1/1 assign trigger_event = trigger_active & ~trigger_active_q;
Tests: T4 T5 T1
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 T28 T20
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: T4 T5 T1
105 1/1 cnt_q <= '0;
Tests: T4 T5 T1
106 end else begin
107 1/1 cnt_q <= cnt_d;
Tests: T4 T5 T1
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 T1
126
127 // Counter controls (clear has priority).
128 1/1 cnt_clr = 1'b0;
Tests: T4 T5 T1
129 1/1 cnt_en = 1'b0;
Tests: T4 T5 T1
130
131 // Detected outputs
132 1/1 event_detected_o = 1'b0;
Tests: T4 T5 T1
133 1/1 event_detected_pulse_o = 1'b0;
Tests: T4 T5 T1
134
135 // Threshold select
136 // 0: debounce
137 // 1: detect
138 1/1 thresh_sel = 1'b0;
Tests: T4 T5 T1
139
140 1/1 unique case (state_q)
Tests: T4 T5 T1
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 T1
148 1/1 state_d = DebounceSt;
Tests: T6 T28 T20
149 1/1 cnt_en = 1'b1;
Tests: T6 T28 T20
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 T28 T20
161 // Unconditionally go back to idle if the detector is disabled.
162 1/1 if (!cfg_enable_i) begin
Tests: T6 T28 T20
163 0/1 ==> state_d = IdleSt;
164 0/1 ==> cnt_clr = 1'b1;
165 1/1 end else if (cnt_done) begin
Tests: T6 T28 T20
166 1/1 cnt_clr = 1'b1;
Tests: T6 T28 T20
167 1/1 if (trigger_active) begin
Tests: T6 T28 T20
168 1/1 state_d = DetectSt;
Tests: T6 T28 T20
169 end else begin
170 1/1 state_d = IdleSt;
Tests: T205 T130
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 T28 T20
182 1/1 cnt_en = 1'b1;
Tests: T6 T28 T20
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 T28 T20
186 1/1 state_d = IdleSt;
Tests: T206
187 1/1 cnt_clr = 1'b1;
Tests: T206
188 // If the trigger is active, count up.
189 end else begin
190 1/1 if (cnt_done) begin
Tests: T6 T28 T20
191 1/1 state_d = StableSt;
Tests: T6 T28 T20
192 1/1 cnt_clr = 1'b1;
Tests: T6 T28 T20
193 1/1 event_detected_o = 1'b1;
Tests: T6 T28 T20
194 1/1 event_detected_pulse_o = 1'b1;
Tests: T6 T28 T20
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 T28 T20
206 1/1 state_d = IdleSt;
Tests: T28 T20 T55
207 // Otherwise keep the event detected output signal high.
208 end else begin
209 1/1 event_detected_o = 1'b1;
Tests: T6 T28 T20
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: T4 T5 T1
220 1/1 state_q <= IdleSt;
Tests: T4 T5 T1
221 end else begin
222 1/1 state_q <= state_d;
Tests: T4 T5 T1
Cond Coverage for Instance : tb.dut.u_sysrst_ctrl_keyintr.gen_keyfsm[0].u_sysrst_ctrl_detect_h2l
| 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,T1 |
1 | Covered | T4,T5,T1 |
LINE 76
EXPRESSION (trigger_active & ((~gen_trigger_event_edge.trigger_active_q)))
-------1------ ----------------------2---------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T4,T5,T1 |
1 | 0 | Covered | T4,T5,T1 |
1 | 1 | Covered | T4,T5,T1 |
LINE 92
EXPRESSION (cnt_clr ? '0 : (cnt_en ? ((cnt_q + 1'b1)) : cnt_q))
---1---
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T6,T28,T20 |
LINE 92
SUB-EXPRESSION (cnt_en ? ((cnt_q + 1'b1)) : cnt_q)
---1--
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T6,T28,T20 |
LINE 99
EXPRESSION (thresh_sel ? (16'(cfg_detect_timer_i)) : (16'(cfg_debounce_timer_i)))
-----1----
-1- | Status | Tests |
0 | Covered | T4,T5,T1 |
1 | Covered | T6,T28,T20 |
LINE 147
EXPRESSION (trigger_event && cfg_enable_i)
------1------ ------2-----
-1- | -2- | Status | Tests |
0 | 1 | Covered | T6,T28,T20 |
1 | 0 | Covered | T4,T5,T14 |
1 | 1 | Covered | T6,T28,T20 |
LINE 185
EXPRESSION (((!cfg_enable_i)) || ((!trigger_active)))
--------1-------- ---------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T28,T20 |
0 | 1 | Covered | T206 |
1 | 0 | Not Covered | |
LINE 205
EXPRESSION (((!cfg_enable_i)) || (((!trigger_active)) && ((!Sticky))))
--------1-------- ------------------2-----------------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T6,T28,T20 |
0 | 1 | Covered | T28,T55,T49 |
1 | 0 | Covered | T20,T76 |
LINE 205
SUB-EXPRESSION (((!trigger_active)) && ((!Sticky)))
---------1--------- -----2-----
-1- | -2- | Status | Tests |
0 | - | Covered | T6,T28,T20 |
1 | - | Covered | T28,T55,T49 |
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 |
6 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
DebounceSt |
148 |
Covered |
T6,T28,T20 |
DetectSt |
168 |
Covered |
T6,T28,T20 |
IdleSt |
163 |
Covered |
T4,T5,T1 |
StableSt |
191 |
Covered |
T6,T28,T20 |
transitions | Line No. | Covered | Tests |
DebounceSt->DetectSt |
168 |
Covered |
T6,T28,T20 |
DebounceSt->IdleSt |
163 |
Covered |
T205,T130 |
DetectSt->IdleSt |
186 |
Covered |
T206 |
DetectSt->StableSt |
191 |
Covered |
T6,T28,T20 |
IdleSt->DebounceSt |
148 |
Covered |
T6,T28,T20 |
StableSt->IdleSt |
206 |
Covered |
T28,T20,T55 |
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 |
T6,T28,T20 |
0 |
1 |
Covered |
T6,T28,T20 |
0 |
0 |
Covered |
T4,T5,T1 |
99 assign thresh = (thresh_sel) ? TimerWidth'(cfg_detect_timer_i) :
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T6,T28,T20 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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,T28,T20 |
|
IdleSt |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T4,T5,T1 |
|
DebounceSt |
- |
1 |
- |
- |
- |
- |
- |
Not Covered |
|
|
DebounceSt |
- |
0 |
1 |
1 |
- |
- |
- |
Covered |
T6,T28,T20 |
|
DebounceSt |
- |
0 |
1 |
0 |
- |
- |
- |
Covered |
T205,T130 |
|
DebounceSt |
- |
0 |
0 |
- |
- |
- |
- |
Covered |
T6,T28,T20 |
|
DetectSt |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T206 |
|
DetectSt |
- |
- |
- |
- |
0 |
1 |
- |
Covered |
T6,T28,T20 |
|
DetectSt |
- |
- |
- |
- |
0 |
0 |
- |
Excluded |
|
VC_COV_UNR |
StableSt |
- |
- |
- |
- |
- |
- |
1 |
Covered |
T28,T20,T55 |
|
StableSt |
- |
- |
- |
- |
- |
- |
0 |
Covered |
T6,T28,T20 |
|
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
T4,T5,T1 |
0 |
Covered |
T4,T5,T1 |
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 |
6363167 |
84 |
0 |
0 |
T6 |
717 |
2 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
2 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
2 |
0 |
0 |
T49 |
0 |
4 |
0 |
0 |
T50 |
0 |
6 |
0 |
0 |
T55 |
0 |
2 |
0 |
0 |
T56 |
0 |
2 |
0 |
0 |
T57 |
0 |
2 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
2 |
0 |
0 |
T169 |
0 |
2 |
0 |
0 |
CntIncr_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
45107 |
0 |
0 |
T6 |
717 |
59 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
20 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
25 |
0 |
0 |
T49 |
0 |
154 |
0 |
0 |
T50 |
0 |
252 |
0 |
0 |
T55 |
0 |
37 |
0 |
0 |
T56 |
0 |
46 |
0 |
0 |
T57 |
0 |
52 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
47 |
0 |
0 |
T169 |
0 |
64 |
0 |
0 |
CntNoWrap_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5879314 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DetectStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
1 |
0 |
0 |
T206 |
609 |
1 |
0 |
0 |
T207 |
503 |
0 |
0 |
0 |
T208 |
424 |
0 |
0 |
0 |
T209 |
746 |
0 |
0 |
0 |
T210 |
404 |
0 |
0 |
0 |
T211 |
677 |
0 |
0 |
0 |
T212 |
524 |
0 |
0 |
0 |
T213 |
66090 |
0 |
0 |
0 |
T214 |
17974 |
0 |
0 |
0 |
T215 |
416 |
0 |
0 |
0 |
DetectedOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
61919 |
0 |
0 |
T6 |
717 |
249 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
24 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
116 |
0 |
0 |
T49 |
0 |
146 |
0 |
0 |
T50 |
0 |
174 |
0 |
0 |
T55 |
0 |
43 |
0 |
0 |
T56 |
0 |
38 |
0 |
0 |
T57 |
0 |
131 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
87 |
0 |
0 |
T169 |
0 |
120 |
0 |
0 |
DetectedPulseOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
40 |
0 |
0 |
T6 |
717 |
1 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T50 |
0 |
3 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
DisabledIdleSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5766415 |
0 |
0 |
T1 |
485 |
84 |
0 |
0 |
T2 |
486 |
85 |
0 |
0 |
T3 |
672 |
271 |
0 |
0 |
T4 |
447 |
46 |
0 |
0 |
T5 |
493 |
92 |
0 |
0 |
T8 |
507 |
106 |
0 |
0 |
T13 |
822 |
421 |
0 |
0 |
T14 |
494 |
93 |
0 |
0 |
T15 |
421 |
20 |
0 |
0 |
T16 |
504 |
103 |
0 |
0 |
DisabledNoDetection_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5768387 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
EnterDebounceSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
43 |
0 |
0 |
T6 |
717 |
1 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T50 |
0 |
3 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
EnterDetectSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
41 |
0 |
0 |
T6 |
717 |
1 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T50 |
0 |
3 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
EnterStableSt_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
40 |
0 |
0 |
T6 |
717 |
1 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T50 |
0 |
3 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
PulseIsPulse_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
40 |
0 |
0 |
T6 |
717 |
1 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
1 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
1 |
0 |
0 |
T49 |
0 |
2 |
0 |
0 |
T50 |
0 |
3 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T56 |
0 |
1 |
0 |
0 |
T57 |
0 |
1 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
StayInStableSt
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
61860 |
0 |
0 |
T6 |
717 |
247 |
0 |
0 |
T7 |
942 |
0 |
0 |
0 |
T9 |
505 |
0 |
0 |
0 |
T20 |
0 |
23 |
0 |
0 |
T26 |
502 |
0 |
0 |
0 |
T27 |
1231 |
0 |
0 |
0 |
T28 |
0 |
115 |
0 |
0 |
T49 |
0 |
143 |
0 |
0 |
T50 |
0 |
170 |
0 |
0 |
T55 |
0 |
42 |
0 |
0 |
T56 |
0 |
36 |
0 |
0 |
T57 |
0 |
129 |
0 |
0 |
T69 |
402 |
0 |
0 |
0 |
T70 |
522 |
0 |
0 |
0 |
T71 |
422 |
0 |
0 |
0 |
T72 |
427 |
0 |
0 |
0 |
T73 |
431 |
0 |
0 |
0 |
T119 |
0 |
85 |
0 |
0 |
T169 |
0 |
118 |
0 |
0 |
gen_edge_to_low_event_sva.EdgeToLowEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
1614 |
0 |
0 |
T1 |
485 |
0 |
0 |
0 |
T2 |
486 |
0 |
0 |
0 |
T3 |
672 |
1 |
0 |
0 |
T4 |
447 |
6 |
0 |
0 |
T5 |
493 |
6 |
0 |
0 |
T6 |
0 |
1 |
0 |
0 |
T8 |
507 |
0 |
0 |
0 |
T13 |
822 |
0 |
0 |
0 |
T14 |
494 |
7 |
0 |
0 |
T15 |
421 |
1 |
0 |
0 |
T16 |
504 |
5 |
0 |
0 |
T26 |
0 |
6 |
0 |
0 |
T27 |
0 |
2 |
0 |
0 |
T70 |
0 |
6 |
0 |
0 |
gen_low_level_sva.LowLevelEvent_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
5881405 |
0 |
0 |
T1 |
485 |
85 |
0 |
0 |
T2 |
486 |
86 |
0 |
0 |
T3 |
672 |
272 |
0 |
0 |
T4 |
447 |
47 |
0 |
0 |
T5 |
493 |
93 |
0 |
0 |
T8 |
507 |
107 |
0 |
0 |
T13 |
822 |
422 |
0 |
0 |
T14 |
494 |
94 |
0 |
0 |
T15 |
421 |
21 |
0 |
0 |
T16 |
504 |
104 |
0 |
0 |
gen_not_sticky_sva.StableStDropOut_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
6363167 |
19 |
0 |
0 |
T28 |
618 |
1 |
0 |
0 |
T30 |
725 |
0 |
0 |
0 |
T49 |
0 |
1 |
0 |
0 |
T50 |
0 |
2 |
0 |
0 |
T53 |
0 |
1 |
0 |
0 |
T55 |
0 |
1 |
0 |
0 |
T60 |
500 |
0 |
0 |
0 |
T61 |
480 |
0 |
0 |
0 |
T99 |
502 |
0 |
0 |
0 |
T113 |
4431 |
0 |
0 |
0 |
T188 |
0 |
1 |
0 |
0 |
T191 |
406 |
0 |
0 |
0 |
T192 |
862 |
0 |
0 |
0 |
T193 |
425 |
0 |
0 |
0 |
T194 |
433 |
0 |
0 |
0 |
T205 |
0 |
1 |
0 |
0 |
T216 |
0 |
2 |
0 |
0 |
T217 |
0 |
1 |
0 |
0 |
T218 |
0 |
1 |
0 |
0 |