Hi all,
I have a constraint for an enum field in my packet class.
it is something like that
typedef enum {
No_error,
ERR1,
ERR2,
..
..
ERR20
} Error_t;
I would like to have a distribution of lets say 25% "no_error" packets and all other options to be uniformly distributed.
my question is, is there a way to implicitly say "all other options" ?
something like -
constraint Error_Type_c {Error_Type dist {
No_error :=25,
??all other options ??:/75;}
I don't want to list explicitly all enum options (let say in the future I would extend the enum type and might forget to update the dist constraint and a value can be left out of generation)
thanks in advance ,
Guy