# Calling of build phase?

**URL:** <https://verificationacademy.com/forums/t/calling-of-build-phase/30059>\
**Category:** UVM\
**Tags:** UVM, UVM\_PHASE, build\_phase\
**Created:** [October 22, 2014, 6:35am UTC](https://verificationacademy.com/forums/t/calling-of-build-phase/30059 "2014-10-22T06:35:19Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![cuonghle](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/cuonghle/32/3231_2.png) [@cuonghle](https://verificationacademy.com/forums/u/cuonghle)\
**Post date:** [August 3, 2018, 4:20am UTC](https://verificationacademy.com/forums/t/calling-of-build-phase/30059/15 "2018-08-03T04:20:53Z")

</div>

_In reply to [tfitz](https://verificationacademy.com/forums/t/calling-of-build-phase/30059/14):_

Thanks for clarifying.

1. In fact, the parent component adds its children to associate-array by name, and the created order can be predictable:

```verilog

class F extends uvm_component;
  B b_m;
  G g_m;

  virtual function void build_phase(uvm_phase phase);
    g_m = G::type_id::create("g_m", this);
    b_m = B::type_id::create("b_m", this);
  endfunction
endclass

```

Associate children array of F component always will be (even we created g\_m before b\_m):

```verilog

uvm_component m_children[string] = {
 "b_m": b_m,
 "g_m": g_m
}

```

Everytime F component gets next child to process the build\_phase, B component is always the first one according to the array above. After all children of B component complete, G will be processed.

1. I wanted to clarify the idea: “All components at the same level must be built before going to the next level”. Actually, this idea is not correct, right? In my example, A, D and I component are same level (A, D are children of B; I is child of G), but I component will never be processed at the same time as A and D.

---

_[View the full topic](https://verificationacademy.com/forums/t/calling-of-build-phase/30059)._
