Sequence Item (Transaction) Composition

Another thing I noticed was that you’re trying to use two arguments for the constructor:


function new(string name = "trans2");
super.new(name); 
t = trans1::type_id::create( "trans1", this ); // BAD!
endfunction : new

From here, you can see that the constructor only takes ONE argument, which is the name. UVM components (uvm_component) takes two arguments since there’s a hierarchical relationship which is used for build_phase, connect_phase and so on
The correct code for this will be:


function new(string name = "trans2");
super.new(name); 
t = trans1::type_id::create( "trans1"); // GOOD!
endfunction : new

I think this should get rid of both your errors.