From 8d74044ba8dff650aced48b31a112b90160ced97 Mon Sep 17 00:00:00 2001 From: Dror Kabely Date: Wed, 28 Feb 2024 16:02:37 +0200 Subject: [PATCH] [dv/otp_ctrl] increased default spinwait timeout duration for otp_ctrl_parallel_lc_req_vseq Signed-off-by: Dror Kabely --- .../dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv b/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv index 39280b13a21a9..9be1ae7575563 100644 --- a/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv +++ b/hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv @@ -4,6 +4,10 @@ // Otp_ctrl_parallel_lc_vseq is developed to generate rand lc_otp req, which runs parallel with // normal DAI access sequences. + +// changing the default spinwait timeout value for this test +import csr_utils_pkg::default_spinwait_timeout_ns; + class otp_ctrl_parallel_lc_req_vseq extends otp_ctrl_parallel_base_vseq; `uvm_object_utils(otp_ctrl_parallel_lc_req_vseq) @@ -14,6 +18,13 @@ class otp_ctrl_parallel_lc_req_vseq extends otp_ctrl_parallel_base_vseq; do_lc_trans == 0; } + virtual task pre_start(); + // LC transition in using real OTP is very long because of IP PROG transaction duration + // need to scale up the default spinwait timeout duration + default_spinwait_timeout_ns = default_spinwait_timeout_ns * 1000; + super.pre_start(); + endtask : pre_start + virtual task run_parallel_seq(ref bit base_vseq_done); forever begin if (base_vseq_done) return;