Hi,
I have a scenario where my data sample is 3D array. First dimension represents the controller number, Second dimension represents sample number and third dimension represents number of bits in the sample.The number of bits in a sample can vary so I had to go with unpacked array. I created the arrays as per my requirement and I need to wire a constraint in such a way that all bits for any given controller & sample are unique.
bit sample;
constraint sample_c{
foreach(sample[M]) {
foreach(sample[M][S]) {
unique sample[M][S];
}
}
}
I tried the above code. It is not working as my 3rd dimension is also unpacked array. Can you please suggest me a way even if the third dimension is unpacked array ?
Thanks,
Pavan