In reply to bhavik.pipaliya:
Hi Bhavik,
Here is the three_seq.sv file:
class three_seq extends uvm_sequence#(trans);
rand int unsigned num_jelly_bean_flavors; // knob
constraint num_jelly_bean_flavors_con { num_jelly_bean_flavors inside { [2:3] }; }
function new(string name = "");
super.new(name);
endfunction: new
task body();
two_seq jb_seq;
repeat (num_jelly_bean_flavors) begin
jb_seq = two_seq::type_id::create("jb_seq",get_full_name());
assert(jb_seq.randomize());
jb_seq.start(.sequencer(m_sequencer), .parent_sequence(this));
end
endtask: body
`uvm_object_utils_begin(three_seq)
`uvm_field_int(num_jelly_bean_flavors, UVM_ALL_ON)
`uvm_object_utils_end
endclass: three_seq
In the trans.sv, one_seq, two_seq, and three_seq files, the new constructor have only the “” for string.
Could you please relate something workable.
-Sunils