# US 2003/0229743 A1 · Methods and structure for improved fairness bus arbitration

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0229743 A1
- Document ID: US20030229743A1
- Status: Published application
- Kind: A1
- Application number: 10/162,960
- Filed: 2002-06-05
- Published: 2003-12-11
- Earliest claimed: 2002-06-05
- Inventors: Andrew C. Brown
- Web page: https://patentgrep.com/patent/US20030229743A1

## CPC

- G06F 13/364: using independent requests or grants, e.g. using separated request and grant lines
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and structure for enhanced bus arbitration providing a priority-based arbitration technique with improved fairness for lower priority devices. In particular, the invention provides a masking feature within the bus arbiter such that all devices simultaneously requesting temporary exclusive control of the shared bus are remembered in the mask when a bus grant is made to a first requesting master device. When the first master device relinquishes control of the bus, remembered master devices are first granted temporary exclusive control of the bus (preferably in priority order) prior to any non-remembered master devices presently requesting the bus. When all remembered master devices have been granted an opportunity for temporary exclusive control of the bus, the mask identifying remembered master devices is cleared and standard priority-based arbitration techniques resume.

## Claims

### Claim 1

In a system having multiple master devices coupled to a shared bus, a bus arbitration method comprising the steps of:
detecting multiple bus requests from multiple requesting devices of said multiple master devices wherein said multiple bus requests are detected substantially simultaneously;
granting said bus to a first requesting device of said multiple requesting devices;
remembering said multiple requesting devices; and
granting, responsive to the step of remembering, said bus to other requesting devices of said multiple requesting devices before granting bus requests from other devices of said multiple master devices.

### Claim 2 (depends on 1)

The method of claim 1
wherein the step of granting said bus to said first requesting device includes the step of selecting said first requesting device from said multiple requesting devices using a round-robin method, and
wherein the step of granting said bus to said other requesting devices includes the step of granting said bus to each of said other requesting devices using a round-robin method.

### Claim 3 (depends on 1)

The method of claim 1 wherein each master device of said multiple master devices coupled to said bus has an associated priority value and
wherein the step of granting said bus to said first requesting device includes the step of selecting said first requesting device from said multiple requesting devices as the highest priority device of said multiple requesting devices, and
wherein the step of granting said bus to said other requesting devices includes the step of granting said bus to each of said other requesting devices in order of highest to lowest priority value of each of said other requesting devices.

### Claim 4 (depends on 1)

The method of claim 1 further comprising the step of:
detecting relinquishment of said bus by said first requesting device, wherein the step of remembering is responsive to the detection of said relinquishment.

### Claim 5 (depends on 1)

The method of claim 1
wherein the step of remembering includes the step of setting a mask value indicative said other requesting devices, and
wherein the step of granting said bus to said other requesting devices includes the steps of:
a) granting said bus to a next requesting device of said other requesting devices indicated by said mask value;
b) updating said mask value to eliminate said next requesting device; and
c) repeating steps a) and b) until no further devices of said other requesting devices are indicated by said mask value.

### Claim 6 (depends on 5)

The method of claim 5 further comprising the step of:
detecting relinquishment of said bus by said first requesting device, wherein the step of remembering is responsive to the detection of said relinquishment.

### Claim 7 (depends on 6)

The method of claim 6 wherein the step of granting said bus to said other requesting devices includes the step of:
detecting relinquishment of said bus by said next requesting device,
wherein the step of updating is responsive to the detection of said relinquishment by said next requesting device.

### Claim 8

A system comprising:
a shared resource;
a plurality of master devices coupled to said shared resource wherein each master device generates requests for temporary exclusive access to said shared resource; and
an arbiter for controlling grants of requested temporary exclusive access to said shared resource by said plurality of master devices wherein said arbiter includes:
a memory element for remembering pending requests for temporary exclusive access by master devices of said plurality of master devices at the time of granting a request by one master device of said plurality of master devices; and
a request grant element coupled to said memory element for granting a pending request for temporary exclusive access by a master device of said plurality of master devices in accordance with information in said memory element.

### Claim 9 (depends on 8)

The system of claim 8 wherein said memory element further comprises:
a bit mask having a plurality of bits wherein each bit of said plurality of bits corresponds to a master device of said plurality of master devices.

### Claim 10 (depends on 8)

The system of claim 8 wherein said request grant element is operable to grant remembered pending requests before new requests from other master devices.

### Claim 11 (depends on 10)

The system of claim 10 wherein each master device of said plurality of master devices has a priority attribute associated therewith and wherein said request grant element is further operable to grant the highest priority remembered pending request before lower priority remembered pending requests.

### Claim 12

In a system having multiple master devices coupled to a shared bus, a bus arbiter comprising:
means for detecting multiple bus requests from multiple requesting devices of said multiple master devices wherein said multiple bus requests are detected substantially simultaneously;
means for granting said bus to a first requesting device of said multiple requesting devices;
means for remembering said multiple requesting devices; and
means for granting, responsive to the means for remembering, said bus to other requesting devices of said multiple requesting devices before granting bus requests from other devices of said multiple master devices.

### Claim 13 (depends on 12)

The arbiter of claim 12
wherein the means for granting said bus to said first requesting device includes means for selecting said first requesting device from said multiple requesting devices using a round-robin method, and
wherein the means for granting said bus to said other requesting devices includes means for granting said bus to each of said other requesting devices using a round-robin method.

### Claim 14 (depends on 12)

The arbiter of claim 12 wherein each master device of said multiple master devices coupled to said bus has an associated priority value and
wherein the means for granting said bus to said first requesting device includes means for selecting said first requesting device from said multiple requesting devices as the highest priority device of said multiple requesting devices, and
wherein the means for granting said bus to said other requesting devices includes means for granting said bus to each of said other requesting devices in order of highest to lowest priority value of each of said other requesting devices.

### Claim 15 (depends on 12)

The arbiter of claim 12 further comprising:
means for detecting relinquishment of said bus by said first requesting device, wherein the means for remembering is responsive to the detection of said relinquishment.

### Claim 16 (depends on 12)

The arbiter of claim 12
wherein the means for remembering includes means for setting a mask value indicative said other requesting devices, and
wherein the means for granting said bus to said other requesting devices includes:
a) means for granting said bus to a next requesting device of said other requesting devices indicated by said mask value;
b) means for updating said mask value to eliminate said next requesting device; and
c) means for repeating operation of a) and b) until no further devices of said other requesting devices are indicated by said mask value.

### Claim 17 (depends on 16)

The arbiter of claim 16 further comprising:
means for detecting relinquishment of said bus by said first requesting device, wherein the means for remembering is responsive to the detection of said relinquishment.

### Claim 18 (depends on 17)

The arbiter of claim 17 wherein the means for granting said bus to said other requesting devices includes:
means for detecting relinquishment of said bus by said next requesting device,
wherein the means for updating is responsive to the detection of said relinquishment by said next requesting device.
