While developing a VIP we have a base_class which extends the uxm_sequence_item and there we declare variables to be randomized, we also extend another class from this base class and there also we have items which are to be randomized and treated as stimulus to the DUT. My question is what goes in the decision making of the variables which are declared in the base class and the items which are there in the extended class?
Eg:
class base_trans extend uvm_sequence_item
rand bit[9:0] x;
rand bit[3:0] y;
endclass
class master_trans extends base_trans;
rand bit[3:0] p;
rand bit[2:0] q;
endclass
How do we decide as to which seq_item are to be declared in the base class?