blob: 068b269cb74aca24cc64deb85be21c4751ef6da9 [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 pwrmgr_env_cfg extends cip_base_env_cfg #(
.RAL_T(pwrmgr_reg_block)
);
// ext component cfgs
`uvm_object_utils_begin(pwrmgr_env_cfg)
`uvm_object_utils_end
`uvm_object_new
// ext interfaces
virtual clk_rst_if slow_clk_rst_vif;
virtual pwrmgr_if pwrmgr_vif;
virtual pwrmgr_ast_sva_if pwrmgr_ast_sva_vif;
virtual pwrmgr_clock_enables_sva_if pwrmgr_clock_enables_sva_vif;
virtual pwrmgr_rstmgr_sva_if pwrmgr_rstmgr_sva_vif;
// The run_phase object, to deal with objections.
uvm_phase run_phase;
virtual function void initialize(bit [31:0] csr_base_addr = '1);
list_of_alerts = pwrmgr_env_pkg::LIST_OF_ALERTS;
super.initialize(csr_base_addr);
num_interrupts = ral.intr_state.get_n_used_bits();
endfunction
endclass