I can’t seem to figure out the ‘correct’ way to read an individual field using the UVM register model. I know that reading and writing the fields directly is not recommended (and produces warning messages):
my_block.my_reg.my_field.write( ... );
my_block.my_reg.my_field.read( ... );
It seems the correct way to write an individual field is:
my_block.my_reg.my_field.set( ... );
my_block.my_reg.update( ... );
I was expecting something similar to work for reads, but the ‘get’ call does not return the correct value:
my_block.my_reg.read( ... );
my_block.my_reg.my_field.get( ... );
I think I had this working at some point with Auto-Prediction mode enabled, but I need it now with that mode disabled. This seems like something that should be really easy to do…