# Which distribution does randomization consider base or extended?

**URL:** <https://verificationacademy.com/forums/t/which-distribution-does-randomization-consider-base-or-extended/30382>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, SV-constraint, dist\
**Created:** [February 20, 2015, 5:13am UTC](https://verificationacademy.com/forums/t/which-distribution-does-randomization-consider-base-or-extended/30382 "2015-02-20T05:13:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 20, 2015, 6:58am UTC](https://verificationacademy.com/forums/t/which-distribution-does-randomization-consider-base-or-extended/30382/4 "2015-02-20T06:58:54Z")

</div>

When you call randomize() on an object of an Ext\_A class, both **dist** constraints are in effect because you did not override the constraint in the BASA\_A class. It will behave as if you had two **dist** constraints in the same class on the same variable. In that case it will only satisfy the range membership properties of the **dist** constraints, and weights will be ignored.

In your particular example, the **dist** constraint just happens to specify the same complete value range of a 4-bit random variable on both Var1\_c and Var1\_new\_c **dist** constraints, and the **dist** constraint in BASE\_A just happens to be a uniform distribution, _which gives you the same results as if you had no constraints_.

---

_[View the full topic](https://verificationacademy.com/forums/t/which-distribution-does-randomization-consider-base-or-extended/30382)._
