In reply to systemvl27:
What you can do is create an array of 128 covergroups and merger the coverage together as a type
covergroup toggle_cg with function sample(bit eachbit);
option.per_instance = 0;
type_option.merge_instances = 1;
coverpoint eachbit {
bins toggle = ( 1 => 0 => 1 };
}
endgroup
toggle_cg t_cg[128]
bit [127:0] myvector;
foreach(t_cg[ii]) t_cg[ii] = new();
...
foreach(t_cg[ii]) t_cg[ii].sample(myvector[ii]);