Hi
I have a fixed size array and I want to cover values of the array elements in a particular order.
For example,
typedef enum {RED,GREEN,BLUE,YELLOW,PURPLE, ORANGE, WHITE, UNDEF }colors_e;
rand colors_e my_colors[5];
constraint ct { unique{my_colors}};
I want to see if all the following patterns are covered:
1)
my_colors = {RED,GREEN,BLUE,YELLOW,ORANGE};
2)
my_colors = {GREEN,RED,BLUE,YELLOW,ORANGE};
3)
my_colors = {YELLOW,GREEN,BLUE,RED,ORANGE};
and so on.
Along with each pattern, there are other control signals that I would like to cross with.
How can I achieve it.
Thanks