blob: 32bee95fe33991337cae1e62c38ac0af2bbaa0d6 [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 uart_env_cfg extends cip_base_env_cfg #(.RAL_T(uart_reg_block));
// ext component cfgs
rand uart_agent_cfg m_uart_agent_cfg;
// during break error, DUT will trigger additional frame/parity errors, which mon doesn't catch
// disable parity/frame check in this period
bit disable_scb_rx_parity_check;
bit disable_scb_rx_frame_check;
`uvm_object_utils_begin(uart_env_cfg)
`uvm_field_object(m_uart_agent_cfg, UVM_DEFAULT)
`uvm_object_utils_end
`uvm_object_new
virtual function void initialize(bit [TL_AW-1:0] csr_base_addr = '1,
bit [TL_AW-1:0] csr_addr_map_size = 2048);
super.initialize();
// create uart agent config obj
m_uart_agent_cfg = uart_agent_cfg::type_id::create("m_uart_agent_cfg");
// set num_interrupts & num_alerts which will be used to create coverage and more
num_interrupts = ral.intr_state.get_n_used_bits();
endfunction
endclass