# Constraining address for the memory making sure the Offset is not within the previous memory regions

**URL:** <https://verificationacademy.com/forums/t/constraining-address-for-the-memory-making-sure-the-offset-is-not-within-the-previous-memory-regions/33486>\
**Category:** UVM\
**Tags:** SV-Constraint-Solver, UVM, SV-constraint, constrained-random-generation\
**Created:** [September 13, 2017, 1:40am UTC](https://verificationacademy.com/forums/t/constraining-address-for-the-memory-making-sure-the-offset-is-not-within-the-previous-memory-regions/33486 "2017-09-13T01:40:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yasaswi93](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/919ad9/32.png) [@yasaswi93](https://verificationacademy.com/forums/u/yasaswi93)\
**Post date:** [April 1, 2019, 8:32pm UTC](https://verificationacademy.com/forums/t/constraining-address-for-the-memory-making-sure-the-offset-is-not-within-the-previous-memory-regions/33486/4 "2019-04-01T20:32:16Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/constraining-address-for-the-memory-making-sure-the-offset-is-not-within-the-previous-memory-regions/33486/3):_

Does this have a performance impact as every time we are trying to randomize the object the foreach has to run for the whole address space that is being allocated.

I am seeing a slow down in simulation during the randomize() call. Trying to figure out if its due to the foreach in the constraint.

---

_[View the full topic](https://verificationacademy.com/forums/t/constraining-address-for-the-memory-making-sure-the-offset-is-not-within-the-previous-memory-regions/33486)._
