In reply to dave_59:
Hi Dave,
Thank you for a quick and appropriate reply. It solved the above-mentioned issue.
but i am getting into “type casting issue”.
_
The code changed:_
virtual function void end_of_elaboration();
set_type_override_by_type(rra_item#(16)::get_type(),rra_item_8::get_type());
endfunction : end_of_elaboration
_
sequence declaration:_
*class multi_req_seq extends uvm_sequence#(rra_item#(16));
uvm_object_utils(multi_req_seq)
uvm_declare_p_sequencer(rra_sequencer_t)
function new(string name="");
super.new(name);
endfunction : new
task pre_start();
`ifdef UVM_POST_VERSION_1_1
uvm_phase starting_phase = get_starting_phase();
`endif
if(starting_phase != null)
starting_phase.raise_objection(this);
endtask : pre_start
task body();
for(int i=0; i< 20; i++) begin
`uvm_do(req);
end
endtask : body
task post_start();
ifdef UVM_POST_VERSION_1_1 uvm_phase starting_phase = get_starting_phase();
endif
if(starting_phase != null)
starting_phase.drop_objection(this);
endtask : post_start
endclass : multi_req_seq*
the simulator shows the following error message,
*####
UVM_INFO verilog_src/questa_uvm_pkg-1.2/src/questa_uvm_pkg.sv(272) @ 0: reporter [Questa UVM] End Of Elaboration
** Error: (vsim-3971) $cast to type ‘class work.rra_pkg::rra_item #(16)’ from ‘class work.rra_pkg::rra_item #(8)’ failed in file /stec/proj/asic/cwm3/verification/users/mahi/rra_uvc/rra_seq_lib.sv at line 64.
Time: 0 ps Iteration: 50 Region: /uvm_pkg::uvm_sequence_base::start
UVM_FATAL @ 0: uvm_test_top.o_rra_env.o_rra_agent.o_rra_sequencer@@seq [NULLITM] attempting to start a null item from sequence ‘uvm_test_top.o_rra_env.o_rra_agent.o_rra_sequencer.seq’
#*
can you please point me out what i am missing here?
Thanks
Mahendran