Constraint

In reply to avpchandra:

Sorry, then maybe I should have written

   constraint AA_C { $countones(const'(AA) ^ AA) <= 16;}

But I’m not sure how you are defining a transition, Can you give a few examples and explain how you count transitions. The only example you gave was a 4-bit value, and AA is 24 bits.