Automated Generation of Round-robin Arbitration and Crossbar Switch Logic