[dv/otp] Fix lc max count
This PR fixes the max count for lc transition. It used to be 16 now
design updated to 24.
Thanks Dror for catching this.
Signed-off-by: Cindy Chen <chencindy@opentitan.org>
diff --git a/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_base_vseq.sv b/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_base_vseq.sv
index cc04836..b5cc2dd 100644
--- a/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_base_vseq.sv
+++ b/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_base_vseq.sv
@@ -470,7 +470,7 @@
if (!wr_blank_err) begin
// Find valid next state and next cnt using lc_ctrl_dv_utils_pkg.
// If terminal state or max LcCnt reaches, will not program any new data.
- if ((lc_state != LcStScrap) && (lc_cnt != LcCnt16)) begin
+ if ((lc_state != LcStScrap) && (lc_cnt != LcCnt24)) begin
lc_state_dec = lc_ctrl_dv_utils_pkg::dec_lc_state(lc_state);
`DV_CHECK_STD_RANDOMIZE_WITH_FATAL(next_lc_state,
next_lc_state inside {VALID_NEXT_STATES[lc_state_dec]};)