In reply to chr_sue:
Hi chr_sue,
As you mentioned in the reply, I had added those packages in the agent code, but still errors for this agent code have been increased. here I have attached the error list kindly help me resolve these errors, and for the other files it is showing the same errors.
import uvm_pkg::*;
`include "uvm_macros.svh"
class agent extends uvm_agent;
`uvm_component_utils(agent)
sequencer system_sqncr;
driver system_driv;
monitor system_mon;
function new(string name, uvm_component parent);
super.new(name,parent);
endfunction: new
////////////// BUILD PHASE //////////////////////////////
function void build_phase(uvm_phase phase);
super.build_phase(phase);
//ACTIVE
system_sqncr=sequencer::type_id::create("system_sqncr",this);
system_driv=driver::type_id::create("system_driv",this);
system_mon=monitor::type_id::create("system_mon",this);
endfunction:build_phase
////////////// CONNECT PHASE //////////////////////////////
function void connect_phase(uvm_phase phase);
system_driv.seq_item_port.connect(system_sqncr.seq_item_export);
endfunction: connect_phase
endclass: agent
ERROR for Agent:
** Error: D:/uvm_ALL/log/agent.sv(7): Invalid type ‘sequencer’. Please check the type of the variable ‘system_sqncr’.
** Error: D:/uvm_ALL/log/agent.sv(8): Invalid type ‘driver’. Please check the type of the variable ‘system_driv’.
** Error: D:/uvm_ALL/log/agent.sv(9): Invalid type ‘monitor’. Please check the type of the variable ‘system_mon’.
** Error: D:/uvm_ALL/log/agent.sv(19): (vlog-2730) Undefined variable: ‘system_sqncr’.
** Error: D:/uvm_ALL/log/agent.sv(19): (vlog-2164) Class or package ‘sequencer’ not found.
** Error: D:/uvm_ALL/log/agent.sv(19): (vlog-2730) Undefined variable: ‘sequencer’.
** Error: (vlog-13069) D:/uvm_ALL/log/agent.sv(19): near “::”: syntax error, unexpected ::, expecting ‘;’.
** Error: D:/uvm_ALL/log/agent.sv(20): (vlog-2730) Undefined variable: ‘system_driv’.
** Error: D:/uvm_ALL/log/agent.sv(20): (vlog-2164) Class or package ‘driver’ not found.
** Error: D:/uvm_ALL/log/agent.sv(20): (vlog-2730) Undefined variable: ‘driver’.
** Error: (vlog-13069) D:/uvm_ALL/log/agent.sv(20): near “::”: syntax error, unexpected ::, expecting ‘;’.
** Error: D:/uvm_ALL/log/agent.sv(21): (vlog-2730) Undefined variable: ‘system_mon’.
** Error: D:/uvm_ALL/log/agent.sv(21): (vlog-2164) Class or package ‘monitor’ not found.
** Error: D:/uvm_ALL/log/agent.sv(21): (vlog-2730) Undefined variable: ‘monitor’.
** Error: (vlog-13069) D:/uvm_ALL/log/agent.sv(21): near “::”: syntax error, unexpected ::, expecting ‘;’.
when I try to do compilation in questasim it displays the below errors