Bitwise toggle coverage for a bitvector

In reply to nisreenj:

you can use perl script also

//+vpp+ foreach my $i (0…31) {
cp_interrupting_csrmask##$i## : coverpoint m_csr_intr_mask.interrupting_csrmask[##$i##];
//+vpp+ }

it will do the for 0 to 31 just 3 steps :)