In reply to chr_sue:
In reply to prashanth.billava:
In the top_tb you have to make an instance of the VIP interface like this:
X xif(); // don’t miss the brackets!
Furthermore you have tp pass this interface to the uvm_config_db in the initial block of the top_tb:
initial begin
…
uvm_config_db #(X)::set(null, “*”, V_IF_CHIP, xif);
…
end
Hi Sue,
I tried to use the same, but I get error during run_time pointing to the position where the interface is “get” in the VIP .
Error-[NOA] Null object access
The object at dereference depth 0 is being used before it was
constructed/allocated.
Please make sure that the object is allocated before using it.
Is it because there a container being used, which is uvm_object type?