In reply to mitesh.patel:
Or you can write constraint like this (if your simulator supports):
rand logic data[][];
constraint c_data {
data.size() inside {[1:10]};
foreach(data[i]) {
data[i].size() inside {[0:32]};
}
}
In reply to mitesh.patel:
Or you can write constraint like this (if your simulator supports):
rand logic data[][];
constraint c_data {
data.size() inside {[1:10]};
foreach(data[i]) {
data[i].size() inside {[0:32]};
}
}