In reply to darp4u:
In reply to Rahulkumar Patel:
`define ABC
bins out_bound = {[10:15],[20:25],[30:35]} iff (type_a == XYZ) or {2,[10:15],17,[20:25],27,[30:35]} iff (type_a == PQR);
This isn’t correct.
you can use same bin name in different coverpoint.
//same bin name out_bound in 2 different coverpoint
cp1 : coverpoint type_a iff(type_a == XYZ){
bins out_bound[] = {[10:18],[37:45]};
}
cp2 : coverpoint type_a iff(type_a == PQR){
bins out_bound[] = {5,[10:18],25,[37:45]};
}
if you don’t want to create 2 different cover point.
cp : coverpoint type_a {
bins out_bound_pqr[] = {[10:18],[37:45]} iff(type_a == PQR);
bins out_bound_xyz[] = {5,[10:18],25,[37:45]} iff(type_a == XYZ);
}