Method and system of bus master arbitration

Information

  • Patent Application
  • 20040193766
  • Publication Number
    20040193766
  • Date Filed
    March 26, 2003
    21 years ago
  • Date Published
    September 30, 2004
    19 years ago
Abstract
A system (100) having a plurality of bus masters (111-113) coupled to an arbiter (150) is disclosed. An arbiter (150) is coupled to a first storage location (151) and a second storage location (152), where the first and second storage locations store bus master parking information for a system bus (141). The arbiter (150) receives a parking context indicator (131) that is used to select one of the first and second storage locations (151, 152) to provide bus master parking information to the arbiter (150).
Description


FIELD OF THE DISCLOSURE

[0001] The present disclosure relates generally to methods and systems of bus master arbitration, and more particularly to the parking of a bus master.



BACKGROUND

[0002] Data processing systems having multiple bus masters are commonplace in data processing environments. Parking of a bus master refers to a technique whereby it is anticipated which one of a plurality of bus masters is going to next request access to a specific system bus, or will have the greatest need to access the system bus quickly when it makes a request for the bus. If the parked bus master is indeed the master device that next requests access to the specific system bus, the arbitration overhead is reduced, thereby resulting in a more efficient use of system bus and bandwidth. Methods and systems that can improve bus master parking techniques would be useful.







BRIEF DESCRIPTION OF THE DRAWINGS

[0003] Various advantages, features and characteristics of the present disclosure as well as methods, operation, and functions of related elements of structure, and the combination of parts and economies of manufacture, will become apparent upon consideration of the following description and claims with reference to the accompanying drawings, all of which form a part of this specification.


[0004]
FIG. 1 illustrates, in block diagram form, a system in accordance with an embodiment of the present disclosure;


[0005]
FIG. 2 illustrates, in block diagram form, a set of parking information of FIG. 1 in greater detail;


[0006]
FIG. 3 illustrates, in block diagram form, a portion of an arbiter of FIG. 1 in greater detail;


[0007]
FIG. 4 illustrates a timing diagram in accordance with an embodiment of the present disclosure;


[0008]
FIG. 5 illustrates, in block diagram form, a system in accordance with another embodiment of the present disclosure;


[0009]
FIG. 6 illustrates, in block diagram form, a portion the system of FIG. 5 in greater detail; and


[0010]
FIG. 7 illustrates, in flow diagram form, a method in accordance with the present disclosure.







DETAILED DESCRIPTION OF THE DRAWINGS

[0011] In accordance with the present disclosure, a method of parking a bus master is disclosed that selects one set of a plurality of sets of programmable bus master parking information based upon an operational context of the system. By being able to select different sets of programmable bus master parking information based upon an operational context, the bus master parked on a system bus can be updated quickly based upon the context change. In order to facilitate a better understanding, FIGS. 1-7 have been included illustrating specific embodiments of the disclosure, and are not intended to be limiting in nature.


[0012]
FIG. 1 illustrates, in block diagram form, a system 100 in accordance with the present disclosure. System 100 comprises Bus Masters 111-113, slave devices 121-123, context monitor 130, and Arbiter 150. The slave devices 121-123 comprise a memory 121, an input/output (I/O) module 122, and other slave devices 123.


[0013] Bus Masters 111-113 are coupled to the Arbiter 150 to provide bus request signals BR(1)-BR(3), respectively. In addition, Bus Masters 111-113 are coupled to the Arbiter 150 to receive bus grant signals BG(1)-BG(3), respectively. A System Bus 141, that is a slave bus, couples each Bus Master 111-113 to each slave device 121-123. The context monitor 130 is coupled to receive information from one or more of the slave devices 121-123, and other system context 129, and to provide a context signal 131 to the Arbiter 150.


[0014] In operation, the Arbiter 150 of system 100 has access to storage locations 151 and 152 that are used to store bus master parking information. Each set of bus master parking information at a storage location will generally indicate a specific manner for implementing bus master parking for a specific slave bus, such as system bus 141. Whether the Arbiter 150 accesses the bus master parking information at location 151 or 152 is based upon a state of the CONTEXT SIGNAL provided from the Context Monitor 130 and received at the PARK CONTEXT SELECT input of the Arbiter 150.


