Systemverilog inheritance question

check → ‘uvm_config_db#(my_ral_block)::get…’ executed after corresponding ‘uvm_config_db…set’ and my_block is not NULL by using +UVM_CONFIG_DB_TRACE.

Better to code it like -


if( !uvm_config_db#(my_ral_block)::get(null, "*", "my_ral_block", my_block) ) begin
    `uvm_fatal(get_name(), "my_block handle is NULL");
end

https://letuslearnsv.com/