Constrain Every Five Consecutive Array Elements to Be Unique

Given a randomized dynamic integer array arr, write a SystemVerilog constraint such that every consecutive window of five elements contains pairwise distinct values.

Requirements:

  • If the array le...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: