# Properties encapsulation

**URL:** <https://verificationacademy.com/forums/t/properties-encapsulation/35964>\
**Category:** OVM\
**Tags:** OVM, module, interface, encapsulation, Properties\
**Created:** [April 10, 2019, 10:51am UTC](https://verificationacademy.com/forums/t/properties-encapsulation/35964 "2019-04-10T10:51:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamza](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@hamza](https://verificationacademy.com/forums/u/hamza)\
**Post date:** [April 10, 2019, 10:51am UTC](https://verificationacademy.com/forums/t/properties-encapsulation/35964/1 "2019-04-10T10:51:25Z")

</div>

Hello,

can anyone please explain to me when we need to encapsulate properties inside a module and when we need to encapsulate them inside an interface? What are the differences between the two methods?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [April 10, 2019, 9:00pm UTC](https://verificationacademy.com/forums/t/properties-encapsulation/35964/2 "2019-04-10T21:00:58Z")

</div>

_In reply to [hamza](https://verificationacademy.com/forums/t/properties-encapsulation/35964):_

You put your properties near the signals you want to check. Really you mean _assertions_, not just properties; you can put properties in a package and import the package.

Most assertions come from requirements with standard interfaces around your design periphery, so that’s where you see them the most. Putting assertions inside the **interface** make a convenient bundle.

But when it comes to design modules, projects want to keep the design and verification code separate. That’s where the **bind** construct comes into play. You can encapsulate your assertions into a separate module, and use the bind construct for insertion into the design module without modifying it.

---

<div class="post-metadata">

**Author:** ![hamza](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@hamza](https://verificationacademy.com/forums/u/hamza)\
**Post date:** [April 11, 2019, 6:42am UTC](https://verificationacademy.com/forums/t/properties-encapsulation/35964/3 "2019-04-11T06:42:38Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/properties-encapsulation/35964/2):_

Thank you Dave.
