Sign in to follow this  
Followers 0
hevangel

build_phase order

3 posts in this topic

Hi,

 

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.

Thanks.

 

Horace

Share this post


Link to post
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.

Share this post


Link to post
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.

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
Sign in to follow this  
Followers 0