implementation of round-robin bus