Jump to content

build_phase order

Recommended Posts



I notice something interesting in the build_phase order of uvm_component.

The uvm_component at the same level are build in the alphabetatical order of the instance name.

I expect the build order would be the same as  the order I call the factory create function.

I am wondering is the alphabetatical build order an intended feature of UVM or just some artifact of the implementation?

I couldn't find any reference to this behavior in the UVM user guide or the class reference library.




Link to comment
Share on other sites

It's an artifact of the UVM implementation that stores the children (siblings) in an associative array indexed by a string. 


I would never rely on the ordering of components at the same level within the same phase.


Thanks for the explaination.   I hope Accellera would clean it up in the IEEE-UVM standard to avoid having ambigious build order.

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...