UVM Environment and Write Agent Top

hello,
my_env is extending from uvm_env and my_agent_top is also extending from uvm_env. my question is while using super.build() in both my_env & my_agent_top, how overlapping will happen?

In reply to AKASHNBHAGAT:

From your description is unclear what your hierarchy is. Please elaborate.

In reply to chr_sue:

Hierarchy is TOP => TEST => ENVIRONMENT => AGENT_TOP => AGENT

In reply to AKASHNBHAGAT:

hello,
my_env is extending from uvm_env and my_agent_top is also extending from uvm_env. my question is while using super.build() in both my_env & my_agent_top, how overlapping will happen?

You mean to say both component while calling super.build will overlap with the method of uvm_env.

In reply to saurabh_3:

I try to understand what AGENT_TOP is. Is this an intermediate level? Then you should remove this.
BTW the components are created top-down. That ´means your env is created first and afterwards AGENT_TOP and AGENT. There is no overlappng and you have nothing special implemented the super.build_phse I guess.

In reply to saurabh_3:

Yes… I want to say same thing…

In reply to chr_sue:

AGENT TOP means here I am creating no of agents in agent top. But my_env and AGENT TOP both are extending from uvm_env. In both of them, I am doing super.build().

In reply to AKASSHBBHAGAT:

In reply to chr_sue:
AGENT TOP means here I am creating no of agents in agent top. But my_env and AGENT TOP both are extending from uvm_env. In both of them, I am doing super.build().

Build phase works in top down approach , so environment will call super.build first and then then your agent_top . Overlapping will not happen .

In reply to saurabh_3:

ok saurabh, i understand this thing. Before I was confusing because, both of them extending from uvm_env.

Thanks