[0015] The Context Monitor 130 monitors information from one or more of the slave devices 121-123 as well as other system context 129 from other portions of system 100. In one embodiment, the information monitored by the Context Monitor 130 is interrupt information from one or more of the devices 121-123. In another embodiment, the information monitored by the Context Monitor 130 is state information, which with respect to the memory 121 can indicate a fullness of the memory 121. While Context Monitor 130 is illustrated as only monitoring the slave devices 121-123, it will be appreciated that the Context Monitor 130 can also be coupled to one or more of the Masters 111-113. In addition, other system context from system 100 may be monitored. As the context of the system is monitored, the state of the context signal can vary dynamically, thereby selecting a different set of bus master parking information to be used by the Arbiter 150. Although a single context signal 131 is shown, alternate embodiments may have multiple context signals 131 that are used to select bus master parking information.


[0016]
FIG. 2 illustrates in block diagram form, a register 200 that can be used to represent the storage locations 151 and 152. The register 200 comprises a parking-type field labeled PARK TYPE 211, a parking indicator field labeled PARK 212, and other fields 213. The PARK TYPE field 211 indicates a type of parking to be implemented by the arbiter 150. Examples of types of parking are indicated in informational box 221, and comprise a round robin parking of bus masters, parking a bus master most recently accessing the slave bus, and parking a specific bus indicated in the PARK 212 field.


[0017] When the PARK TYPE indicates that the PARK 212 field is to be used, a specific bus master indicated in the PARK field will be parked. Informational box 222 indicates values used to indicate which bus master should be parked. It will be appreciated that the PARK TYPE 211 field and the PARK 212 field can be writeable fields that can be changed as necessary by system and/or user software control. Alternatively, system and/or user control may provide park control information by way of one or more external terminals, such as an integrated circuit connection such as a conductive pin or bump.


[0018]
FIG. 3 illustrates, in block diagram form, a portion of the arbiter of FIG. 1 used to facilitate selection of one of the storage areas 151 and 152, which contain parking information. The storage areas 151 and 152 are coupled to different inputs of a multiplexer 310. The select input of the multiplexer 310 receives a signal from at the PARK CONTEXT SELECT input of the Arbiter 150. The selected parking information based upon this input is provided to Arbiter Control Logic 320 that is illustrated as receiving one or more bus requests at inputs BR(1)-BR(3) and provides a bus grant over one of the bus grant outputs BG(1)-BG(3).


[0019]
FIG. 4 illustrates a timing diagram indicating states of a plurality of signals during time periods TP1-TP9 in accordance with an embodiment of the present disclosure. The signals include: CLOCK which represents a bus clock from which time period TP1-TP9 are based; BR(1)-BR(3) are specific master bus requests which are illustrated as asserted when in a high state; PARK indicates when bus masters are parked; PARK CONTEXT SELECT indicates the state of the context signal that controls selection of one of the sets of parking information; PRIORITY REQUESTER indicates which master has the highest priority during a time period; BUS GRANT indicates when a requesting device has acquired control of the bus when a bus master has control of the bus by default due to a previous grant it is indicated by the designator (D); BUS STATE indicates a state of the requested bus, where the state can be idle (IDLE) or active (NSEQ); and SLAVE READY indicates that the requested slave can complete the requested access.


[0020] Of particular interest with reference to the timing diagram of FIG. 4 is time TP5, where the PARK CONTEXT SELECT signal changes state to indicate a change in operating context. In response to the change in state of PARK CONTEXT SELECT, a different set of parking information is accessed that results in a first master, indicated by the MASTER 1 designator of the PARK signal, being parked at time period TP7. As a result of this change in parking information, the bus request BR(1) by the first master at TP7 results in the bus being made available for the first master at time TP7, as indicated on BUS GRANT at TP7, instead of one cycle later, as occurred with respect to the bus request BR(1) at time TP1. Prior to a change in context, MASTER 2 was selected for parking, specifically in time periods TP3 and TP5. As a result, MASTER 2 was able to begin an access in TP3 rather than TP4.


