Robert.g.Liu Posted March 28, 2011 Report Share Posted March 28, 2011 Any reason when creating the uvm_test_top using the factory method in run_test, the parent_inst_path parameter of uvm_factory::create_component_by_name has the argument value "uvm_test_top", resulting in a "uvm_test_top.uvm_test_top" instance path for this component inside the factory method? $cast(uvm_test_top, factory.create_component_by_name(test_name, "uvm_test_top", "uvm_test_top", null)); It seems to make more sense to just make the parent_inst_path argument an empty string when calling the factory method for creating the uvm_test_top component. $cast(uvm_test_top, factory.create_component_by_name(test_name, "", "uvm_test_top", null)); 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.