Skip to content

Commit

Permalink
[hmac,dv] Optimize regression duration
Browse files Browse the repository at this point in the history
  - reduce reseeding for HMAC SHA-2/HMAC vectors tests as the
    randomization space is quite narrow
  - remove these tests from the stress test as it doesn't bring anything
  - related to this issue #23844

Signed-off-by: Martin Velay <[email protected]>
  • Loading branch information
martin-velay authored and vogelpi committed Jul 1, 2024
1 parent 7f8a908 commit 0539d58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions hw/ip/hmac/dv/env/seq_lib/hmac_stress_all_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class hmac_stress_all_vseq extends hmac_base_vseq;
"hmac_datapath_stress_vseq",
"hmac_long_msg_vseq",
"hmac_error_vseq",
"hmac_wipe_secret_vseq",
"hmac_test_vectors_sha_vseq",
"hmac_test_vectors_hmac_vseq"};
"hmac_wipe_secret_vseq"};
for (int i = 1; i <= num_trans; i++) begin
uvm_sequence seq;
hmac_base_vseq hmac_vseq;
Expand Down
6 changes: 6 additions & 0 deletions hw/ip/hmac/dv/hmac_sim_cfg.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -96,38 +96,44 @@
uvm_test_seq: hmac_test_vectors_sha_vseq
// Increase timeout for all test iterations to pass
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=800_000_000 +sha2_digest_size=SHA2_256"]
reseed: 5
}

{
name: hmac_test_sha384_vectors
uvm_test_seq: hmac_test_vectors_sha_vseq
// Increase timeout for all test iterations to pass
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=1_000_000_000 +sha2_digest_size=SHA2_384"]
reseed: 5
}

{
name: hmac_test_sha512_vectors
uvm_test_seq: hmac_test_vectors_sha_vseq
// Increase timeout for all test iterations to pass
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=1_200_000_000 +sha2_digest_size=SHA2_512"]
reseed: 5
}

{
name: hmac_test_hmac256_vectors
uvm_test_seq: hmac_test_vectors_hmac_vseq
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=1_000_000_000 +sha2_digest_size=SHA2_256"]
reseed: 5
}

{
name: hmac_test_hmac384_vectors
uvm_test_seq: hmac_test_vectors_hmac_vseq
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=2_000_000_000 +sha2_digest_size=SHA2_384"]
reseed: 5
}

{
name: hmac_test_hmac512_vectors
uvm_test_seq: hmac_test_vectors_hmac_vseq
run_opts: ["+test_vectors_dir={build_dir}/src/lowrisc_dv_test_vectors_0 +test_timeout_ns=2_000_000_000 +sha2_digest_size=SHA2_512"]
reseed: 5
}

{
Expand Down

0 comments on commit 0539d58

Please sign in to comment.