Uvm_config_db get method is failing when null is passed to seq.start() method

In reply to Reuben:

Hi,

You might be aware of the fact that get_full_name() on sequence returns hierarchy through sequencer the sequence is started on.


uvm_config_db#(testbench_env_config)::get(null, get_full_name(), "cfg", cfg)
$display("Sequence hierarchy: %s", get_full_name());

Here display statement returns something like this - “test_h.env_h.agent_h.seqr_h.sequence_h”.

Problem can be in setting of configuration where you are using visibility of the config to env_h/agent_h only.

Try using above display when using “null” sequencer on sequence and see the sequence path. Set visibility in

uvm_config_db#(testbench_env_config)::set(<> , "visibility", "cfg", cfg)

accordingly.