The issue I have is the register model has multiple registers of different names but the fields within the registers are named the same. The register model is generated by a tool so getting changes made will take some time and I need a work around. I have a lot of registers so this is a big problem.
class reg_0 extends uvm_reg;
rand uvm_reg_field x;
rand uvm_reg_field y;
......
endclass
class reg_1 extends uvm_reg;
rand uvm_reg_field x;
rand uvm_reg_field y;
......
endclass
I need to be able to access the fields in my scoreboard. The problem is the field is