I have a base class, where all fields are registered as UVM_ALL_ON. In class extended from this base class,i want to remove some field from comparing (UVM_NOCOMPARE).
class a ;
rand [2:0] bit tag;
rand [7:0] bit addr;
`uvm_field_int (tag, UVM_ALL_ON)
`uvm_field_int (addr, UVM_ALL_ON)
class b extend a;
`uvm_field_init (tag, UVM_ALL_ON | UVM_NOCOMPARE)
//other functions and fields
But, still TAG is getting compare even though its been registered as NO_COMPARE in extended class.
Any clue is appreciated, about how to remove "tag" from comparing.