Skip to content

Commit

Permalink
[dv/otp_ctrl] increased default spinwait timeout duration for otp_ctr…
Browse files Browse the repository at this point in the history
…l_parallel_lc_req_vseq

Signed-off-by: Dror Kabely <[email protected]>
  • Loading branch information
dkabely-ot authored and msfschaffner committed Mar 1, 2024
1 parent 9aa8309 commit 8d74044
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hw/ip/otp_ctrl/dv/env/seq_lib/otp_ctrl_parallel_lc_req_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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;
Expand Down

0 comments on commit 8d74044

Please sign in to comment.