In reply to S.P.Rajkumar.V:
There are four inputs to DUT.
The queue contains input rates/frequencies of input. So, in a bunch of 4 slots (4 clock cycles), if my_q is {100,50,50,0}, then the input-0 should come twice as much as input-1 and input-3. And input-4 should not come. Also, the input-0 should be interleaved between the other two inputs.
Here I am taking HCF of inputs to determine how many slots must be occupied for a particular input and then arranging them in a round-robin fashion. But I want them to be arranged in an interleaved fashion.
Let me know if it clears the doubt or not.