Logger Posted June 15, 2011 Report Share Posted June 15, 2011 I'm just getting started with the examples. The ubus example demonstrates getting the virtual ubus_if from uvm_config_db during the build_phase. Since getting that seems like "connecting", why is that not being done in the connect_phase? function void build_phase(uvm_phase phase); super.build_phase(phase); if(!uvm_config_db#(virtual ubus_if)::get(this, "", "vif", vif)) `uvm_fatal("NOVIF",{"virtual interface must be set for: ",get_full_name(),".vif"}); endfunction: build_phase -Ryan Quote Link to comment Share on other sites More sharing options...
Bart Posted June 15, 2011 Report Share Posted June 15, 2011 You can connect virtual interfaces in either the build_phase() or the connect_phase() so its a matter of preference & philosophy. Strictly speaking you're not making a connection - you are assigning a value to the local vif property through the configuration mechanism. Static configuration settings are updated during the build_phase(), so traditionally this is the phase to handle this. If you were connecting component TLM ports or references, you would do this in the connect_phase() to make sure the start & end points of the connection exist. Quote Link to comment Share on other sites More sharing options...
Logger Posted June 15, 2011 Author Report Share Posted June 15, 2011 Thanks Bart. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.