blob: 1affd88c8c3bd8b5b34e02c99218dd5da40d73e3 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class csrng_cmds_test extends csrng_base_test;
`uvm_component_utils(csrng_cmds_test)
`uvm_component_new
function void configure_env();
super.configure_env();
cfg.num_cmds_min = 0;
cfg.num_cmds_max = 20;
cfg.aes_halt_pct = 80;
cfg.min_aes_halt_clks = 400;
cfg.max_aes_halt_clks = 600;
for (int i = 0; i < NUM_HW_APPS; i++) begin
cfg.m_edn_agent_cfg[i].min_genbits_rdy_dly = 0;
cfg.m_edn_agent_cfg[i].max_genbits_rdy_dly = 20;
end
`DV_CHECK_RANDOMIZE_FATAL(cfg)
`uvm_info(`gfn, $sformatf("%s", cfg.convert2string()), UVM_LOW)
endfunction
endclass : csrng_cmds_test