Hello, I am facing this error and unable to debug this error.
Can you please help me with this.
Fatal error in Function ram_test_pkg/ram_rd_agent::build_phase at …/rd_agt_top/ram_rd_agent.sv line 69
HDL call sequence:
Stopped at …/rd_agt_top/ram_rd_agent.sv 69 Function ram_test_pkg/ram_rd_agent::build_phase
Here is the code for ram_rd_agent.sv
class ram_rd_agent extends uvm_agent;
// Factory Registration
`uvm_component_utils(ram_rd_agent)
ram_rd_agent_config m_cfg;
ram_rd_monitor monh;
ram_rd_sequencer seqrh;
ram_rd_driver drvh;
//------------------------------------------
// METHODS
//------------------------------------------
// Standard UVM Methods:
extern function new(string name = “ram_rd_agent”, uvm_component parent = null);
extern function void build_phase(uvm_phase phase);
extern function void connect_phase(uvm_phase phase);
endclass : ram_rd_agent
//----------------- constructor new method -------------------//
function ram_rd_agent::new(string name = "ram_rd_agent",
uvm_component parent = null);
super.new(name, parent);
endfunction
//----------------- build() phase method -------------------//
function void ram_rd_agent::build_phase(uvm_phase phase);
super.build_phase(phase);
// get the config object using uvm_config_db
if(!uvm_config_db #(ram_rd_agent_config)::get(this,"","ram_rd_agent_config",m_cfg))
`uvm_fatal("CONFIG","cannot get() m_cfg from uvm_config_db. Have you set() it? (i am in agent)")
monh=ram_rd_monitor::type_id::create("monh",this);
if(m_cfg.is_active==UVM_ACTIVE)
begin
drvh=ram_rd_driver::type_id::create("drvh",this);
seqrh=ram_rd_sequencer::type_id::create("seqrh",this);
end
endfunction
//----------------- connect() phase method -------------------//
function void ram_rd_agent::connect_phase(uvm_phase phase);
if(m_cfg.is_active==UVM_ACTIVE)
begin
drvh.seq_item_port.connect(seqrh.seq_item_export);
end
endfunction