[0021]
FIG. 5 illustrates a system 500 that is an alternate embodiment of the present disclosure. System 500 comprises Masters 511-513, Slave Systems 531-533, and a Multi-Port Cross Bar 520. Each of the Masters 511-513 are coupled to a different master port of the Multi-Port Cross Bar 520 by busses 516-518, respectively. Each of the Slave Systems 531-533 are coupled to a different slave port of the Multi-Port Cross Bar 520. Multi-port cross bars, such as Multi-Port Cross Bar 520, allow a master device coupled to a master port to access a particular slave bus coupled to one of the slave ports. For example, Master 511 can request, and be granted, access to the system bus 538 on slave port SP3. At the same time that Master 511 has access of the system bus 538, one of the other Masters 512 and 513 can have access to either of the other two system busses 536 and 537.


[0022] Each slave Port SP1-SP3 of the Multi-Port Cross Bar 520 has an arbiter associated with it to arbitrate among the Masters 511-513, and to handle parking of masters. FIG. 6 illustrates a specific implementation of control logic associated with port SP1, however, the control logic of FIG. 6 will typically be duplicated for each of the ports SP1-SP3.


[0023]
FIG. 6 illustrates a portion of system 500 comprising Address Compare Modules 611-613, SP1 Arbiter 620, SP1 Park Information 631, and SPI Park Information 632. In operation, the SP1 Arbiter 620 is coupled to the System Bus 536 through the slave port SP1, the Master bus 516 through master port MP1, the Master bus 517 through master port MP2, and the Master bus 518 through master port MP3. Based upon arbitration information, the SP1 Arbiter 620 will provide access to the System bus 536 to one of the master busses 516-518 in response to one or more bus requests.


[0024] Part of the arbitration process can include indicating which master is to be parked on the system bus 536. Different sets of parking information is stored in a plurality of SP1 Park Information locations including SP1 Park Information 631 and SP1 Park Information 632, which can contain parking information and options such as those described previously herein. One of the SP1 Park Information 631 and 632 is accessed based upon a PARK CONTEXT SELECT signal, which is provided from a system device over the system bus 536 to a multiplex function 627. Because each slave port has equivalent arbitration logic available (not illustrated), each slave port can provide its own PARK CONTEXT SELECT signal as well as have its own sets of parking information available to control arbitration. Therefore, each slave port SP1-SP3 can have the same, or different, master ports MP1-MP3 parked at any given time.


[0025]
FIG. 7 illustrates, in flow diagram form, a method in accordance with the present disclosure. At step 611, a first set of bus parking information is selected to control arbitration of a slave bus. At step 612, a change of operating state is determined to have occurred, where step 612 occurs after step 611. At step 613, a second set of parking bus information to control arbitration of the slave bus is selected in response to the change in operating state detected at step 612.


[0026] In summary it should be apparent from a review of the foregoing disclosure that various advantages can be achieved by using multiple sets of bus parking information in the various manners indicated. By reducing the time needed to switch bus parking information in response to a system context being changed, increased system performance can be realized.


[0027] In the preceding detailed description of the figures, reference has been made to the accompanying drawings, which form a part thereof, and in which is shown by way of illustrations specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it should be understood that other embodiments may be utilized and that logical, mechanical, chemical, and electrical changes may be made without departing from the spirit or scope of the invention. To avoid detail not necessary to enable those skilled in the art to practice the invention, the description may omit certain information known to those skilled in the art. Furthermore, many other varied embodiments that incorporate the teachings of the invention may be easily constructed by those skilled in the art. Accordingly, the present disclosure is not intended to be limited to the specific form set forth herein, but on the contrary, it is intended to cover such alternatives, modifications, and equivalents as can be reasonably included within the spirit and scope of the invention. The preceding detailed description is therefore not to be taken in a limiting sense and the scope of the present disclosure is defined only by the appended claims.


