Mapping of inputs & ouputs

Can you tell me ,if this is the right approach?

I have no idea, as your specification is a bit vague. But it sounds like you need to read up on round robin arbiters and learn how they work before you attempt to code one up.

This looks like a good place to get started.