Finding Which Packed Indexes are 1

In reply to Have_A_Doubt:

Please read the comments carefully. I have suggested you to use queue methods to assign a value.
// sample code


``` verilog

   ind.push_back(value); // get value based on the requirements.