I am trying to override my interface sequence (Seq1) with extended sequence of that (Seq2) in extended top level sequence (topSeq1). But my testcase is hanging, i.e. raised objections in topSeq is not dropping. Here is what I am trying.
class topSeq extends uvm_sequence;
virtual task pre_body();
raise_objection;
endtask
virtual task body();
repeat(10) begin
seq1=type::type_id::create(); //create base interface sequence
seq1.start(topseqr.iseqr);
end
endtask
virtual task post_body();
drop_objection;
endtask
endclass
class topSeq1 extends topSeq;
virtual task pre_body();
super.pre_body();
seq1::type_id::set_type_override(seq2::get_type(),1); //from this seq, i am trying to override seq1 with seq2
//factory.set_override_type_by_type(seq1::get_type(),seq2::get_type()); //this too is not working
endtask
virtual task body();
//do some process
endtask
endclass