Write a System C/C++ program for Bus Arbiter
The bus arbiter is a device used in multi-master system with shared bus. It is used to allocate the control of the shared system bus to one master at a time depending priority. The device can support three bus masters and three slaves. It can accept bus request signals from bus masters and depending on the priority it can give bus grant signal to one of the master. The device has fixed priority. Each transfer takes five cycles at a time one master and slave communication occurs.