have you double checked if the “_register.default_map.get_reg_by_offset” call was
successful?
I would suggest to change the codes as followed:
if(_register = regs.default_map.get_reg_by_offset(bus_item.cmd)) begin
bytes_num = _register.get_n_bytes();
end else begin
// Add your error handling here
end
Seems like if else and display and uvm_info are helpful for debug in uvm. I am new to uvm and finding it difficult when i get stuck.
Debug skills is need of the hour to me.
Yes. Thanks for your support.
I used to debug using the waveform and now I think in UVM ,
debug using waveform is limited and lots of if …else and uvm_info
helps in debug.