# Should env's be reused in UVM from block to subsystem to soc/chip level?

**URL:** <https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756>\
**Category:** UVM\
**Tags:** UVM, reuse, connection, environment\
**Created:** [February 18, 2019, 6:08am UTC](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756 "2019-02-18T06:08:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjpatel](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@jjpatel](https://verificationacademy.com/forums/u/jjpatel)\
**Post date:** [February 18, 2019, 6:08am UTC](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756/1 "2019-02-18T06:08:11Z")

</div>

1\> Should the block level env be reused at Subsystem level and than subsystem envs at top level/chip level ?  
2\> If I assume reuse at next levels as mention above is possible (Which I believe personally is the way),This means that some of connections may not be applicable at next level or higher level which are present in env.connect method. Shall this connection be done in base test case ?

– Jigar

---

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [February 18, 2019, 3:22pm UTC](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756/2 "2019-02-18T15:22:38Z")

</div>

_In reply to [jjpatel](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756):_

1. Yes, it is common to re-use block-level environments for a higher-level environment.
2. All connections at a block-level should still be valid for a higher-level environment. What type of connections do you think should not be applicable?

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [February 18, 2019, 3:35pm UTC](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756/3 "2019-02-18T15:35:55Z")

</div>

_In reply to [jjpatel](https://verificationacademy.com/forums/t/should-envs-be-reused-in-uvm-from-block-to-subsystem-to-soc-chip-level/35756/2):_

> 1\> Should the block level env be reused at Subsystem level and than subsystem envs at top level/chip level ?  
> 2\> If I assume reuse at next levels as mention above is possible (Which I believe personally is the way),This means that some of connections may not be applicable at next level or higher level which are present in env.connect method. Shall this connection be done in base test case ?

I believe there are 2 different appraoches:  
(1) reusing agents  
(2) reusing sub-envs

You should not mix both approaches. Follow your line.
