Jump to content

How to set a virtual interface of a VIP from SoC tb top

Recommended Posts


I have a doubt regarding an interface "X" being defined as :

Driver code of the VIP:
protected virtual X ChipIf;
function void connect phase(uvm_phase phase);

Y vif_container; 

// Assigning virtual interface
assert(uvm_config_object::get(this, "","V_IF_CHIP", temp));
$cast(vif_container, temp);
ChipIf = vif_container.get_v_if();

endfunction : connect_phase


From the tb_top of the SoC , where the above VIP pkg is imported along with uvm pkg:*,please let me know how can I "set" the virtual ChipIf?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now