I would like to control no.of ones and zeros in a particular dynamic array by using constraint?

In reply to dave_59:

Hi dave,

Thank you very much,but in this scenario i am setting the “x” value from the sequence to particular number and my constraint become getting failed.

ex :
My requirement is in p we have suppose 200 bit positions in that i want “x” no.of ones and “y” no.of zeros.

Thanks,
Vamshi Krishna B.