Line Coverage for Instance : tb.dut.gen_partitions[0].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
TOTAL | | 86 | 86 | 100.00 |
CONT_ASSIGN | 138 | 1 | 1 | 100.00 |
ALWAYS | 153 | 3 | 3 | 100.00 |
ALWAYS | 164 | 61 | 61 | 100.00 |
CONT_ASSIGN | 334 | 1 | 1 | 100.00 |
CONT_ASSIGN | 336 | 1 | 1 | 100.00 |
CONT_ASSIGN | 339 | 1 | 1 | 100.00 |
CONT_ASSIGN | 349 | 1 | 1 | 100.00 |
CONT_ASSIGN | 350 | 1 | 1 | 100.00 |
CONT_ASSIGN | 354 | 1 | 1 | 100.00 |
CONT_ASSIGN | 358 | 1 | 1 | 100.00 |
CONT_ASSIGN | 395 | 1 | 1 | 100.00 |
CONT_ASSIGN | 420 | 1 | 1 | 100.00 |
CONT_ASSIGN | 454 | 1 | 1 | 100.00 |
ALWAYS | 461 | 3 | 3 | 100.00 |
ALWAYS | 464 | 8 | 8 | 100.00 |
137 // Output partition error state.
138 1/1 assign error_o = error_q;
Tests: T1 T2 T3
139
140 // This partition cannot do any write accesses, hence we tie this
141 // constantly off.
142 assign otp_wdata_o = '0;
143 // Depending on the partition configuration, the wrapper is instructed to ignore integrity
144 // calculations and checks. To be on the safe side, the partition filters error responses at this
145 // point and does not report any integrity errors if integrity is disabled.
146 otp_err_e otp_err;
147 if (Info.integrity) begin : gen_integrity
148 assign otp_cmd_o = prim_otp_pkg::Read;
149 assign otp_err = otp_err_e'(otp_err_i);
150 end else begin : gen_no_integrity
151 assign otp_cmd_o = prim_otp_pkg::ReadRaw;
152 always_comb begin
153 1/1 if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
Tests: T1 T2 T3
154 1/1 otp_err = NoError;
Tests: T13 T7 T103
155 end else begin
156 1/1 otp_err = otp_err_e'(otp_err_i);
Tests: T1 T2 T3
157 end
158 end
159 end
160
161 `ASSERT_KNOWN(FsmStateKnown_A, state_q)
162 always_comb begin : p_fsm
163 // Default assignments
164 1/1 state_d = state_q;
Tests: T1 T2 T3
165
166 // Response to init request
167 1/1 init_done_o = 1'b0;
Tests: T1 T2 T3
168
169 // OTP signals
170 1/1 otp_req_o = 1'b0;
Tests: T1 T2 T3
171 1/1 otp_addr_sel = DigestAddrSel;
Tests: T1 T2 T3
172
173 // TL-UL signals
174 1/1 tlul_gnt_o = 1'b0;
Tests: T1 T2 T3
175 1/1 tlul_rvalid_o = 1'b0;
Tests: T1 T2 T3
176 1/1 tlul_rerror_o = '0;
Tests: T1 T2 T3
177
178 // Enable for buffered digest register
179 1/1 digest_reg_en = 1'b0;
Tests: T1 T2 T3
180
181 // Error Register
182 1/1 error_d = error_q;
Tests: T1 T2 T3
183 1/1 pending_tlul_error_d = 1'b0;
Tests: T1 T2 T3
184 1/1 fsm_err_o = 1'b0;
Tests: T1 T2 T3
185
186 1/1 unique case (state_q)
Tests: T1 T2 T3
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 1/1 if (init_req_i) begin
Tests: T1 T2 T3
192 // If the partition does not have a digest, no initialization is necessary.
193 1/1 if (Info.sw_digest) begin
Tests: T1 T2 T3
194 1/1 state_d = InitSt;
Tests: T1 T2 T3
195 end else begin
196 unreachable state_d = IdleSt;
197 end
198 end
MISSING_ELSE
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 1/1 otp_req_o = 1'b1;
Tests: T1 T2 T3
206 1/1 if (otp_gnt_i) begin
Tests: T1 T2 T3
207 1/1 state_d = InitWaitSt;
Tests: T1 T2 T3
208 end
==> MISSING_ELSE
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 1/1 if (otp_rvalid_i) begin
Tests: T1 T2 T3
216 1/1 digest_reg_en = 1'b1;
Tests: T1 T2 T3
217 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T1 T2 T3
218 1/1 state_d = IdleSt;
Tests: T1 T2 T3
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 1/1 if (otp_err != NoError) begin
Tests: T1 T2 T3
221 excluded error_d = MacroEccCorrError;
Exclude Annotation: VC_COV_UNR
222 end
MISSING_ELSE
223 end else begin
224 excluded state_d = ErrorSt;
Exclude Annotation: VC_COV_UNR
225 excluded error_d = otp_err;
Exclude Annotation: VC_COV_UNR
226 end
227 end
MISSING_ELSE
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 1/1 init_done_o = 1'b1;
Tests: T1 T2 T3
234 1/1 if (tlul_req_i) begin
Tests: T1 T2 T3
235 1/1 error_d = NoError; // clear recoverable soft errors.
Tests: T3 T6 T10
236 1/1 state_d = ReadSt;
Tests: T3 T6 T10
237 1/1 tlul_gnt_o = 1'b1;
Tests: T3 T6 T10
238 end
MISSING_ELSE
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
247 // Double check the address range.
248 1/1 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
Tests: T3 T6 T10
249 1/1 otp_req_o = 1'b1;
Tests: T3 T6 T10
250 1/1 otp_addr_sel = DataAddrSel;
Tests: T3 T6 T10
251 1/1 if (otp_gnt_i) begin
Tests: T3 T6 T10
252 1/1 state_d = ReadWaitSt;
Tests: T3 T6 T10
253 end
MISSING_ELSE
254 end else begin
255 1/1 state_d = IdleSt;
Tests: T4 T18 T105
256 1/1 error_d = AccessError; // Signal this error, but do not go into terminal error state.
Tests: T4 T18 T105
257 1/1 tlul_rvalid_o = 1'b1;
Tests: T4 T18 T105
258 1/1 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
Tests: T4 T18 T105
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
267 1/1 if (otp_rvalid_i) begin
Tests: T3 T6 T10
268 1/1 tlul_rvalid_o = 1'b1;
Tests: T3 T6 T10
269 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T3 T6 T10
270 1/1 state_d = IdleSt;
Tests: T3 T6 T10
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 1/1 if (otp_err != NoError) begin
Tests: T3 T6 T10
273 excluded error_d = MacroEccCorrError;
Exclude Annotation: VC_COV_UNR
274 end
MISSING_ELSE
275 end else begin
276 excluded state_d = ErrorSt;
Exclude Annotation: VC_COV_UNR
277 excluded error_d = otp_err;
Exclude Annotation: VC_COV_UNR
278 // This causes the TL-UL adapter to return a bus error.
279 excluded tlul_rerror_o = 2'b11;
Exclude Annotation: VC_COV_UNR
280 end
281 end
MISSING_ELSE
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 1/1 if (error_q == NoError) begin
Tests: T3 T4 T12
289 1/1 error_d = FsmStateError;
Tests: T23 T24 T25
290 end
MISSING_ELSE
291
292 // Return bus errors if there are pending TL-UL requests.
293 1/1 if (pending_tlul_error_q) begin
Tests: T3 T4 T12
294 1/1 tlul_rerror_o = 2'b11;
Tests: T12 T13 T7
295 1/1 tlul_rvalid_o = 1'b1;
Tests: T12 T13 T7
296 1/1 end else if (tlul_req_i) begin
Tests: T3 T4 T12
297 1/1 tlul_gnt_o = 1'b1;
Tests: T12 T13 T7
298 1/1 pending_tlul_error_d = 1'b1;
Tests: T12 T13 T7
299 end
MISSING_ELSE
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
306 fsm_err_o = 1'b1;
307 end
308 ///////////////////////////////////////////////////////////////////
309 endcase // state_q
310
311 // Unconditionally jump into the terminal error state in case of
312 // an ECC error or escalation, and lock access to the partition down.
313 // SEC_CM: PART.FSM.LOCAL_ESC
314 1/1 if (ecc_err) begin
Tests: T1 T2 T3
315 1/1 state_d = ErrorSt;
Tests: T97 T154 T155
316 1/1 if (state_q != ErrorSt) begin
Tests: T97 T154 T155
317 1/1 error_d = CheckFailError;
Tests: T97 T154 T155
318 end
MISSING_ELSE
319 end
MISSING_ELSE
320 // SEC_CM: PART.FSM.GLOBAL_ESC
321 1/1 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
Tests: T1 T2 T3
322 1/1 state_d = ErrorSt;
Tests: T3 T4 T12
323 1/1 fsm_err_o = 1'b1;
Tests: T3 T4 T12
324 1/1 if (state_q != ErrorSt) begin
Tests: T3 T4 T12
325 1/1 error_d = FsmStateError;
Tests: T3 T4 T12
326 end
MISSING_ELSE
327 end
MISSING_ELSE
328 end
329
330 ///////////////////////////////////
331 // Signals to/from TL-UL Adapter //
332 ///////////////////////////////////
333
334 1/1 assign tlul_addr_d = tlul_addr_i;
Tests: T1 T2 T3
335 // Do not forward data in case of an error.
336 1/1 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
Tests: T1 T2 T3
337
338 if (Info.offset == 0) begin : gen_zero_offset
339 1/1 assign tlul_addr_in_range = {1'b0, tlul_addr_q, 2'b00} < PartEnd;
Tests: T1 T2 T3
340
341 end else begin : gen_nonzero_offset
342 assign tlul_addr_in_range = {tlul_addr_q, 2'b00} >= Info.offset &&
343 {1'b0, tlul_addr_q, 2'b00} < PartEnd;
344 end
345
346 // Note that OTP works on halfword (16bit) addresses, hence need to
347 // shift the addresses appropriately.
348 logic [OtpByteAddrWidth-1:0] addr_calc;
349 1/1 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
Tests: T1 T2 T3
350 1/1 assign otp_addr_o = addr_calc[OtpByteAddrWidth-1:OtpAddrShift];
Tests: T1 T2 T3
351
352 if (OtpAddrShift > 0) begin : gen_unused
353 logic unused_bits;
354 1/1 assign unused_bits = ^addr_calc[OtpAddrShift-1:0];
Tests: T1 T2 T3
355 end
356
357 // Request 32bit except in case of the digest.
358 1/1 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
Tests: T1 T2 T3
359 OtpSizeWidth'(unsigned'(ScrmblBlockWidth / OtpWidth - 1)) :
360 OtpSizeWidth'(unsigned'(32 / OtpWidth - 1));
361
362 ////////////////
363 // Digest Reg //
364 ////////////////
365
366 if (Info.sw_digest) begin : gen_ecc_reg
367 // SEC_CM: PART.DATA_REG.INTEGRITY
368 otp_ctrl_ecc_reg #(
369 .Width ( ScrmblBlockWidth ),
370 .Depth ( 1 )
371 ) u_otp_ctrl_ecc_reg (
372 .clk_i,
373 .rst_ni,
374 .wren_i ( digest_reg_en ),
375 .addr_i ( '0 ),
376 .wdata_i ( otp_rdata_i ),
377 .rdata_o ( ),
378 .data_o ( digest_o ),
379 .ecc_err_o ( ecc_err )
380 );
381 end else begin : gen_no_ecc_reg
382 logic unused_digest_reg_en;
383 logic unused_rdata;
384 assign unused_digest_reg_en = digest_reg_en;
385 assign unused_rdata = ^otp_rdata_i[32 +: 32]; // Upper word is not connected in this case.
386 assign digest_o = '0;
387 assign ecc_err = 1'b0;
388 end
389
390 ////////////////////////
391 // DAI Access Control //
392 ////////////////////////
393
394 mubi8_t init_locked;
395 1/1 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
396
397 // Aggregate all possible DAI write locks. The partition is also locked when uninitialized.
398 // Note that the locks are redundantly encoded values.
399 part_access_t access_pre;
400 prim_mubi8_sender #(
401 .AsyncOn(0)
402 ) u_prim_mubi8_sender_write_lock_pre (
403 .clk_i,
404 .rst_ni,
405 .mubi_i(mubi8_and_lo(init_locked, access_i.write_lock)),
406 .mubi_o(access_pre.write_lock)
407 );
408 prim_mubi8_sender #(
409 .AsyncOn(0)
410 ) u_prim_mubi8_sender_read_lock_pre (
411 .clk_i,
412 .rst_ni,
413 .mubi_i(mubi8_and_lo(init_locked, access_i.read_lock)),
414 .mubi_o(access_pre.read_lock)
415 );
416
417 // SEC_CM: PART.MEM.SW_UNWRITABLE
418 if (Info.write_lock) begin : gen_digest_write_lock
419 mubi8_t digest_locked;
420 1/1 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
421
422 // This prevents the synthesis tool from optimizing the multibit signal.
423 prim_mubi8_sender #(
424 .AsyncOn(0)
425 ) u_prim_mubi8_sender_write_lock (
426 .clk_i,
427 .rst_ni,
428 .mubi_i(mubi8_and_lo(access_pre.write_lock, digest_locked)),
429 .mubi_o(access_o.write_lock)
430 );
431
432 `ASSERT(DigestWriteLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.write_lock))
433 end else begin : gen_no_digest_write_lock
434 assign access_o.write_lock = access_pre.write_lock;
435 end
436
437 // SEC_CM: PART.MEM.SW_UNREADABLE
438 if (Info.read_lock) begin : gen_digest_read_lock
439 mubi8_t digest_locked;
440 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
441
442 // This prevents the synthesis tool from optimizing the multibit signal.
443 prim_mubi8_sender #(
444 .AsyncOn(0)
445 ) u_prim_mubi8_sender_read_lock (
446 .clk_i,
447 .rst_ni,
448 .mubi_i(mubi8_and_lo(access_pre.read_lock, digest_locked)),
449 .mubi_o(access_o.read_lock)
450 );
451
452 `ASSERT(DigestReadLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.read_lock))
453 end else begin : gen_no_digest_read_lock
454 1/1 assign access_o.read_lock = access_pre.read_lock;
Tests: T1 T2 T3
455 end
456
457 ///////////////
458 // Registers //
459 ///////////////
460
461 3/3 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3
PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt):
461.1 `ifdef SIMULATION
461.2 prim_sparse_fsm_flop #(
461.3 .StateEnumT(state_e),
461.4 .Width($bits(state_e)),
461.5 .ResetValue($bits(state_e)'(ResetSt)),
461.6 .EnableAlertTriggerSVA(1),
461.7 .CustomForceName("state_q")
461.8 ) u_state_regs (
461.9 .clk_i ( clk_i ),
461.10 .rst_ni ( rst_ni ),
461.11 .state_i ( state_d ),
461.12 .state_o ( )
461.13 );
461.14 always_ff @(posedge clk_i or negedge rst_ni) begin
461.15 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
461.16 1/1 state_q <= ResetSt;
Tests: T1 T2 T3
461.17 end else begin
461.18 1/1 state_q <= state_d;
Tests: T1 T2 T3
461.19 end
461.20 end
461.21 u_state_regs_A: assert property (@(posedge clk_i) disable iff ((!rst_ni) !== '0) (state_q === u_state_regs.state_o))
461.22 else begin
461.23 `ifdef UVM
461.24 uvm_pkg::uvm_report_error("ASSERT FAILED", "u_state_regs_A", uvm_pkg::UVM_NONE,
461.25 "../src/lowrisc_ip_otp_ctrl_1.0/rtl/otp_ctrl_part_unbuf.sv", 461, "", 1);
461.26 `else
461.27 $error("%0t: (%0s:%0d) [%m] [ASSERT FAILED] %0s", $time, `__FILE__, `__LINE__,
461.28 `PRIM_STRINGIFY(u_state_regs_A));
461.29 `endif
461.30 end
461.31 `else
461.32 prim_sparse_fsm_flop #(
461.33 .StateEnumT(state_e),
461.34 .Width($bits(state_e)),
461.35 .ResetValue($bits(state_e)'(ResetSt)),
461.36 .EnableAlertTriggerSVA(1)
461.37 ) u_state_regs (
461.38 .clk_i ( `PRIM_FLOP_CLK ),
461.39 .rst_ni ( `PRIM_FLOP_RST ),
461.40 .state_i ( state_d ),
461.41 .state_o ( state_q )
461.42 );
461.43 `endif462
463 always_ff @(posedge clk_i or negedge rst_ni) begin : p_regs
464 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
465 1/1 error_q <= NoError;
Tests: T1 T2 T3
466 1/1 tlul_addr_q <= '0;
Tests: T1 T2 T3
467 1/1 pending_tlul_error_q <= 1'b0;
Tests: T1 T2 T3
468 end else begin
469 1/1 error_q <= error_d;
Tests: T1 T2 T3
470 1/1 pending_tlul_error_q <= pending_tlul_error_d;
Tests: T1 T2 T3
471 1/1 if (tlul_gnt_o) begin
Tests: T1 T2 T3
472 1/1 tlul_addr_q <= tlul_addr_d;
Tests: T3 T6 T10
473 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.gen_partitions[0].gen_unbuffered.u_part_unbuf
| Total | Covered | Percent |
Conditions | 29 | 29 | 100.00 |
Logical | 29 | 29 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 220
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests | Exclude Annotation |
0 | Covered | T1,T2,T3 |
1 | Excluded | |
VC_COV_UNR |
LINE 272
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests | Exclude Annotation |
0 | Covered | T3,T6,T10 |
1 | Excluded | |
VC_COV_UNR |
LINE 288
EXPRESSION (error_q == NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T23,T24,T25 |
LINE 316
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T97,T154,T155 |
1 | Covered | T97,T154,T155 |
LINE 324
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T3,T4,T12 |
LINE 336
EXPRESSION ((tlul_rvalid_o && (tlul_rerror_o == '0)) ? otp_rdata_i[31:0] : '0)
--------------------1-------------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rvalid_o && (tlul_rerror_o == '0))
------1------ ----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T4,T12,T13 |
1 | 1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rerror_o == '0)
----------1----------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 349
EXPRESSION ((otp_addr_sel == DigestAddrSel) ? DigestOffset : ({tlul_addr_q, 2'b0}))
---------------1---------------
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 349
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 358
EXPRESSION
Number Term
1 (otp_addr_sel == DigestAddrSel) ? (2'((unsigned'(((otp_ctrl_pkg::ScrmblBlockWidth / otp_ctrl_pkg::OtpWidth) - 1))))) : (2'((unsigned'(((32 / otp_ctrl_pkg::OtpWidth) - 1))))))
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 358
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 395
EXPRESSION (((~init_done_o)) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 420
EXPRESSION ((digest_o != '0) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T4,T11,T12 |
LINE 420
SUB-EXPRESSION (digest_o != '0)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T4,T11,T12 |
FSM Coverage for Instance : tb.dut.gen_partitions[0].gen_unbuffered.u_part_unbuf
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
7 |
7 |
100.00 |
(Not included in score) |
Transitions |
13 |
10 |
76.92 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
ErrorSt |
224 |
Covered |
T3,T4,T12 |
IdleSt |
196 |
Covered |
T1,T2,T3 |
InitSt |
194 |
Covered |
T1,T2,T3 |
InitWaitSt |
207 |
Covered |
T1,T2,T3 |
ReadSt |
236 |
Covered |
T3,T6,T10 |
ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
ResetSt |
190 |
Covered |
T1,T2,T3 |
transitions | Line No. | Covered | Tests | Exclude Annotation |
IdleSt->ErrorSt |
315 |
Covered |
T3,T4,T12 |
|
IdleSt->ReadSt |
236 |
Covered |
T3,T6,T10 |
|
InitSt->ErrorSt |
315 |
Not Covered |
|
|
InitSt->InitWaitSt |
207 |
Covered |
T1,T2,T3 |
|
InitWaitSt->ErrorSt |
224 |
Covered |
T113,T119,T206 |
|
InitWaitSt->IdleSt |
218 |
Covered |
T1,T2,T3 |
|
ReadSt->ErrorSt |
315 |
Not Covered |
|
|
ReadSt->IdleSt |
255 |
Covered |
T4,T18,T105 |
|
ReadSt->ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
|
ReadWaitSt->ErrorSt |
276 |
Not Covered |
|
|
ReadWaitSt->IdleSt |
270 |
Covered |
T3,T6,T10 |
|
ResetSt->ErrorSt |
315 |
Covered |
T97,T98,T99 |
|
ResetSt->IdleSt |
196 |
Excluded |
|
VC_COV_UNR |
ResetSt->InitSt |
194 |
Covered |
T1,T2,T3 |
|
Summary for FSM :: error_q
| Total | Covered | Percent | |
States |
4 |
4 |
100.00 |
(Not included in score) |
Transitions |
7 |
7 |
100.00 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: error_q
states | Line No. | Covered | Tests | Exclude Annotation |
AccessError |
256 |
Covered |
T4,T18,T105 |
|
CheckFailError |
317 |
Covered |
T97,T154,T155 |
|
FsmStateError |
289 |
Covered |
T3,T4,T12 |
|
MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
NoError |
235 |
Covered |
T1,T2,T3 |
|
transitions | Line No. | Covered | Tests | Exclude Annotation |
AccessError->CheckFailError |
317 |
Excluded |
|
|
AccessError->FsmStateError |
325 |
Covered |
T109,T113,T14 |
|
AccessError->MacroEccCorrError |
221 |
Excluded |
|
|
AccessError->NoError |
235 |
Covered |
T4,T18,T105 |
|
CheckFailError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
CheckFailError->FsmStateError |
325 |
Excluded |
|
VC_COV_UNR |
CheckFailError->MacroEccCorrError |
221 |
Excluded |
|
|
CheckFailError->NoError |
235 |
Covered |
T97,T154,T155 |
|
FsmStateError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
FsmStateError->CheckFailError |
317 |
Excluded |
|
VC_COV_UNR |
FsmStateError->MacroEccCorrError |
221 |
Excluded |
|
|
FsmStateError->NoError |
235 |
Covered |
T3,T4,T12 |
|
MacroEccCorrError->AccessError |
256 |
Excluded |
|
|
MacroEccCorrError->CheckFailError |
317 |
Excluded |
|
|
MacroEccCorrError->FsmStateError |
325 |
Excluded |
|
|
MacroEccCorrError->NoError |
235 |
Excluded |
|
|
NoError->AccessError |
256 |
Covered |
T4,T18,T105 |
|
NoError->CheckFailError |
317 |
Covered |
T97,T154,T155 |
|
NoError->FsmStateError |
289 |
Covered |
T3,T4,T12 |
|
NoError->MacroEccCorrError |
221 |
Excluded |
|
|
Branch Coverage for Instance : tb.dut.gen_partitions[0].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
Branches |
|
41 |
41 |
100.00 |
TERNARY |
336 |
2 |
2 |
100.00 |
TERNARY |
349 |
2 |
2 |
100.00 |
TERNARY |
358 |
2 |
2 |
100.00 |
TERNARY |
395 |
2 |
2 |
100.00 |
TERNARY |
420 |
2 |
2 |
100.00 |
CASE |
186 |
18 |
18 |
100.00 |
IF |
314 |
3 |
3 |
100.00 |
IF |
321 |
3 |
3 |
100.00 |
IF |
461 |
2 |
2 |
100.00 |
IF |
464 |
3 |
3 |
100.00 |
IF |
153 |
2 |
2 |
100.00 |
336 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T3,T6,T10 |
0 |
Covered |
T1,T2,T3 |
349 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
358 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
395 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
420 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T4,T11,T12 |
0 |
Covered |
T1,T2,T3 |
186 unique case (state_q)
-1-
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 if (init_req_i) begin
-2-
192 // If the partition does not have a digest, no initialization is necessary.
193 if (Info.sw_digest) begin
-3-
194 state_d = InitSt;
==>
195 end else begin
196 state_d = IdleSt;
==> (Unreachable)
197 end
198 end
MISSING_ELSE
==>
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 otp_req_o = 1'b1;
206 if (otp_gnt_i) begin
-4-
207 state_d = InitWaitSt;
==>
208 end
MISSING_ELSE
==> (Excluded)
Exclude Annotation: VC_COV_UNR
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 if (otp_rvalid_i) begin
-5-
216 digest_reg_en = 1'b1;
217 if (otp_err inside {NoError, MacroEccCorrError}) begin
-6-
218 state_d = IdleSt;
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 if (otp_err != NoError) begin
-7-
221 error_d = MacroEccCorrError;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
222 end
MISSING_ELSE
==>
223 end else begin
224 state_d = ErrorSt;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
225 error_d = otp_err;
226 end
227 end
MISSING_ELSE
==>
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 init_done_o = 1'b1;
234 if (tlul_req_i) begin
-8-
235 error_d = NoError; // clear recoverable soft errors.
==>
236 state_d = ReadSt;
237 tlul_gnt_o = 1'b1;
238 end
MISSING_ELSE
==>
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 init_done_o = 1'b1;
247 // Double check the address range.
248 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
-9-
249 otp_req_o = 1'b1;
250 otp_addr_sel = DataAddrSel;
251 if (otp_gnt_i) begin
-10-
252 state_d = ReadWaitSt;
==>
253 end
MISSING_ELSE
==>
254 end else begin
255 state_d = IdleSt;
==>
256 error_d = AccessError; // Signal this error, but do not go into terminal error state.
257 tlul_rvalid_o = 1'b1;
258 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 init_done_o = 1'b1;
267 if (otp_rvalid_i) begin
-11-
268 tlul_rvalid_o = 1'b1;
269 if (otp_err inside {NoError, MacroEccCorrError}) begin
-12-
270 state_d = IdleSt;
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 if (otp_err != NoError) begin
-13-
273 error_d = MacroEccCorrError;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
274 end
MISSING_ELSE
==>
275 end else begin
276 state_d = ErrorSt;
==> (Excluded)
Exclude Annotation: VC_COV_UNR
277 error_d = otp_err;
278 // This causes the TL-UL adapter to return a bus error.
279 tlul_rerror_o = 2'b11;
280 end
281 end
MISSING_ELSE
==>
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 if (error_q == NoError) begin
-14-
289 error_d = FsmStateError;
==>
290 end
MISSING_ELSE
==>
291
292 // Return bus errors if there are pending TL-UL requests.
293 if (pending_tlul_error_q) begin
-15-
294 tlul_rerror_o = 2'b11;
==>
295 tlul_rvalid_o = 1'b1;
296 end else if (tlul_req_i) begin
-16-
297 tlul_gnt_o = 1'b1;
==>
298 pending_tlul_error_d = 1'b1;
299 end
MISSING_ELSE
==>
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
==>
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | -9- | -10- | -11- | -12- | -13- | -14- | -15- | -16- | Status | Tests | Exclude Annotation |
ResetSt |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
ResetSt |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Unreachable |
|
|
ResetSt |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
InitSt |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
InitSt |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
InitWaitSt |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
InitWaitSt |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
InitWaitSt |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
InitWaitSt |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
IdleSt |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
|
IdleSt |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
|
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
|
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T106,T125,T109 |
|
ReadSt |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
Covered |
T4,T18,T105 |
|
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
Covered |
T3,T6,T10 |
|
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
Excluded |
|
VC_COV_UNR |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
|
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T23,T24,T25 |
|
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
Covered |
T3,T4,T12 |
|
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
Covered |
T12,T13,T7 |
|
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
1 |
Covered |
T12,T13,T7 |
|
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
0 |
Covered |
T3,T4,T12 |
|
default |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T23,T24,T25 |
|
314 if (ecc_err) begin
-1-
315 state_d = ErrorSt;
316 if (state_q != ErrorSt) begin
-2-
317 error_d = CheckFailError;
==>
318 end
MISSING_ELSE
==>
319 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T97,T154,T155 |
1 |
0 |
Covered |
T97,T154,T155 |
0 |
- |
Covered |
T1,T2,T3 |
321 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
-1-
322 state_d = ErrorSt;
323 fsm_err_o = 1'b1;
324 if (state_q != ErrorSt) begin
-2-
325 error_d = FsmStateError;
==>
326 end
MISSING_ELSE
==>
327 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T3,T4,T12 |
1 |
0 |
Covered |
T3,T4,T12 |
0 |
- |
Covered |
T1,T2,T3 |
461 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
464 if (!rst_ni) begin
-1-
465 error_q <= NoError;
==>
466 tlul_addr_q <= '0;
467 pending_tlul_error_q <= 1'b0;
468 end else begin
469 error_q <= error_d;
470 pending_tlul_error_q <= pending_tlul_error_d;
471 if (tlul_gnt_o) begin
-2-
472 tlul_addr_q <= tlul_addr_d;
==>
473 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Covered |
T3,T6,T10 |
0 |
0 |
Covered |
T1,T2,T3 |
153 if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
-1-
154 otp_err = NoError;
==>
155 end else begin
156 otp_err = otp_err_e'(otp_err_i);
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T13,T7,T103 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.gen_partitions[0].gen_unbuffered.u_part_unbuf
Assertion Details
AccessKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestOffsetMustBeRepresentable_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
EccErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
9499 |
0 |
0 |
T61 |
66025 |
0 |
0 |
0 |
T91 |
84337 |
0 |
0 |
0 |
T97 |
12000 |
3176 |
0 |
0 |
T124 |
46418 |
0 |
0 |
0 |
T125 |
43470 |
0 |
0 |
0 |
T154 |
0 |
3806 |
0 |
0 |
T155 |
0 |
2517 |
0 |
0 |
T159 |
11266 |
0 |
0 |
0 |
T161 |
35248 |
0 |
0 |
0 |
T185 |
17733 |
0 |
0 |
0 |
T186 |
6691 |
0 |
0 |
0 |
T187 |
20302 |
0 |
0 |
0 |
ErrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
FsmStateKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitDoneKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitReadLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17464833 |
0 |
0 |
T1 |
6346 |
1168 |
0 |
0 |
T2 |
20779 |
293 |
0 |
0 |
T3 |
16526 |
3841 |
0 |
0 |
T4 |
41540 |
2015 |
0 |
0 |
T5 |
24984 |
355 |
0 |
0 |
T6 |
30776 |
97 |
0 |
0 |
T10 |
44472 |
330 |
0 |
0 |
T11 |
20926 |
497 |
0 |
0 |
T12 |
41197 |
26033 |
0 |
0 |
T13 |
73799 |
9752 |
0 |
0 |
InitWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17464833 |
0 |
0 |
T1 |
6346 |
1168 |
0 |
0 |
T2 |
20779 |
293 |
0 |
0 |
T3 |
16526 |
3841 |
0 |
0 |
T4 |
41540 |
2015 |
0 |
0 |
T5 |
24984 |
355 |
0 |
0 |
T6 |
30776 |
97 |
0 |
0 |
T10 |
44472 |
330 |
0 |
0 |
T11 |
20926 |
497 |
0 |
0 |
T12 |
41197 |
26033 |
0 |
0 |
T13 |
73799 |
9752 |
0 |
0 |
OffsetMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
OtpAddrKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpCmdKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
0 |
0 |
0 |
OtpReqKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpSizeKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpWdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
ReadLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17785212 |
0 |
0 |
T4 |
41540 |
12542 |
0 |
0 |
T5 |
24984 |
1672 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
0 |
0 |
0 |
T12 |
41197 |
28316 |
0 |
0 |
T13 |
73799 |
1288 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
11198 |
0 |
0 |
T93 |
0 |
24323 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
966 |
0 |
0 |
T105 |
0 |
13562 |
0 |
0 |
T106 |
0 |
1202 |
0 |
0 |
T107 |
0 |
30763 |
0 |
0 |
SizeMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
TlulGntKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulReadOnReadLock_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
6405 |
0 |
0 |
T4 |
41540 |
3 |
0 |
0 |
T5 |
24984 |
0 |
0 |
0 |
T7 |
111593 |
25 |
0 |
0 |
T11 |
20926 |
0 |
0 |
0 |
T12 |
41197 |
1 |
0 |
0 |
T13 |
73799 |
2 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
2 |
0 |
0 |
T93 |
0 |
3 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T105 |
0 |
8 |
0 |
0 |
T107 |
0 |
2 |
0 |
0 |
T110 |
0 |
18 |
0 |
0 |
T137 |
0 |
19 |
0 |
0 |
TlulRerrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRvalidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
WriteLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
3009483 |
0 |
0 |
T4 |
41540 |
11945 |
0 |
0 |
T5 |
24984 |
0 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
0 |
0 |
0 |
T12 |
41197 |
0 |
0 |
0 |
T13 |
73799 |
0 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
25317 |
0 |
0 |
T91 |
0 |
1187 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T106 |
0 |
6365 |
0 |
0 |
T109 |
0 |
19823 |
0 |
0 |
T112 |
0 |
5876 |
0 |
0 |
T113 |
0 |
23554 |
0 |
0 |
T126 |
0 |
3264 |
0 |
0 |
T202 |
0 |
4279 |
0 |
0 |
T203 |
0 |
5903 |
0 |
0 |
gen_digest_write_lock.DigestWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
33529442 |
0 |
0 |
T4 |
41540 |
26494 |
0 |
0 |
T5 |
24984 |
0 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
13277 |
0 |
0 |
T12 |
41197 |
2498 |
0 |
0 |
T13 |
73799 |
0 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
106534 |
0 |
0 |
T29 |
0 |
4026 |
0 |
0 |
T93 |
0 |
35871 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T105 |
0 |
34719 |
0 |
0 |
T106 |
0 |
62521 |
0 |
0 |
T107 |
0 |
102709 |
0 |
0 |
T110 |
0 |
2600 |
0 |
0 |
u_state_regs_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
Line Coverage for Instance : tb.dut.gen_partitions[1].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
TOTAL | | 91 | 91 | 100.00 |
CONT_ASSIGN | 138 | 1 | 1 | 100.00 |
CONT_ASSIGN | 149 | 1 | 1 | 100.00 |
ALWAYS | 164 | 68 | 68 | 100.00 |
CONT_ASSIGN | 334 | 1 | 1 | 100.00 |
CONT_ASSIGN | 336 | 1 | 1 | 100.00 |
CONT_ASSIGN | 342 | 1 | 1 | 100.00 |
CONT_ASSIGN | 349 | 1 | 1 | 100.00 |
CONT_ASSIGN | 350 | 1 | 1 | 100.00 |
CONT_ASSIGN | 354 | 1 | 1 | 100.00 |
CONT_ASSIGN | 358 | 1 | 1 | 100.00 |
CONT_ASSIGN | 395 | 1 | 1 | 100.00 |
CONT_ASSIGN | 420 | 1 | 1 | 100.00 |
CONT_ASSIGN | 454 | 1 | 1 | 100.00 |
ALWAYS | 461 | 3 | 3 | 100.00 |
ALWAYS | 464 | 8 | 8 | 100.00 |
137 // Output partition error state.
138 1/1 assign error_o = error_q;
Tests: T1 T2 T3
139
140 // This partition cannot do any write accesses, hence we tie this
141 // constantly off.
142 assign otp_wdata_o = '0;
143 // Depending on the partition configuration, the wrapper is instructed to ignore integrity
144 // calculations and checks. To be on the safe side, the partition filters error responses at this
145 // point and does not report any integrity errors if integrity is disabled.
146 otp_err_e otp_err;
147 if (Info.integrity) begin : gen_integrity
148 assign otp_cmd_o = prim_otp_pkg::Read;
149 1/1 assign otp_err = otp_err_e'(otp_err_i);
Tests: T1 T2 T3
150 end else begin : gen_no_integrity
151 assign otp_cmd_o = prim_otp_pkg::ReadRaw;
152 always_comb begin
153 if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
154 otp_err = NoError;
155 end else begin
156 otp_err = otp_err_e'(otp_err_i);
157 end
158 end
159 end
160
161 `ASSERT_KNOWN(FsmStateKnown_A, state_q)
162 always_comb begin : p_fsm
163 // Default assignments
164 1/1 state_d = state_q;
Tests: T1 T2 T3
165
166 // Response to init request
167 1/1 init_done_o = 1'b0;
Tests: T1 T2 T3
168
169 // OTP signals
170 1/1 otp_req_o = 1'b0;
Tests: T1 T2 T3
171 1/1 otp_addr_sel = DigestAddrSel;
Tests: T1 T2 T3
172
173 // TL-UL signals
174 1/1 tlul_gnt_o = 1'b0;
Tests: T1 T2 T3
175 1/1 tlul_rvalid_o = 1'b0;
Tests: T1 T2 T3
176 1/1 tlul_rerror_o = '0;
Tests: T1 T2 T3
177
178 // Enable for buffered digest register
179 1/1 digest_reg_en = 1'b0;
Tests: T1 T2 T3
180
181 // Error Register
182 1/1 error_d = error_q;
Tests: T1 T2 T3
183 1/1 pending_tlul_error_d = 1'b0;
Tests: T1 T2 T3
184 1/1 fsm_err_o = 1'b0;
Tests: T1 T2 T3
185
186 1/1 unique case (state_q)
Tests: T1 T2 T3
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 1/1 if (init_req_i) begin
Tests: T1 T2 T3
192 // If the partition does not have a digest, no initialization is necessary.
193 1/1 if (Info.sw_digest) begin
Tests: T1 T2 T3
194 1/1 state_d = InitSt;
Tests: T1 T2 T3
195 end else begin
196 unreachable state_d = IdleSt;
197 end
198 end
MISSING_ELSE
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 1/1 otp_req_o = 1'b1;
Tests: T1 T2 T3
206 1/1 if (otp_gnt_i) begin
Tests: T1 T2 T3
207 1/1 state_d = InitWaitSt;
Tests: T1 T2 T3
208 end
MISSING_ELSE
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 1/1 if (otp_rvalid_i) begin
Tests: T1 T2 T3
216 1/1 digest_reg_en = 1'b1;
Tests: T1 T2 T3
217 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T1 T2 T3
218 1/1 state_d = IdleSt;
Tests: T1 T2 T3
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 1/1 if (otp_err != NoError) begin
Tests: T1 T2 T3
221 1/1 error_d = MacroEccCorrError;
Tests: T164 T165 T166
222 end
MISSING_ELSE
223 end else begin
224 1/1 state_d = ErrorSt;
Tests: T92 T167 T168
225 1/1 error_d = otp_err;
Tests: T92 T167 T168
226 end
227 end
MISSING_ELSE
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 1/1 init_done_o = 1'b1;
Tests: T1 T2 T3
234 1/1 if (tlul_req_i) begin
Tests: T1 T2 T3
235 1/1 error_d = NoError; // clear recoverable soft errors.
Tests: T3 T6 T10
236 1/1 state_d = ReadSt;
Tests: T3 T6 T10
237 1/1 tlul_gnt_o = 1'b1;
Tests: T3 T6 T10
238 end
MISSING_ELSE
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
247 // Double check the address range.
248 1/1 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
Tests: T3 T6 T10
249 1/1 otp_req_o = 1'b1;
Tests: T3 T6 T10
250 1/1 otp_addr_sel = DataAddrSel;
Tests: T3 T6 T10
251 1/1 if (otp_gnt_i) begin
Tests: T3 T6 T10
252 1/1 state_d = ReadWaitSt;
Tests: T3 T6 T10
253 end
MISSING_ELSE
254 end else begin
255 1/1 state_d = IdleSt;
Tests: T4 T11 T13
256 1/1 error_d = AccessError; // Signal this error, but do not go into terminal error state.
Tests: T4 T11 T13
257 1/1 tlul_rvalid_o = 1'b1;
Tests: T4 T11 T13
258 1/1 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
Tests: T4 T11 T13
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
267 1/1 if (otp_rvalid_i) begin
Tests: T3 T6 T10
268 1/1 tlul_rvalid_o = 1'b1;
Tests: T3 T6 T10
269 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T3 T6 T10
270 1/1 state_d = IdleSt;
Tests: T3 T6 T10
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 1/1 if (otp_err != NoError) begin
Tests: T3 T6 T10
273 1/1 error_d = MacroEccCorrError;
Tests: T111 T169 T170
274 end
MISSING_ELSE
275 end else begin
276 1/1 state_d = ErrorSt;
Tests: T169 T171 T172
277 1/1 error_d = otp_err;
Tests: T169 T171 T172
278 // This causes the TL-UL adapter to return a bus error.
279 1/1 tlul_rerror_o = 2'b11;
Tests: T169 T171 T172
280 end
281 end
MISSING_ELSE
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 1/1 if (error_q == NoError) begin
Tests: T3 T4 T12
289 1/1 error_d = FsmStateError;
Tests: T23 T24 T25
290 end
MISSING_ELSE
291
292 // Return bus errors if there are pending TL-UL requests.
293 1/1 if (pending_tlul_error_q) begin
Tests: T3 T4 T12
294 1/1 tlul_rerror_o = 2'b11;
Tests: T12 T13 T7
295 1/1 tlul_rvalid_o = 1'b1;
Tests: T12 T13 T7
296 1/1 end else if (tlul_req_i) begin
Tests: T3 T4 T12
297 1/1 tlul_gnt_o = 1'b1;
Tests: T12 T13 T7
298 1/1 pending_tlul_error_d = 1'b1;
Tests: T12 T13 T7
299 end
MISSING_ELSE
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
306 fsm_err_o = 1'b1;
307 end
308 ///////////////////////////////////////////////////////////////////
309 endcase // state_q
310
311 // Unconditionally jump into the terminal error state in case of
312 // an ECC error or escalation, and lock access to the partition down.
313 // SEC_CM: PART.FSM.LOCAL_ESC
314 1/1 if (ecc_err) begin
Tests: T1 T2 T3
315 1/1 state_d = ErrorSt;
Tests: T97 T155
316 1/1 if (state_q != ErrorSt) begin
Tests: T97 T155
317 1/1 error_d = CheckFailError;
Tests: T97 T155
318 end
MISSING_ELSE
319 end
MISSING_ELSE
320 // SEC_CM: PART.FSM.GLOBAL_ESC
321 1/1 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
Tests: T1 T2 T3
322 1/1 state_d = ErrorSt;
Tests: T3 T4 T12
323 1/1 fsm_err_o = 1'b1;
Tests: T3 T4 T12
324 1/1 if (state_q != ErrorSt) begin
Tests: T3 T4 T12
325 1/1 error_d = FsmStateError;
Tests: T3 T4 T12
326 end
MISSING_ELSE
327 end
MISSING_ELSE
328 end
329
330 ///////////////////////////////////
331 // Signals to/from TL-UL Adapter //
332 ///////////////////////////////////
333
334 1/1 assign tlul_addr_d = tlul_addr_i;
Tests: T1 T2 T3
335 // Do not forward data in case of an error.
336 1/1 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
Tests: T1 T2 T3
337
338 if (Info.offset == 0) begin : gen_zero_offset
339 assign tlul_addr_in_range = {1'b0, tlul_addr_q, 2'b00} < PartEnd;
340
341 end else begin : gen_nonzero_offset
342 1/1 assign tlul_addr_in_range = {tlul_addr_q, 2'b00} >= Info.offset &&
Tests: T1 T2 T3
343 {1'b0, tlul_addr_q, 2'b00} < PartEnd;
344 end
345
346 // Note that OTP works on halfword (16bit) addresses, hence need to
347 // shift the addresses appropriately.
348 logic [OtpByteAddrWidth-1:0] addr_calc;
349 1/1 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
Tests: T1 T2 T3
350 1/1 assign otp_addr_o = addr_calc[OtpByteAddrWidth-1:OtpAddrShift];
Tests: T1 T2 T3
351
352 if (OtpAddrShift > 0) begin : gen_unused
353 logic unused_bits;
354 1/1 assign unused_bits = ^addr_calc[OtpAddrShift-1:0];
Tests: T1 T2 T3
355 end
356
357 // Request 32bit except in case of the digest.
358 1/1 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
Tests: T1 T2 T3
359 OtpSizeWidth'(unsigned'(ScrmblBlockWidth / OtpWidth - 1)) :
360 OtpSizeWidth'(unsigned'(32 / OtpWidth - 1));
361
362 ////////////////
363 // Digest Reg //
364 ////////////////
365
366 if (Info.sw_digest) begin : gen_ecc_reg
367 // SEC_CM: PART.DATA_REG.INTEGRITY
368 otp_ctrl_ecc_reg #(
369 .Width ( ScrmblBlockWidth ),
370 .Depth ( 1 )
371 ) u_otp_ctrl_ecc_reg (
372 .clk_i,
373 .rst_ni,
374 .wren_i ( digest_reg_en ),
375 .addr_i ( '0 ),
376 .wdata_i ( otp_rdata_i ),
377 .rdata_o ( ),
378 .data_o ( digest_o ),
379 .ecc_err_o ( ecc_err )
380 );
381 end else begin : gen_no_ecc_reg
382 logic unused_digest_reg_en;
383 logic unused_rdata;
384 assign unused_digest_reg_en = digest_reg_en;
385 assign unused_rdata = ^otp_rdata_i[32 +: 32]; // Upper word is not connected in this case.
386 assign digest_o = '0;
387 assign ecc_err = 1'b0;
388 end
389
390 ////////////////////////
391 // DAI Access Control //
392 ////////////////////////
393
394 mubi8_t init_locked;
395 1/1 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
396
397 // Aggregate all possible DAI write locks. The partition is also locked when uninitialized.
398 // Note that the locks are redundantly encoded values.
399 part_access_t access_pre;
400 prim_mubi8_sender #(
401 .AsyncOn(0)
402 ) u_prim_mubi8_sender_write_lock_pre (
403 .clk_i,
404 .rst_ni,
405 .mubi_i(mubi8_and_lo(init_locked, access_i.write_lock)),
406 .mubi_o(access_pre.write_lock)
407 );
408 prim_mubi8_sender #(
409 .AsyncOn(0)
410 ) u_prim_mubi8_sender_read_lock_pre (
411 .clk_i,
412 .rst_ni,
413 .mubi_i(mubi8_and_lo(init_locked, access_i.read_lock)),
414 .mubi_o(access_pre.read_lock)
415 );
416
417 // SEC_CM: PART.MEM.SW_UNWRITABLE
418 if (Info.write_lock) begin : gen_digest_write_lock
419 mubi8_t digest_locked;
420 1/1 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
421
422 // This prevents the synthesis tool from optimizing the multibit signal.
423 prim_mubi8_sender #(
424 .AsyncOn(0)
425 ) u_prim_mubi8_sender_write_lock (
426 .clk_i,
427 .rst_ni,
428 .mubi_i(mubi8_and_lo(access_pre.write_lock, digest_locked)),
429 .mubi_o(access_o.write_lock)
430 );
431
432 `ASSERT(DigestWriteLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.write_lock))
433 end else begin : gen_no_digest_write_lock
434 assign access_o.write_lock = access_pre.write_lock;
435 end
436
437 // SEC_CM: PART.MEM.SW_UNREADABLE
438 if (Info.read_lock) begin : gen_digest_read_lock
439 mubi8_t digest_locked;
440 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
441
442 // This prevents the synthesis tool from optimizing the multibit signal.
443 prim_mubi8_sender #(
444 .AsyncOn(0)
445 ) u_prim_mubi8_sender_read_lock (
446 .clk_i,
447 .rst_ni,
448 .mubi_i(mubi8_and_lo(access_pre.read_lock, digest_locked)),
449 .mubi_o(access_o.read_lock)
450 );
451
452 `ASSERT(DigestReadLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.read_lock))
453 end else begin : gen_no_digest_read_lock
454 1/1 assign access_o.read_lock = access_pre.read_lock;
Tests: T1 T2 T3
455 end
456
457 ///////////////
458 // Registers //
459 ///////////////
460
461 3/3 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3
PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt):
461.1 `ifdef SIMULATION
461.2 prim_sparse_fsm_flop #(
461.3 .StateEnumT(state_e),
461.4 .Width($bits(state_e)),
461.5 .ResetValue($bits(state_e)'(ResetSt)),
461.6 .EnableAlertTriggerSVA(1),
461.7 .CustomForceName("state_q")
461.8 ) u_state_regs (
461.9 .clk_i ( clk_i ),
461.10 .rst_ni ( rst_ni ),
461.11 .state_i ( state_d ),
461.12 .state_o ( )
461.13 );
461.14 always_ff @(posedge clk_i or negedge rst_ni) begin
461.15 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
461.16 1/1 state_q <= ResetSt;
Tests: T1 T2 T3
461.17 end else begin
461.18 1/1 state_q <= state_d;
Tests: T1 T2 T3
461.19 end
461.20 end
461.21 u_state_regs_A: assert property (@(posedge clk_i) disable iff ((!rst_ni) !== '0) (state_q === u_state_regs.state_o))
461.22 else begin
461.23 `ifdef UVM
461.24 uvm_pkg::uvm_report_error("ASSERT FAILED", "u_state_regs_A", uvm_pkg::UVM_NONE,
461.25 "../src/lowrisc_ip_otp_ctrl_1.0/rtl/otp_ctrl_part_unbuf.sv", 461, "", 1);
461.26 `else
461.27 $error("%0t: (%0s:%0d) [%m] [ASSERT FAILED] %0s", $time, `__FILE__, `__LINE__,
461.28 `PRIM_STRINGIFY(u_state_regs_A));
461.29 `endif
461.30 end
461.31 `else
461.32 prim_sparse_fsm_flop #(
461.33 .StateEnumT(state_e),
461.34 .Width($bits(state_e)),
461.35 .ResetValue($bits(state_e)'(ResetSt)),
461.36 .EnableAlertTriggerSVA(1)
461.37 ) u_state_regs (
461.38 .clk_i ( `PRIM_FLOP_CLK ),
461.39 .rst_ni ( `PRIM_FLOP_RST ),
461.40 .state_i ( state_d ),
461.41 .state_o ( state_q )
461.42 );
461.43 `endif462
463 always_ff @(posedge clk_i or negedge rst_ni) begin : p_regs
464 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
465 1/1 error_q <= NoError;
Tests: T1 T2 T3
466 1/1 tlul_addr_q <= '0;
Tests: T1 T2 T3
467 1/1 pending_tlul_error_q <= 1'b0;
Tests: T1 T2 T3
468 end else begin
469 1/1 error_q <= error_d;
Tests: T1 T2 T3
470 1/1 pending_tlul_error_q <= pending_tlul_error_d;
Tests: T1 T2 T3
471 1/1 if (tlul_gnt_o) begin
Tests: T1 T2 T3
472 1/1 tlul_addr_q <= tlul_addr_d;
Tests: T3 T6 T10
473 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.gen_partitions[1].gen_unbuffered.u_part_unbuf
| Total | Covered | Percent |
Conditions | 33 | 33 | 100.00 |
Logical | 33 | 33 | 100.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 220
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T164,T165,T166 |
LINE 272
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T111,T169,T170 |
LINE 288
EXPRESSION (error_q == NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T23,T24,T25 |
LINE 316
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T97,T155 |
1 | Covered | T97,T155 |
LINE 324
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T3,T4,T12 |
LINE 336
EXPRESSION ((tlul_rvalid_o && (tlul_rerror_o == '0)) ? otp_rdata_i[31:0] : '0)
--------------------1-------------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rvalid_o && (tlul_rerror_o == '0))
------1------ ----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T4,T11,T12 |
1 | 1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rerror_o == '0)
----------1----------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 342
EXPRESSION (({tlul_addr_q, 2'b0} >= 11'b00001000000) && ({1'b0, tlul_addr_q, 2'b0} < PartEnd))
--------------------1------------------- ------------------2------------------
-1- | -2- | Status | Tests | Exclude Annotation |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Excluded | |
VC_COV_UNR |
1 | 1 | Covered | T3,T6,T10 |
LINE 349
EXPRESSION ((otp_addr_sel == DigestAddrSel) ? DigestOffset : ({tlul_addr_q, 2'b0}))
---------------1---------------
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 349
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 358
EXPRESSION
Number Term
1 (otp_addr_sel == DigestAddrSel) ? (2'((unsigned'(((otp_ctrl_pkg::ScrmblBlockWidth / otp_ctrl_pkg::OtpWidth) - 1))))) : (2'((unsigned'(((32 / otp_ctrl_pkg::OtpWidth) - 1))))))
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 358
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 395
EXPRESSION (((~init_done_o)) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 420
EXPRESSION ((digest_o != '0) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T4,T5,T11 |
LINE 420
SUB-EXPRESSION (digest_o != '0)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T4,T5,T11 |
FSM Coverage for Instance : tb.dut.gen_partitions[1].gen_unbuffered.u_part_unbuf
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
7 |
7 |
100.00 |
(Not included in score) |
Transitions |
13 |
12 |
92.31 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
ErrorSt |
224 |
Covered |
T3,T4,T12 |
IdleSt |
196 |
Covered |
T1,T2,T3 |
InitSt |
194 |
Covered |
T1,T2,T3 |
InitWaitSt |
207 |
Covered |
T1,T2,T3 |
ReadSt |
236 |
Covered |
T3,T6,T10 |
ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
ResetSt |
190 |
Covered |
T1,T2,T3 |
transitions | Line No. | Covered | Tests | Exclude Annotation |
IdleSt->ErrorSt |
315 |
Covered |
T3,T4,T12 |
|
IdleSt->ReadSt |
236 |
Covered |
T3,T6,T10 |
|
InitSt->ErrorSt |
315 |
Covered |
T113,T119,T206 |
|
InitSt->InitWaitSt |
207 |
Covered |
T1,T2,T3 |
|
InitWaitSt->ErrorSt |
224 |
Covered |
T92,T167,T168 |
|
InitWaitSt->IdleSt |
218 |
Covered |
T1,T2,T3 |
|
ReadSt->ErrorSt |
315 |
Not Covered |
|
|
ReadSt->IdleSt |
255 |
Covered |
T4,T11,T13 |
|
ReadSt->ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
|
ReadWaitSt->ErrorSt |
276 |
Covered |
T169,T171,T172 |
|
ReadWaitSt->IdleSt |
270 |
Covered |
T3,T6,T10 |
|
ResetSt->ErrorSt |
315 |
Covered |
T97,T98,T99 |
|
ResetSt->IdleSt |
196 |
Excluded |
|
VC_COV_UNR |
ResetSt->InitSt |
194 |
Covered |
T1,T2,T3 |
|
Summary for FSM :: error_q
| Total | Covered | Percent | |
States |
5 |
5 |
100.00 |
(Not included in score) |
Transitions |
11 |
10 |
90.91 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: error_q
states | Line No. | Covered | Tests |
AccessError |
256 |
Covered |
T4,T11,T13 |
CheckFailError |
317 |
Covered |
T97,T155 |
FsmStateError |
289 |
Covered |
T3,T4,T12 |
MacroEccCorrError |
221 |
Covered |
T111,T169,T170 |
NoError |
235 |
Covered |
T1,T2,T3 |
transitions | Line No. | Covered | Tests | Exclude Annotation |
AccessError->CheckFailError |
317 |
Excluded |
|
VC_COV_UNR |
AccessError->FsmStateError |
325 |
Covered |
T7,T109,T14 |
|
AccessError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
AccessError->NoError |
235 |
Covered |
T4,T11,T13 |
|
CheckFailError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
CheckFailError->FsmStateError |
325 |
Excluded |
|
VC_COV_UNR |
CheckFailError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
CheckFailError->NoError |
235 |
Covered |
T97,T155 |
|
FsmStateError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
FsmStateError->CheckFailError |
317 |
Excluded |
|
VC_COV_UNR |
FsmStateError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
FsmStateError->NoError |
235 |
Covered |
T3,T4,T12 |
|
MacroEccCorrError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
MacroEccCorrError->CheckFailError |
317 |
Not Covered |
|
|
MacroEccCorrError->FsmStateError |
325 |
Covered |
T111,T169,T172 |
|
MacroEccCorrError->NoError |
235 |
Covered |
T170,T120,T35 |
|
NoError->AccessError |
256 |
Covered |
T4,T11,T13 |
|
NoError->CheckFailError |
317 |
Covered |
T97,T155 |
|
NoError->FsmStateError |
289 |
Covered |
T3,T4,T12 |
|
NoError->MacroEccCorrError |
221 |
Covered |
T111,T169,T170 |
|
Branch Coverage for Instance : tb.dut.gen_partitions[1].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
Branches |
|
44 |
44 |
100.00 |
TERNARY |
336 |
2 |
2 |
100.00 |
TERNARY |
349 |
2 |
2 |
100.00 |
TERNARY |
358 |
2 |
2 |
100.00 |
TERNARY |
395 |
2 |
2 |
100.00 |
TERNARY |
420 |
2 |
2 |
100.00 |
CASE |
186 |
23 |
23 |
100.00 |
IF |
314 |
3 |
3 |
100.00 |
IF |
321 |
3 |
3 |
100.00 |
IF |
461 |
2 |
2 |
100.00 |
IF |
464 |
3 |
3 |
100.00 |
336 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T3,T6,T10 |
0 |
Covered |
T1,T2,T3 |
349 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
358 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
395 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
420 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T4,T5,T11 |
0 |
Covered |
T1,T2,T3 |
186 unique case (state_q)
-1-
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 if (init_req_i) begin
-2-
192 // If the partition does not have a digest, no initialization is necessary.
193 if (Info.sw_digest) begin
-3-
194 state_d = InitSt;
==>
195 end else begin
196 state_d = IdleSt;
==> (Unreachable)
197 end
198 end
MISSING_ELSE
==>
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 otp_req_o = 1'b1;
206 if (otp_gnt_i) begin
-4-
207 state_d = InitWaitSt;
==>
208 end
MISSING_ELSE
==>
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 if (otp_rvalid_i) begin
-5-
216 digest_reg_en = 1'b1;
217 if (otp_err inside {NoError, MacroEccCorrError}) begin
-6-
218 state_d = IdleSt;
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 if (otp_err != NoError) begin
-7-
221 error_d = MacroEccCorrError;
==>
222 end
MISSING_ELSE
==>
223 end else begin
224 state_d = ErrorSt;
==>
225 error_d = otp_err;
226 end
227 end
MISSING_ELSE
==>
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 init_done_o = 1'b1;
234 if (tlul_req_i) begin
-8-
235 error_d = NoError; // clear recoverable soft errors.
==>
236 state_d = ReadSt;
237 tlul_gnt_o = 1'b1;
238 end
MISSING_ELSE
==>
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 init_done_o = 1'b1;
247 // Double check the address range.
248 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
-9-
249 otp_req_o = 1'b1;
250 otp_addr_sel = DataAddrSel;
251 if (otp_gnt_i) begin
-10-
252 state_d = ReadWaitSt;
==>
253 end
MISSING_ELSE
==>
254 end else begin
255 state_d = IdleSt;
==>
256 error_d = AccessError; // Signal this error, but do not go into terminal error state.
257 tlul_rvalid_o = 1'b1;
258 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 init_done_o = 1'b1;
267 if (otp_rvalid_i) begin
-11-
268 tlul_rvalid_o = 1'b1;
269 if (otp_err inside {NoError, MacroEccCorrError}) begin
-12-
270 state_d = IdleSt;
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 if (otp_err != NoError) begin
-13-
273 error_d = MacroEccCorrError;
==>
274 end
MISSING_ELSE
==>
275 end else begin
276 state_d = ErrorSt;
==>
277 error_d = otp_err;
278 // This causes the TL-UL adapter to return a bus error.
279 tlul_rerror_o = 2'b11;
280 end
281 end
MISSING_ELSE
==>
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 if (error_q == NoError) begin
-14-
289 error_d = FsmStateError;
==>
290 end
MISSING_ELSE
==>
291
292 // Return bus errors if there are pending TL-UL requests.
293 if (pending_tlul_error_q) begin
-15-
294 tlul_rerror_o = 2'b11;
==>
295 tlul_rvalid_o = 1'b1;
296 end else if (tlul_req_i) begin
-16-
297 tlul_gnt_o = 1'b1;
==>
298 pending_tlul_error_d = 1'b1;
299 end
MISSING_ELSE
==>
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
==>
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | -9- | -10- | -11- | -12- | -13- | -14- | -15- | -16- | Status | Tests |
ResetSt |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
ResetSt |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Unreachable |
|
ResetSt |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitSt |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitSt |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitWaitSt |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T164,T165,T166 |
InitWaitSt |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitWaitSt |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T92,T167,T168 |
InitWaitSt |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
IdleSt |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
IdleSt |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T5,T106,T125 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
Covered |
T4,T11,T13 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
Covered |
T111,T169,T170 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
Covered |
T3,T6,T10 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
Covered |
T169,T171,T172 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T23,T24,T25 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
Covered |
T3,T4,T12 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
Covered |
T12,T13,T7 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
1 |
Covered |
T12,T13,T7 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
0 |
Covered |
T3,T4,T12 |
default |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T23,T24,T25 |
314 if (ecc_err) begin
-1-
315 state_d = ErrorSt;
316 if (state_q != ErrorSt) begin
-2-
317 error_d = CheckFailError;
==>
318 end
MISSING_ELSE
==>
319 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T97,T155 |
1 |
0 |
Covered |
T97,T155 |
0 |
- |
Covered |
T1,T2,T3 |
321 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
-1-
322 state_d = ErrorSt;
323 fsm_err_o = 1'b1;
324 if (state_q != ErrorSt) begin
-2-
325 error_d = FsmStateError;
==>
326 end
MISSING_ELSE
==>
327 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T3,T4,T12 |
1 |
0 |
Covered |
T3,T4,T12 |
0 |
- |
Covered |
T1,T2,T3 |
461 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
464 if (!rst_ni) begin
-1-
465 error_q <= NoError;
==>
466 tlul_addr_q <= '0;
467 pending_tlul_error_q <= 1'b0;
468 end else begin
469 error_q <= error_d;
470 pending_tlul_error_q <= pending_tlul_error_d;
471 if (tlul_gnt_o) begin
-2-
472 tlul_addr_q <= tlul_addr_d;
==>
473 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Covered |
T3,T6,T10 |
0 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.gen_partitions[1].gen_unbuffered.u_part_unbuf
Assertion Details
AccessKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestOffsetMustBeRepresentable_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
EccErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
5693 |
0 |
0 |
T61 |
66025 |
0 |
0 |
0 |
T91 |
84337 |
0 |
0 |
0 |
T97 |
12000 |
3176 |
0 |
0 |
T124 |
46418 |
0 |
0 |
0 |
T125 |
43470 |
0 |
0 |
0 |
T155 |
0 |
2517 |
0 |
0 |
T159 |
11266 |
0 |
0 |
0 |
T161 |
35248 |
0 |
0 |
0 |
T185 |
17733 |
0 |
0 |
0 |
T186 |
6691 |
0 |
0 |
0 |
T187 |
20302 |
0 |
0 |
0 |
ErrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
FsmStateKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitDoneKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitReadLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17647394 |
0 |
0 |
T1 |
6346 |
1185 |
0 |
0 |
T2 |
20779 |
378 |
0 |
0 |
T3 |
16526 |
3892 |
0 |
0 |
T4 |
41540 |
2100 |
0 |
0 |
T5 |
24984 |
457 |
0 |
0 |
T6 |
30776 |
114 |
0 |
0 |
T10 |
44472 |
347 |
0 |
0 |
T11 |
20926 |
582 |
0 |
0 |
T12 |
41197 |
26067 |
0 |
0 |
T13 |
73799 |
10058 |
0 |
0 |
InitWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17647394 |
0 |
0 |
T1 |
6346 |
1185 |
0 |
0 |
T2 |
20779 |
378 |
0 |
0 |
T3 |
16526 |
3892 |
0 |
0 |
T4 |
41540 |
2100 |
0 |
0 |
T5 |
24984 |
457 |
0 |
0 |
T6 |
30776 |
114 |
0 |
0 |
T10 |
44472 |
347 |
0 |
0 |
T11 |
20926 |
582 |
0 |
0 |
T12 |
41197 |
26067 |
0 |
0 |
T13 |
73799 |
10058 |
0 |
0 |
OffsetMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
OtpAddrKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpCmdKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
72 |
0 |
0 |
T9 |
104867 |
0 |
0 |
0 |
T92 |
9178 |
1 |
0 |
0 |
T112 |
45775 |
0 |
0 |
0 |
T126 |
36065 |
0 |
0 |
0 |
T157 |
0 |
2 |
0 |
0 |
T160 |
21431 |
0 |
0 |
0 |
T162 |
54681 |
0 |
0 |
0 |
T167 |
0 |
1 |
0 |
0 |
T168 |
0 |
1 |
0 |
0 |
T169 |
0 |
1 |
0 |
0 |
T171 |
0 |
1 |
0 |
0 |
T172 |
0 |
1 |
0 |
0 |
T184 |
0 |
1 |
0 |
0 |
T191 |
0 |
1 |
0 |
0 |
T192 |
0 |
1 |
0 |
0 |
T193 |
15974 |
0 |
0 |
0 |
T194 |
11208 |
0 |
0 |
0 |
T195 |
19956 |
0 |
0 |
0 |
T196 |
42790 |
0 |
0 |
0 |
OtpReqKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpSizeKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpWdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
ReadLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
18072763 |
0 |
0 |
T4 |
41540 |
12527 |
0 |
0 |
T5 |
24984 |
1638 |
0 |
0 |
T7 |
111593 |
98918 |
0 |
0 |
T11 |
20926 |
588 |
0 |
0 |
T12 |
41197 |
28313 |
0 |
0 |
T13 |
73799 |
6220 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
27776 |
0 |
0 |
T93 |
0 |
26693 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
1654 |
0 |
0 |
T105 |
0 |
11263 |
0 |
0 |
SizeMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
TlulGntKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulReadOnReadLock_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
6593 |
0 |
0 |
T4 |
41540 |
2 |
0 |
0 |
T5 |
24984 |
0 |
0 |
0 |
T7 |
111593 |
20 |
0 |
0 |
T11 |
20926 |
1 |
0 |
0 |
T12 |
41197 |
1 |
0 |
0 |
T13 |
73799 |
4 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
2 |
0 |
0 |
T93 |
0 |
4 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
1 |
0 |
0 |
T105 |
0 |
5 |
0 |
0 |
T106 |
0 |
1 |
0 |
0 |
TlulRerrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRvalidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
WriteLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
3205646 |
0 |
0 |
T19 |
4953 |
0 |
0 |
0 |
T20 |
0 |
41483 |
0 |
0 |
T61 |
0 |
8546 |
0 |
0 |
T90 |
7244 |
0 |
0 |
0 |
T91 |
0 |
6633 |
0 |
0 |
T93 |
66768 |
0 |
0 |
0 |
T105 |
52425 |
2516 |
0 |
0 |
T106 |
71675 |
0 |
0 |
0 |
T108 |
0 |
7187 |
0 |
0 |
T109 |
0 |
38158 |
0 |
0 |
T110 |
117723 |
0 |
0 |
0 |
T111 |
44650 |
0 |
0 |
0 |
T112 |
0 |
8719 |
0 |
0 |
T115 |
25202 |
0 |
0 |
0 |
T116 |
35702 |
0 |
0 |
0 |
T124 |
0 |
4577 |
0 |
0 |
T137 |
108056 |
0 |
0 |
0 |
T196 |
0 |
8271 |
0 |
0 |
T202 |
0 |
9085 |
0 |
0 |
gen_digest_write_lock.DigestWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
33617026 |
0 |
0 |
T4 |
41540 |
26443 |
0 |
0 |
T5 |
24984 |
18653 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
7816 |
0 |
0 |
T12 |
41197 |
2481 |
0 |
0 |
T13 |
73799 |
0 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
106398 |
0 |
0 |
T20 |
0 |
142974 |
0 |
0 |
T93 |
0 |
52672 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T105 |
0 |
34583 |
0 |
0 |
T106 |
0 |
62266 |
0 |
0 |
T107 |
0 |
102488 |
0 |
0 |
u_state_regs_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
Line Coverage for Instance : tb.dut.gen_partitions[2].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
TOTAL | | 91 | 91 | 100.00 |
CONT_ASSIGN | 138 | 1 | 1 | 100.00 |
CONT_ASSIGN | 149 | 1 | 1 | 100.00 |
ALWAYS | 164 | 68 | 68 | 100.00 |
CONT_ASSIGN | 334 | 1 | 1 | 100.00 |
CONT_ASSIGN | 336 | 1 | 1 | 100.00 |
CONT_ASSIGN | 342 | 1 | 1 | 100.00 |
CONT_ASSIGN | 349 | 1 | 1 | 100.00 |
CONT_ASSIGN | 350 | 1 | 1 | 100.00 |
CONT_ASSIGN | 354 | 1 | 1 | 100.00 |
CONT_ASSIGN | 358 | 1 | 1 | 100.00 |
CONT_ASSIGN | 395 | 1 | 1 | 100.00 |
CONT_ASSIGN | 420 | 1 | 1 | 100.00 |
CONT_ASSIGN | 454 | 1 | 1 | 100.00 |
ALWAYS | 461 | 3 | 3 | 100.00 |
ALWAYS | 464 | 8 | 8 | 100.00 |
137 // Output partition error state.
138 1/1 assign error_o = error_q;
Tests: T1 T2 T3
139
140 // This partition cannot do any write accesses, hence we tie this
141 // constantly off.
142 assign otp_wdata_o = '0;
143 // Depending on the partition configuration, the wrapper is instructed to ignore integrity
144 // calculations and checks. To be on the safe side, the partition filters error responses at this
145 // point and does not report any integrity errors if integrity is disabled.
146 otp_err_e otp_err;
147 if (Info.integrity) begin : gen_integrity
148 assign otp_cmd_o = prim_otp_pkg::Read;
149 1/1 assign otp_err = otp_err_e'(otp_err_i);
Tests: T1 T2 T3
150 end else begin : gen_no_integrity
151 assign otp_cmd_o = prim_otp_pkg::ReadRaw;
152 always_comb begin
153 if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
154 otp_err = NoError;
155 end else begin
156 otp_err = otp_err_e'(otp_err_i);
157 end
158 end
159 end
160
161 `ASSERT_KNOWN(FsmStateKnown_A, state_q)
162 always_comb begin : p_fsm
163 // Default assignments
164 1/1 state_d = state_q;
Tests: T1 T2 T3
165
166 // Response to init request
167 1/1 init_done_o = 1'b0;
Tests: T1 T2 T3
168
169 // OTP signals
170 1/1 otp_req_o = 1'b0;
Tests: T1 T2 T3
171 1/1 otp_addr_sel = DigestAddrSel;
Tests: T1 T2 T3
172
173 // TL-UL signals
174 1/1 tlul_gnt_o = 1'b0;
Tests: T1 T2 T3
175 1/1 tlul_rvalid_o = 1'b0;
Tests: T1 T2 T3
176 1/1 tlul_rerror_o = '0;
Tests: T1 T2 T3
177
178 // Enable for buffered digest register
179 1/1 digest_reg_en = 1'b0;
Tests: T1 T2 T3
180
181 // Error Register
182 1/1 error_d = error_q;
Tests: T1 T2 T3
183 1/1 pending_tlul_error_d = 1'b0;
Tests: T1 T2 T3
184 1/1 fsm_err_o = 1'b0;
Tests: T1 T2 T3
185
186 1/1 unique case (state_q)
Tests: T1 T2 T3
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 1/1 if (init_req_i) begin
Tests: T1 T2 T3
192 // If the partition does not have a digest, no initialization is necessary.
193 1/1 if (Info.sw_digest) begin
Tests: T1 T2 T3
194 1/1 state_d = InitSt;
Tests: T1 T2 T3
195 end else begin
196 unreachable state_d = IdleSt;
197 end
198 end
MISSING_ELSE
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 1/1 otp_req_o = 1'b1;
Tests: T1 T2 T3
206 1/1 if (otp_gnt_i) begin
Tests: T1 T2 T3
207 1/1 state_d = InitWaitSt;
Tests: T1 T2 T3
208 end
MISSING_ELSE
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 1/1 if (otp_rvalid_i) begin
Tests: T1 T2 T3
216 1/1 digest_reg_en = 1'b1;
Tests: T1 T2 T3
217 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T1 T2 T3
218 1/1 state_d = IdleSt;
Tests: T1 T2 T3
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 1/1 if (otp_err != NoError) begin
Tests: T1 T2 T3
221 1/1 error_d = MacroEccCorrError;
Tests: T173 T53 T44
222 end
MISSING_ELSE
223 end else begin
224 1/1 state_d = ErrorSt;
Tests: T174 T175 T176
225 1/1 error_d = otp_err;
Tests: T174 T175 T176
226 end
227 end
MISSING_ELSE
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 1/1 init_done_o = 1'b1;
Tests: T1 T2 T3
234 1/1 if (tlul_req_i) begin
Tests: T1 T2 T3
235 1/1 error_d = NoError; // clear recoverable soft errors.
Tests: T3 T6 T10
236 1/1 state_d = ReadSt;
Tests: T3 T6 T10
237 1/1 tlul_gnt_o = 1'b1;
Tests: T3 T6 T10
238 end
MISSING_ELSE
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
247 // Double check the address range.
248 1/1 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
Tests: T3 T6 T10
249 1/1 otp_req_o = 1'b1;
Tests: T3 T6 T10
250 1/1 otp_addr_sel = DataAddrSel;
Tests: T3 T6 T10
251 1/1 if (otp_gnt_i) begin
Tests: T3 T6 T10
252 1/1 state_d = ReadWaitSt;
Tests: T3 T6 T10
253 end
MISSING_ELSE
254 end else begin
255 1/1 state_d = IdleSt;
Tests: T4 T18 T105
256 1/1 error_d = AccessError; // Signal this error, but do not go into terminal error state.
Tests: T4 T18 T105
257 1/1 tlul_rvalid_o = 1'b1;
Tests: T4 T18 T105
258 1/1 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
Tests: T4 T18 T105
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 1/1 init_done_o = 1'b1;
Tests: T3 T6 T10
267 1/1 if (otp_rvalid_i) begin
Tests: T3 T6 T10
268 1/1 tlul_rvalid_o = 1'b1;
Tests: T3 T6 T10
269 1/1 if (otp_err inside {NoError, MacroEccCorrError}) begin
Tests: T3 T6 T10
270 1/1 state_d = IdleSt;
Tests: T3 T6 T10
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 1/1 if (otp_err != NoError) begin
Tests: T3 T6 T10
273 1/1 error_d = MacroEccCorrError;
Tests: T13 T103 T61
274 end
MISSING_ELSE
275 end else begin
276 1/1 state_d = ErrorSt;
Tests: T156 T172 T177
277 1/1 error_d = otp_err;
Tests: T156 T172 T177
278 // This causes the TL-UL adapter to return a bus error.
279 1/1 tlul_rerror_o = 2'b11;
Tests: T156 T172 T177
280 end
281 end
MISSING_ELSE
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 1/1 if (error_q == NoError) begin
Tests: T3 T4 T12
289 1/1 error_d = FsmStateError;
Tests: T23 T24 T25
290 end
MISSING_ELSE
291
292 // Return bus errors if there are pending TL-UL requests.
293 1/1 if (pending_tlul_error_q) begin
Tests: T3 T4 T12
294 1/1 tlul_rerror_o = 2'b11;
Tests: T12 T13 T7
295 1/1 tlul_rvalid_o = 1'b1;
Tests: T12 T13 T7
296 1/1 end else if (tlul_req_i) begin
Tests: T3 T4 T12
297 1/1 tlul_gnt_o = 1'b1;
Tests: T12 T13 T7
298 1/1 pending_tlul_error_d = 1'b1;
Tests: T12 T13 T7
299 end
MISSING_ELSE
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
306 fsm_err_o = 1'b1;
307 end
308 ///////////////////////////////////////////////////////////////////
309 endcase // state_q
310
311 // Unconditionally jump into the terminal error state in case of
312 // an ECC error or escalation, and lock access to the partition down.
313 // SEC_CM: PART.FSM.LOCAL_ESC
314 1/1 if (ecc_err) begin
Tests: T1 T2 T3
315 1/1 state_d = ErrorSt;
Tests: T97 T155
316 1/1 if (state_q != ErrorSt) begin
Tests: T97 T155
317 1/1 error_d = CheckFailError;
Tests: T97 T155
318 end
MISSING_ELSE
319 end
MISSING_ELSE
320 // SEC_CM: PART.FSM.GLOBAL_ESC
321 1/1 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
Tests: T1 T2 T3
322 1/1 state_d = ErrorSt;
Tests: T3 T4 T12
323 1/1 fsm_err_o = 1'b1;
Tests: T3 T4 T12
324 1/1 if (state_q != ErrorSt) begin
Tests: T3 T4 T12
325 1/1 error_d = FsmStateError;
Tests: T3 T4 T12
326 end
MISSING_ELSE
327 end
MISSING_ELSE
328 end
329
330 ///////////////////////////////////
331 // Signals to/from TL-UL Adapter //
332 ///////////////////////////////////
333
334 1/1 assign tlul_addr_d = tlul_addr_i;
Tests: T1 T2 T3
335 // Do not forward data in case of an error.
336 1/1 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
Tests: T1 T2 T3
337
338 if (Info.offset == 0) begin : gen_zero_offset
339 assign tlul_addr_in_range = {1'b0, tlul_addr_q, 2'b00} < PartEnd;
340
341 end else begin : gen_nonzero_offset
342 1/1 assign tlul_addr_in_range = {tlul_addr_q, 2'b00} >= Info.offset &&
Tests: T1 T2 T3
343 {1'b0, tlul_addr_q, 2'b00} < PartEnd;
344 end
345
346 // Note that OTP works on halfword (16bit) addresses, hence need to
347 // shift the addresses appropriately.
348 logic [OtpByteAddrWidth-1:0] addr_calc;
349 1/1 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
Tests: T1 T2 T3
350 1/1 assign otp_addr_o = addr_calc[OtpByteAddrWidth-1:OtpAddrShift];
Tests: T1 T2 T3
351
352 if (OtpAddrShift > 0) begin : gen_unused
353 logic unused_bits;
354 1/1 assign unused_bits = ^addr_calc[OtpAddrShift-1:0];
Tests: T1 T2 T3
355 end
356
357 // Request 32bit except in case of the digest.
358 1/1 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
Tests: T1 T2 T3
359 OtpSizeWidth'(unsigned'(ScrmblBlockWidth / OtpWidth - 1)) :
360 OtpSizeWidth'(unsigned'(32 / OtpWidth - 1));
361
362 ////////////////
363 // Digest Reg //
364 ////////////////
365
366 if (Info.sw_digest) begin : gen_ecc_reg
367 // SEC_CM: PART.DATA_REG.INTEGRITY
368 otp_ctrl_ecc_reg #(
369 .Width ( ScrmblBlockWidth ),
370 .Depth ( 1 )
371 ) u_otp_ctrl_ecc_reg (
372 .clk_i,
373 .rst_ni,
374 .wren_i ( digest_reg_en ),
375 .addr_i ( '0 ),
376 .wdata_i ( otp_rdata_i ),
377 .rdata_o ( ),
378 .data_o ( digest_o ),
379 .ecc_err_o ( ecc_err )
380 );
381 end else begin : gen_no_ecc_reg
382 logic unused_digest_reg_en;
383 logic unused_rdata;
384 assign unused_digest_reg_en = digest_reg_en;
385 assign unused_rdata = ^otp_rdata_i[32 +: 32]; // Upper word is not connected in this case.
386 assign digest_o = '0;
387 assign ecc_err = 1'b0;
388 end
389
390 ////////////////////////
391 // DAI Access Control //
392 ////////////////////////
393
394 mubi8_t init_locked;
395 1/1 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
396
397 // Aggregate all possible DAI write locks. The partition is also locked when uninitialized.
398 // Note that the locks are redundantly encoded values.
399 part_access_t access_pre;
400 prim_mubi8_sender #(
401 .AsyncOn(0)
402 ) u_prim_mubi8_sender_write_lock_pre (
403 .clk_i,
404 .rst_ni,
405 .mubi_i(mubi8_and_lo(init_locked, access_i.write_lock)),
406 .mubi_o(access_pre.write_lock)
407 );
408 prim_mubi8_sender #(
409 .AsyncOn(0)
410 ) u_prim_mubi8_sender_read_lock_pre (
411 .clk_i,
412 .rst_ni,
413 .mubi_i(mubi8_and_lo(init_locked, access_i.read_lock)),
414 .mubi_o(access_pre.read_lock)
415 );
416
417 // SEC_CM: PART.MEM.SW_UNWRITABLE
418 if (Info.write_lock) begin : gen_digest_write_lock
419 mubi8_t digest_locked;
420 1/1 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
Tests: T1 T2 T3
421
422 // This prevents the synthesis tool from optimizing the multibit signal.
423 prim_mubi8_sender #(
424 .AsyncOn(0)
425 ) u_prim_mubi8_sender_write_lock (
426 .clk_i,
427 .rst_ni,
428 .mubi_i(mubi8_and_lo(access_pre.write_lock, digest_locked)),
429 .mubi_o(access_o.write_lock)
430 );
431
432 `ASSERT(DigestWriteLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.write_lock))
433 end else begin : gen_no_digest_write_lock
434 assign access_o.write_lock = access_pre.write_lock;
435 end
436
437 // SEC_CM: PART.MEM.SW_UNREADABLE
438 if (Info.read_lock) begin : gen_digest_read_lock
439 mubi8_t digest_locked;
440 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
441
442 // This prevents the synthesis tool from optimizing the multibit signal.
443 prim_mubi8_sender #(
444 .AsyncOn(0)
445 ) u_prim_mubi8_sender_read_lock (
446 .clk_i,
447 .rst_ni,
448 .mubi_i(mubi8_and_lo(access_pre.read_lock, digest_locked)),
449 .mubi_o(access_o.read_lock)
450 );
451
452 `ASSERT(DigestReadLocksPartition_A, digest_o |-> mubi8_test_true_loose(access_o.read_lock))
453 end else begin : gen_no_digest_read_lock
454 1/1 assign access_o.read_lock = access_pre.read_lock;
Tests: T1 T2 T3
455 end
456
457 ///////////////
458 // Registers //
459 ///////////////
460
461 3/3 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3
PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt):
461.1 `ifdef SIMULATION
461.2 prim_sparse_fsm_flop #(
461.3 .StateEnumT(state_e),
461.4 .Width($bits(state_e)),
461.5 .ResetValue($bits(state_e)'(ResetSt)),
461.6 .EnableAlertTriggerSVA(1),
461.7 .CustomForceName("state_q")
461.8 ) u_state_regs (
461.9 .clk_i ( clk_i ),
461.10 .rst_ni ( rst_ni ),
461.11 .state_i ( state_d ),
461.12 .state_o ( )
461.13 );
461.14 always_ff @(posedge clk_i or negedge rst_ni) begin
461.15 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
461.16 1/1 state_q <= ResetSt;
Tests: T1 T2 T3
461.17 end else begin
461.18 1/1 state_q <= state_d;
Tests: T1 T2 T3
461.19 end
461.20 end
461.21 u_state_regs_A: assert property (@(posedge clk_i) disable iff ((!rst_ni) !== '0) (state_q === u_state_regs.state_o))
461.22 else begin
461.23 `ifdef UVM
461.24 uvm_pkg::uvm_report_error("ASSERT FAILED", "u_state_regs_A", uvm_pkg::UVM_NONE,
461.25 "../src/lowrisc_ip_otp_ctrl_1.0/rtl/otp_ctrl_part_unbuf.sv", 461, "", 1);
461.26 `else
461.27 $error("%0t: (%0s:%0d) [%m] [ASSERT FAILED] %0s", $time, `__FILE__, `__LINE__,
461.28 `PRIM_STRINGIFY(u_state_regs_A));
461.29 `endif
461.30 end
461.31 `else
461.32 prim_sparse_fsm_flop #(
461.33 .StateEnumT(state_e),
461.34 .Width($bits(state_e)),
461.35 .ResetValue($bits(state_e)'(ResetSt)),
461.36 .EnableAlertTriggerSVA(1)
461.37 ) u_state_regs (
461.38 .clk_i ( `PRIM_FLOP_CLK ),
461.39 .rst_ni ( `PRIM_FLOP_RST ),
461.40 .state_i ( state_d ),
461.41 .state_o ( state_q )
461.42 );
461.43 `endif462
463 always_ff @(posedge clk_i or negedge rst_ni) begin : p_regs
464 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
465 1/1 error_q <= NoError;
Tests: T1 T2 T3
466 1/1 tlul_addr_q <= '0;
Tests: T1 T2 T3
467 1/1 pending_tlul_error_q <= 1'b0;
Tests: T1 T2 T3
468 end else begin
469 1/1 error_q <= error_d;
Tests: T1 T2 T3
470 1/1 pending_tlul_error_q <= pending_tlul_error_d;
Tests: T1 T2 T3
471 1/1 if (tlul_gnt_o) begin
Tests: T1 T2 T3
472 1/1 tlul_addr_q <= tlul_addr_d;
Tests: T3 T6 T10
473 end
MISSING_ELSE
Cond Coverage for Instance : tb.dut.gen_partitions[2].gen_unbuffered.u_part_unbuf
| Total | Covered | Percent |
Conditions | 34 | 33 | 97.06 |
Logical | 34 | 33 | 97.06 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 220
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T173,T53,T44 |
LINE 272
EXPRESSION (otp_err != NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T13,T103,T61 |
LINE 288
EXPRESSION (error_q == NoError)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T23,T24,T25 |
LINE 316
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T97,T155 |
1 | Covered | T97,T155 |
LINE 324
EXPRESSION (state_q != ErrorSt)
----------1---------
-1- | Status | Tests |
0 | Covered | T3,T4,T12 |
1 | Covered | T3,T4,T12 |
LINE 336
EXPRESSION ((tlul_rvalid_o && (tlul_rerror_o == '0)) ? otp_rdata_i[31:0] : '0)
--------------------1-------------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rvalid_o && (tlul_rerror_o == '0))
------1------ ----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T4,T12,T13 |
1 | 1 | Covered | T3,T6,T10 |
LINE 336
SUB-EXPRESSION (tlul_rerror_o == '0)
----------1----------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 342
EXPRESSION (({tlul_addr_q, 2'b0} >= 11'b00110110000) && ({1'b0, tlul_addr_q, 2'b0} < PartEnd))
--------------------1------------------- ------------------2------------------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T3,T6,T10 |
LINE 349
EXPRESSION ((otp_addr_sel == DigestAddrSel) ? DigestOffset : ({tlul_addr_q, 2'b0}))
---------------1---------------
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 349
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 358
EXPRESSION
Number Term
1 (otp_addr_sel == DigestAddrSel) ? (2'((unsigned'(((otp_ctrl_pkg::ScrmblBlockWidth / otp_ctrl_pkg::OtpWidth) - 1))))) : (2'((unsigned'(((32 / otp_ctrl_pkg::OtpWidth) - 1))))))
-1- | Status | Tests |
0 | Covered | T3,T6,T10 |
1 | Covered | T1,T2,T3 |
LINE 358
SUB-EXPRESSION (otp_addr_sel == DigestAddrSel)
---------------1---------------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 395
EXPRESSION (((~init_done_o)) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T1,T2,T3 |
LINE 420
EXPRESSION ((digest_o != '0) ? MuBi8True : MuBi8False)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T11,T18,T105 |
LINE 420
SUB-EXPRESSION (digest_o != '0)
--------1-------
-1- | Status | Tests |
0 | Covered | T1,T2,T3 |
1 | Covered | T11,T18,T105 |
FSM Coverage for Instance : tb.dut.gen_partitions[2].gen_unbuffered.u_part_unbuf
Summary for FSM :: state_q
| Total | Covered | Percent | |
States |
7 |
7 |
100.00 |
(Not included in score) |
Transitions |
13 |
12 |
92.31 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: state_q
states | Line No. | Covered | Tests |
ErrorSt |
224 |
Covered |
T3,T4,T12 |
IdleSt |
196 |
Covered |
T1,T2,T3 |
InitSt |
194 |
Covered |
T1,T2,T3 |
InitWaitSt |
207 |
Covered |
T1,T2,T3 |
ReadSt |
236 |
Covered |
T3,T6,T10 |
ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
ResetSt |
190 |
Covered |
T1,T2,T3 |
transitions | Line No. | Covered | Tests | Exclude Annotation |
IdleSt->ErrorSt |
315 |
Covered |
T3,T4,T12 |
|
IdleSt->ReadSt |
236 |
Covered |
T3,T6,T10 |
|
InitSt->ErrorSt |
315 |
Covered |
T113,T119,T206 |
|
InitSt->InitWaitSt |
207 |
Covered |
T1,T2,T3 |
|
InitWaitSt->ErrorSt |
224 |
Covered |
T92,T174,T175 |
|
InitWaitSt->IdleSt |
218 |
Covered |
T1,T2,T3 |
|
ReadSt->ErrorSt |
315 |
Not Covered |
|
|
ReadSt->IdleSt |
255 |
Covered |
T4,T18,T105 |
|
ReadSt->ReadWaitSt |
252 |
Covered |
T3,T6,T10 |
|
ReadWaitSt->ErrorSt |
276 |
Covered |
T156,T172,T177 |
|
ReadWaitSt->IdleSt |
270 |
Covered |
T3,T6,T10 |
|
ResetSt->ErrorSt |
315 |
Covered |
T97,T98,T99 |
|
ResetSt->IdleSt |
196 |
Excluded |
|
VC_COV_UNR |
ResetSt->InitSt |
194 |
Covered |
T1,T2,T3 |
|
Summary for FSM :: error_q
| Total | Covered | Percent | |
States |
5 |
5 |
100.00 |
(Not included in score) |
Transitions |
11 |
10 |
90.91 |
|
Sequences |
0 |
0 |
|
|
State, Transition and Sequence Details for FSM :: error_q
states | Line No. | Covered | Tests |
AccessError |
256 |
Covered |
T4,T18,T105 |
CheckFailError |
317 |
Covered |
T97,T155 |
FsmStateError |
289 |
Covered |
T3,T4,T12 |
MacroEccCorrError |
221 |
Covered |
T13,T103,T61 |
NoError |
235 |
Covered |
T1,T2,T3 |
transitions | Line No. | Covered | Tests | Exclude Annotation |
AccessError->CheckFailError |
317 |
Excluded |
|
VC_COV_UNR |
AccessError->FsmStateError |
325 |
Covered |
T109,T113,T14 |
|
AccessError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
AccessError->NoError |
235 |
Covered |
T4,T18,T105 |
|
CheckFailError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
CheckFailError->FsmStateError |
325 |
Excluded |
|
VC_COV_UNR |
CheckFailError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
CheckFailError->NoError |
235 |
Covered |
T97,T155 |
|
FsmStateError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
FsmStateError->CheckFailError |
317 |
Excluded |
|
VC_COV_UNR |
FsmStateError->MacroEccCorrError |
221 |
Excluded |
|
VC_COV_UNR |
FsmStateError->NoError |
235 |
Covered |
T3,T4,T12 |
|
MacroEccCorrError->AccessError |
256 |
Excluded |
|
VC_COV_UNR |
MacroEccCorrError->CheckFailError |
317 |
Not Covered |
|
|
MacroEccCorrError->FsmStateError |
325 |
Covered |
T162,T171,T207 |
|
MacroEccCorrError->NoError |
235 |
Covered |
T13,T103,T61 |
|
NoError->AccessError |
256 |
Covered |
T4,T18,T105 |
|
NoError->CheckFailError |
317 |
Covered |
T97,T155 |
|
NoError->FsmStateError |
289 |
Covered |
T3,T4,T12 |
|
NoError->MacroEccCorrError |
221 |
Covered |
T13,T103,T61 |
|
Branch Coverage for Instance : tb.dut.gen_partitions[2].gen_unbuffered.u_part_unbuf
| Line No. | Total | Covered | Percent |
Branches |
|
44 |
44 |
100.00 |
TERNARY |
336 |
2 |
2 |
100.00 |
TERNARY |
349 |
2 |
2 |
100.00 |
TERNARY |
358 |
2 |
2 |
100.00 |
TERNARY |
395 |
2 |
2 |
100.00 |
TERNARY |
420 |
2 |
2 |
100.00 |
CASE |
186 |
23 |
23 |
100.00 |
IF |
314 |
3 |
3 |
100.00 |
IF |
321 |
3 |
3 |
100.00 |
IF |
461 |
2 |
2 |
100.00 |
IF |
464 |
3 |
3 |
100.00 |
336 assign tlul_rdata_o = (tlul_rvalid_o && tlul_rerror_o == '0) ? otp_rdata_i[31:0] : '0;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T3,T6,T10 |
0 |
Covered |
T1,T2,T3 |
349 assign addr_calc = (otp_addr_sel == DigestAddrSel) ? DigestOffset : {tlul_addr_q, 2'b00};
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
358 assign otp_size_o = (otp_addr_sel == DigestAddrSel) ?
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T3,T6,T10 |
395 assign init_locked = (~init_done_o) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
420 assign digest_locked = (digest_o != '0) ? MuBi8True : MuBi8False;
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T11,T18,T105 |
0 |
Covered |
T1,T2,T3 |
186 unique case (state_q)
-1-
187 ///////////////////////////////////////////////////////////////////
188 // State right after reset. Wait here until we get a an
189 // initialization request.
190 ResetSt: begin
191 if (init_req_i) begin
-2-
192 // If the partition does not have a digest, no initialization is necessary.
193 if (Info.sw_digest) begin
-3-
194 state_d = InitSt;
==>
195 end else begin
196 state_d = IdleSt;
==> (Unreachable)
197 end
198 end
MISSING_ELSE
==>
199 end
200 ///////////////////////////////////////////////////////////////////
201 // Initialization reads out the digest only in unbuffered
202 // partitions. Wait here until the OTP request has been granted.
203 // And then wait until the OTP word comes back.
204 InitSt: begin
205 otp_req_o = 1'b1;
206 if (otp_gnt_i) begin
-4-
207 state_d = InitWaitSt;
==>
208 end
MISSING_ELSE
==>
209 end
210 ///////////////////////////////////////////////////////////////////
211 // Wait for OTP response and write to digest buffer register. In
212 // case an OTP transaction fails, latch the OTP error code and
213 // jump to a terminal error state.
214 InitWaitSt: begin
215 if (otp_rvalid_i) begin
-5-
216 digest_reg_en = 1'b1;
217 if (otp_err inside {NoError, MacroEccCorrError}) begin
-6-
218 state_d = IdleSt;
219 // At this point the only error that we could have gotten are correctable ECC errors.
220 if (otp_err != NoError) begin
-7-
221 error_d = MacroEccCorrError;
==>
222 end
MISSING_ELSE
==>
223 end else begin
224 state_d = ErrorSt;
==>
225 error_d = otp_err;
226 end
227 end
MISSING_ELSE
==>
228 end
229 ///////////////////////////////////////////////////////////////////
230 // Wait for TL-UL requests coming in.
231 // Then latch address and go to readout state.
232 IdleSt: begin
233 init_done_o = 1'b1;
234 if (tlul_req_i) begin
-8-
235 error_d = NoError; // clear recoverable soft errors.
==>
236 state_d = ReadSt;
237 tlul_gnt_o = 1'b1;
238 end
MISSING_ELSE
==>
239 end
240 ///////////////////////////////////////////////////////////////////
241 // If the address is out of bounds, or if the partition is
242 // locked, signal back a bus error. Note that such an error does
243 // not cause the partition to go into error state. Otherwise if
244 // these checks pass, an OTP word is requested.
245 ReadSt: begin
246 init_done_o = 1'b1;
247 // Double check the address range.
248 if (tlul_addr_in_range && mubi8_test_false_strict(access_o.read_lock)) begin
-9-
249 otp_req_o = 1'b1;
250 otp_addr_sel = DataAddrSel;
251 if (otp_gnt_i) begin
-10-
252 state_d = ReadWaitSt;
==>
253 end
MISSING_ELSE
==>
254 end else begin
255 state_d = IdleSt;
==>
256 error_d = AccessError; // Signal this error, but do not go into terminal error state.
257 tlul_rvalid_o = 1'b1;
258 tlul_rerror_o = 2'b11; // This causes the TL-UL adapter to return a bus error.
259 end
260 end
261 ///////////////////////////////////////////////////////////////////
262 // Wait for OTP response and release the TL-UL response. In
263 // case an OTP transaction fails, latch the OTP error code,
264 // signal a TL-Ul bus error and jump to a terminal error state.
265 ReadWaitSt: begin
266 init_done_o = 1'b1;
267 if (otp_rvalid_i) begin
-11-
268 tlul_rvalid_o = 1'b1;
269 if (otp_err inside {NoError, MacroEccCorrError}) begin
-12-
270 state_d = IdleSt;
271 // At this point the only error that we could have gotten are correctable ECC errors.
272 if (otp_err != NoError) begin
-13-
273 error_d = MacroEccCorrError;
==>
274 end
MISSING_ELSE
==>
275 end else begin
276 state_d = ErrorSt;
==>
277 error_d = otp_err;
278 // This causes the TL-UL adapter to return a bus error.
279 tlul_rerror_o = 2'b11;
280 end
281 end
MISSING_ELSE
==>
282 end
283 ///////////////////////////////////////////////////////////////////
284 // Terminal Error State. This locks access to the partition.
285 // Make sure the partition signals an error state if no error
286 // code has been latched so far.
287 ErrorSt: begin
288 if (error_q == NoError) begin
-14-
289 error_d = FsmStateError;
==>
290 end
MISSING_ELSE
==>
291
292 // Return bus errors if there are pending TL-UL requests.
293 if (pending_tlul_error_q) begin
-15-
294 tlul_rerror_o = 2'b11;
==>
295 tlul_rvalid_o = 1'b1;
296 end else if (tlul_req_i) begin
-16-
297 tlul_gnt_o = 1'b1;
==>
298 pending_tlul_error_d = 1'b1;
299 end
MISSING_ELSE
==>
300 end
301 ///////////////////////////////////////////////////////////////////
302 // We should never get here. If we do (e.g. via a malicious
303 // glitch), error out immediately.
304 default: begin
305 state_d = ErrorSt;
==>
Branches:
-1- | -2- | -3- | -4- | -5- | -6- | -7- | -8- | -9- | -10- | -11- | -12- | -13- | -14- | -15- | -16- | Status | Tests |
ResetSt |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
ResetSt |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Unreachable |
|
ResetSt |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitSt |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitSt |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitWaitSt |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T173,T53,T44 |
InitWaitSt |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
InitWaitSt |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T174,T175,T176 |
InitWaitSt |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
IdleSt |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
IdleSt |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T1,T2,T3 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
- |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
- |
- |
Covered |
T5,T106,T125 |
ReadSt |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
- |
- |
Covered |
T4,T18,T105 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
1 |
- |
- |
- |
Covered |
T13,T103,T61 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
1 |
0 |
- |
- |
- |
Covered |
T3,T6,T10 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
0 |
- |
- |
- |
- |
Covered |
T156,T172,T177 |
ReadWaitSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
- |
- |
- |
Covered |
T3,T6,T10 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
Covered |
T23,T24,T25 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
Covered |
T3,T4,T12 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
1 |
- |
Covered |
T12,T13,T7 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
1 |
Covered |
T12,T13,T7 |
ErrorSt |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
0 |
0 |
Covered |
T3,T4,T12 |
default |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Covered |
T23,T24,T25 |
314 if (ecc_err) begin
-1-
315 state_d = ErrorSt;
316 if (state_q != ErrorSt) begin
-2-
317 error_d = CheckFailError;
==>
318 end
MISSING_ELSE
==>
319 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T97,T155 |
1 |
0 |
Covered |
T97,T155 |
0 |
- |
Covered |
T1,T2,T3 |
321 if (lc_ctrl_pkg::lc_tx_test_true_loose(escalate_en_i)) begin
-1-
322 state_d = ErrorSt;
323 fsm_err_o = 1'b1;
324 if (state_q != ErrorSt) begin
-2-
325 error_d = FsmStateError;
==>
326 end
MISSING_ELSE
==>
327 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
1 |
Covered |
T3,T4,T12 |
1 |
0 |
Covered |
T3,T4,T12 |
0 |
- |
Covered |
T1,T2,T3 |
461 `PRIM_FLOP_SPARSE_FSM(u_state_regs, state_d, state_q, state_e, ResetSt)
-1-
==>
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
464 if (!rst_ni) begin
-1-
465 error_q <= NoError;
==>
466 tlul_addr_q <= '0;
467 pending_tlul_error_q <= 1'b0;
468 end else begin
469 error_q <= error_d;
470 pending_tlul_error_q <= pending_tlul_error_d;
471 if (tlul_gnt_o) begin
-2-
472 tlul_addr_q <= tlul_addr_d;
==>
473 end
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Covered |
T3,T6,T10 |
0 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.gen_partitions[2].gen_unbuffered.u_part_unbuf
Assertion Details
AccessKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
DigestOffsetMustBeRepresentable_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
EccErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
5693 |
0 |
0 |
T61 |
66025 |
0 |
0 |
0 |
T91 |
84337 |
0 |
0 |
0 |
T97 |
12000 |
3176 |
0 |
0 |
T124 |
46418 |
0 |
0 |
0 |
T125 |
43470 |
0 |
0 |
0 |
T155 |
0 |
2517 |
0 |
0 |
T159 |
11266 |
0 |
0 |
0 |
T161 |
35248 |
0 |
0 |
0 |
T185 |
17733 |
0 |
0 |
0 |
T186 |
6691 |
0 |
0 |
0 |
T187 |
20302 |
0 |
0 |
0 |
ErrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
FsmStateKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitDoneKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
InitReadLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17828812 |
0 |
0 |
T1 |
6346 |
1202 |
0 |
0 |
T2 |
20779 |
463 |
0 |
0 |
T3 |
16526 |
3943 |
0 |
0 |
T4 |
41540 |
2185 |
0 |
0 |
T5 |
24984 |
559 |
0 |
0 |
T6 |
30776 |
131 |
0 |
0 |
T10 |
44472 |
364 |
0 |
0 |
T11 |
20926 |
667 |
0 |
0 |
T12 |
41197 |
26101 |
0 |
0 |
T13 |
73799 |
10364 |
0 |
0 |
InitWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17828812 |
0 |
0 |
T1 |
6346 |
1202 |
0 |
0 |
T2 |
20779 |
463 |
0 |
0 |
T3 |
16526 |
3943 |
0 |
0 |
T4 |
41540 |
2185 |
0 |
0 |
T5 |
24984 |
559 |
0 |
0 |
T6 |
30776 |
131 |
0 |
0 |
T10 |
44472 |
364 |
0 |
0 |
T11 |
20926 |
667 |
0 |
0 |
T12 |
41197 |
26101 |
0 |
0 |
T13 |
73799 |
10364 |
0 |
0 |
OffsetMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
OtpAddrKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpCmdKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpErrorState_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
53 |
0 |
0 |
T70 |
493271 |
0 |
0 |
0 |
T134 |
59744 |
0 |
0 |
0 |
T151 |
19321 |
0 |
0 |
0 |
T156 |
0 |
1 |
0 |
0 |
T157 |
0 |
1 |
0 |
0 |
T171 |
89914 |
0 |
0 |
0 |
T172 |
0 |
1 |
0 |
0 |
T174 |
8555 |
1 |
0 |
0 |
T175 |
0 |
1 |
0 |
0 |
T176 |
0 |
1 |
0 |
0 |
T177 |
0 |
1 |
0 |
0 |
T188 |
0 |
1 |
0 |
0 |
T189 |
0 |
1 |
0 |
0 |
T190 |
0 |
1 |
0 |
0 |
T197 |
20527 |
0 |
0 |
0 |
T198 |
90255 |
0 |
0 |
0 |
T199 |
45924 |
0 |
0 |
0 |
T200 |
82308 |
0 |
0 |
0 |
T201 |
13170 |
0 |
0 |
0 |
OtpReqKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpSizeKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
OtpWdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
ReadLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
17618926 |
0 |
0 |
T4 |
41540 |
13170 |
0 |
0 |
T5 |
24984 |
1634 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
0 |
0 |
0 |
T12 |
41197 |
28297 |
0 |
0 |
T13 |
73799 |
5088 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
29053 |
0 |
0 |
T93 |
0 |
24726 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
962 |
0 |
0 |
T105 |
0 |
6755 |
0 |
0 |
T106 |
0 |
1703 |
0 |
0 |
T107 |
0 |
37957 |
0 |
0 |
SizeMustBeBlockAligned_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
1120 |
1120 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T4 |
1 |
1 |
0 |
0 |
T5 |
1 |
1 |
0 |
0 |
T6 |
1 |
1 |
0 |
0 |
T10 |
1 |
1 |
0 |
0 |
T11 |
1 |
1 |
0 |
0 |
T12 |
1 |
1 |
0 |
0 |
T13 |
1 |
1 |
0 |
0 |
TlulGntKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRdataKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulReadOnReadLock_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
6927 |
0 |
0 |
T4 |
41540 |
3 |
0 |
0 |
T5 |
24984 |
0 |
0 |
0 |
T7 |
111593 |
21 |
0 |
0 |
T11 |
20926 |
0 |
0 |
0 |
T12 |
41197 |
9 |
0 |
0 |
T13 |
73799 |
2 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
3 |
0 |
0 |
T93 |
0 |
5 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T105 |
0 |
2 |
0 |
0 |
T106 |
0 |
5 |
0 |
0 |
T110 |
0 |
23 |
0 |
0 |
T111 |
0 |
1 |
0 |
0 |
TlulRerrorKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
TlulRvalidKnown_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |
WriteLockPropagation_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
1966444 |
0 |
0 |
T19 |
4953 |
0 |
0 |
0 |
T20 |
0 |
30785 |
0 |
0 |
T90 |
7244 |
0 |
0 |
0 |
T91 |
0 |
4065 |
0 |
0 |
T93 |
66768 |
0 |
0 |
0 |
T105 |
52425 |
4665 |
0 |
0 |
T106 |
71675 |
0 |
0 |
0 |
T107 |
0 |
7682 |
0 |
0 |
T108 |
0 |
55247 |
0 |
0 |
T109 |
0 |
37602 |
0 |
0 |
T110 |
117723 |
0 |
0 |
0 |
T111 |
44650 |
0 |
0 |
0 |
T115 |
25202 |
0 |
0 |
0 |
T116 |
35702 |
0 |
0 |
0 |
T125 |
0 |
2975 |
0 |
0 |
T137 |
108056 |
0 |
0 |
0 |
T202 |
0 |
4039 |
0 |
0 |
T204 |
0 |
3230 |
0 |
0 |
T205 |
0 |
12812 |
0 |
0 |
gen_digest_write_lock.DigestWriteLocksPartition_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
21294052 |
0 |
0 |
T7 |
111593 |
0 |
0 |
0 |
T11 |
20926 |
13175 |
0 |
0 |
T12 |
41197 |
0 |
0 |
0 |
T13 |
73799 |
0 |
0 |
0 |
T17 |
7426 |
0 |
0 |
0 |
T18 |
123084 |
82918 |
0 |
0 |
T20 |
0 |
142702 |
0 |
0 |
T29 |
11450 |
0 |
0 |
0 |
T91 |
0 |
73821 |
0 |
0 |
T102 |
9425 |
0 |
0 |
0 |
T103 |
118648 |
0 |
0 |
0 |
T104 |
21552 |
0 |
0 |
0 |
T105 |
0 |
42273 |
0 |
0 |
T106 |
0 |
62011 |
0 |
0 |
T107 |
0 |
102267 |
0 |
0 |
T108 |
0 |
444623 |
0 |
0 |
T125 |
0 |
33202 |
0 |
0 |
T159 |
0 |
3474 |
0 |
0 |
u_state_regs_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
95995079 |
95123308 |
0 |
0 |
T1 |
6346 |
6266 |
0 |
0 |
T2 |
20779 |
20387 |
0 |
0 |
T3 |
16526 |
16188 |
0 |
0 |
T4 |
41540 |
41124 |
0 |
0 |
T5 |
24984 |
24368 |
0 |
0 |
T6 |
30776 |
30706 |
0 |
0 |
T10 |
44472 |
44397 |
0 |
0 |
T11 |
20926 |
20462 |
0 |
0 |
T12 |
41197 |
40991 |
0 |
0 |
T13 |
73799 |
72549 |
0 |
0 |