In reply to chr_sue:
My apologies, I used the word ‘context’ when I meant ‘scope’, I have changed it my previous reply. I followed the convention of the Class Reference Manual (although I haven’t actually coded this for a couple of years). This is what the Class Ref Man uses:
uvm_resource_db#(bit)::set({"REG::",regmodel.blk.get_full_name(),".*"},"NO_REG_TESTS", 1, this);
To remove a register (gen_reg_0) from the test:
uvm_resource_db#(bit)::set({"REG::",regmodel.gen_reg_0.get_full_name()},"NO_REG_TESTS", 1, this);