Regarding set and get

Hi all,
If I set interface in connect phase can I get it in test/environment?

In reply to SMRUTIRANJAN BISWAL:

You are mixing up phases with structure. You need to call set() before you can call get(). All components have a connect phase, and any component can have phases that execute after that.

In reply to dave_59:

Hi Dave , can you explain on this some briefly?
Bcoz in build pjhase we are setting in top hierarchy and getting in lower hierarchy as it is too to bottom but connect phase is bottom to top.so like this can I set it in lower hierarchy and get it in higher hierchy?

In reply to SMRUTIRANJAN BISWAL:

That is a better question than your first. The connect_phase is actually breadth-first, not bottom-up.

You need to have a good understanding of the ordering between components within a single phase. Otherwise it is much simpler to use different phase.

In any case, you need to have a good reason for a setting in a lower level should have an affect for the entire environment.