Claims
  • 1. A data processing system comprising: a plurality of bus masters; a first bus coupled to the plurality of bus masters; a first storage location to store a first bus master parking information for the first bus; a second storage location to store a second bus master parking information for the first bus; and a first arbiter comprising a park context input, a plurality of request inputs coupled to the plurality of bus masters, wherein the first arbiter is coupled to the first storage location and to the second storage location, and each one of the request inputs is coupled to one of the plurality of bus masters, and the park context input is to receive a first state to indicate which of the first bus master parking information and the second bus master parking information the first arbiter is to access.
  • 2. The system of claim 1 wherein the first bus master parking information comprises a writeable field to indicate which one of the plurality of bus masters is to be parked on the first bus.
  • 3. The system of claim 1 further comprising: a second bus coupled to the plurality of bus masters; a third storage location to store a third bus master parking information for the second bus; a fourth storage location to store a fourth bus master parking information for the second bus; and a second arbiter comprising a second park context input, a plurality of request inputs coupled to the plurality of bus masters, wherein the second arbiter is coupled to the third storage location and to the fourth storage location, and each one of the request inputs is coupled to one of the plurality of bus masters, and the second park context input is to receive a second state to indicate which of the third bus master parking information and the fourth bus master parking information the second arbiter is to access.
  • 4. The system of claim 3, wherein the third arbiter and the fourth arbiter are part of a common arbiter.
  • 5. The system of claim 1 further comprising a slave device coupled to the first park context input.
  • 6. The system of claim 1 further comprising a slave device comprising an interrupt coupled to the first park context input.
  • 7. The system of claim 1 further comprising a slave memory device comprising a memory fullness indicator coupled to the first park context input.
  • 8. The system of claim 1, wherein the plurality of request inputs are bus request inputs coupled to a plurality of bus request outputs of a plurality of bus masters.
  • 9. The system of claim 1, wherein the plurality of request inputs are coupled to an address range indicator that monitors an address being requested by each of the plurality of bus masters.
  • 10. The system of claim 1 further comprising: a crossbar switch to couple the plurality of bus masters to the first bus.
  • 11. A method comprising: receiving a first request based on a first master to access a first slave; accessing, when a first operating context is in a first state, a first set of parking information to determine whether the first master is parked on the first slave; and accessing, when the first operating context is in a second state, a second set of parking information to determine whether the first master is parked on the first slave.
  • 12. The method of claim 11 further comprising: receiving a second request based on a second master to access the first slave; accessing, when the first operating context is in the first state, the first set of parking information to determine whether the second master is parked on the first slave; accessing, when the first operating context is in a second state, the second set of parking information to determine whether the second master is parked on the first slave.
  • 13. The method of claim 12, wherein the first operating context is based upon an operating context of the first slave.
  • 14. The method of claim 11, wherein the first operating context is based upon an operating context of the first slave.
  • 15. The method of claim 12, wherein the first operating context is based upon an operating context of the first master.
  • 16. The method of claim 11, wherein the first operating context is based on an interrupt.
  • 17. The method of claim 11, wherein the first operating context is based on a state of operation.
  • 18. The method of claim 11, wherein the state of operation is a memory fullness indicator.
  • 19. The method of claim 11, wherein the first operating context is based upon an operating context of the first master.
  • 20. The method of claim 11, wherein the first request is a bus request from the first master.
  • 21. The method of claim 11, wherein the first request is a bus request based upon a requested address value from the first master.
  • 22. The method of claim 11 further comprising: receiving a second request based on a the first master to access a second slave; accessing, when a second operating context is in a first state, a third set of parking information to determine whether the first master is parked on the second slave; accessing, when the second operating context is in a second state, a fourth set of parking information to determine whether the first master is parked on the second slave.
  • 23. A system comprising: a means for receiving a first request based on a first master to access a first slave; a means for accessing, when a first operating context is in a first state, a first set of parking information to determine whether the first master is parked on the first slave; and a means for accessing, when the first operating context is in a second state, a second set of parking information to determine whether the first master is parked on the first slave.
  • 24. A method of arbitrating access to a slave device of a system comprising: selecting a first set of bus parking information to control arbitration of the slave device; determining, after selecting the first set of bus parking information, a change in an operating state of the system; and selecting a second set of bus parking information to control arbitration of the slave device in response to the change in the operating state.
  • 25. The method of claim 24 further comprising: providing the first set of bus parking information prior to selecting the first set of bus parking information; and providing the second set of bus parking information prior to selecting the first set of bus parking information.