Jump to content

run_test question about uvm_test_top parent instance path

Recommended Posts

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));

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...