How to write constraint for generating a continuous mask

In reply to juhi_p:

(1 << N) - 1

This is a common way of creating a variable sized bit mask