# Can we have a unidirectional constraint implementation

**URL:** <https://verificationacademy.com/forums/t/can-we-have-a-unidirectional-constraint-implementation/34963>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, constraints-systemverilog\
**Created:** [August 31, 2018, 12:24pm UTC](https://verificationacademy.com/forums/t/can-we-have-a-unidirectional-constraint-implementation/34963 "2018-08-31T12:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 31, 2018, 3:28pm UTC](https://verificationacademy.com/forums/t/can-we-have-a-unidirectional-constraint-implementation/34963/2 "2018-08-31T15:28:25Z")

</div>

_In reply to [Chinky](https://verificationacademy.com/forums/t/can-we-have-a-unidirectional-constraint-implementation/34963):_

The implication _operator_ is not “bidirectional” in the sense that the implication is still satified when size == size\_64 and cmd != B. The _constraint_ is bidirectional in the choice of the random value for size affects the choice for cmd and vice versa. A better choice of words might be “simultaneously”.

What this means is if you pick a distribution for size, or constrain it such that choosing size==size\_64 occurs only 1% of the time, there’s no way you could choose cmd==B more than 1% of the time as well.

---

_[View the full topic](https://verificationacademy.com/forums/t/can-we-have-a-unidirectional-constraint-implementation/34963)._
