Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[edn/dv] Fix failing tests #20897

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hw/ip/edn/dv/edn_sim_cfg.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
uvm_test: edn_disable_test
uvm_test_seq: edn_disable_vseq
// For debug purpose, this test is very short.
run_opts: ["+test_timeout_ns=100_000"]
run_opts: ["+test_timeout_ns=500_000"]
}

{
Expand Down
4 changes: 2 additions & 2 deletions hw/ip/edn/dv/env/seq_lib/edn_genbits_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ class edn_genbits_vseq extends edn_base_vseq;
ral.ctrl.auto_req_mode.set(MuBi4False);
csr_update(.csr(ral.ctrl));
mode = edn_env_pkg::SwMode;
// Give the hardware time to quiesce
csr_spinwait(.ptr(ral.main_sm_state), .exp_data(edn_pkg::Idle), .backdoor(1'b1));
// Wait until the EDN enters the Idle state and finally the SWPortMode.
csr_spinwait(.ptr(ral.main_sm_state), .exp_data(edn_pkg::SWPortMode), .backdoor(1'b1));
`DV_CHECK_EQ(cfg.m_csrng_agent_cfg.generate_between_reseeds_cnt, num_reqs_between_reseeds)
// If the endpoint agents still expect more data, send another generate command
if (total_glen > cfg.m_csrng_agent_cfg.generate_cnt*cfg.glen_auto_mode) begin
Expand Down
Loading