| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| class aes_b2b_test extends aes_base_test; |
| `uvm_component_utils(aes_b2b_test) |
| virtual function void build_phase(uvm_phase phase); |
| super.build_phase(phase); |
| `DV_CHECK_RANDOMIZE_WITH_FATAL(cfg, cfg.host_resp_speed == VeryFast;) |
| virtual function void configure_env(); |
| cfg.num_messages_min = 1; |
| cfg.num_messages_max = 10; |
| //enable writing as fast as DUT permits |
| cfg.message_len_min = 7; // bytes |
| cfg.message_len_max = 1023; // bytes |
| cfg.fixed_operation_en = 0; |
| cfg.fixed_keylen = 3'b010; |
| cfg.random_data_key_iv_order = 1; |
| cfg.manual_operation_pct = 0; |
| endfunction // configure_env |