This invention is related to a new arbitration mechanism for use in system resource management, such as in modern multiprocessor driven computer or computer-controlled systems where one or more resources must be shared. Allowing unrestricted access to a shared system resource may result in system failure, as the result of data corruption, for example.
A computer network usually comprises multiple computers or processors that communicate, depending on the number of processors in the network, by various mechanisms such as Ethernet or CAN-bus (CSMA/CD), or any asynchronous serial bus employing master/slave arbitration, or a token passing or similar “round robin” protocol. Ethernet is suitable for a large network, but it is inefficient when applied to a small network. In contrast, the flexibility of a serial bus using master/slave arbitration or token passing technology fit the communication needs of a small, lightweight network.
A master/slave system comprises a plurality of processor divided into two groups, one group usually being a single master processor and the other being slave processors. The master processor and slave processors are interconnected by a bus system, typically including a command/data bus and optionally an address/control bus. The slave processors have to constantly wait for permission from the master processor to access their destination; this waiting for the permission slows communication among processors. For the token passing technology, nodes are logically in a ring but are physically connected by a common bus. All tokens are broadcast to every node on the network. Every node on the network has to read the passing tokens to determine if it is a recipient of a message. Only the node having the destination address of a passing token would grab such passing token and act upon the data payload, all other nodes discard the data carried by the token. A node's handling of data from a passing token that is addressed to other nodes wastes time. Additionally, existing arbitration mechanisms for bus mastership are either overly complex or require an active bus concept to be effective.
The present invention proposes a multi-master bus arbitration mechanism that does not need a token passing or similar “round robin” protocol and active bus technology on the network to manage a communication bus to which only limited number of nodes can access. Additionally, the multi-master bus arbitration mechanism can control the number of active nodes, in a multi-node architecture, that can obtain access to the communication bus at any time, and it eliminates all data collisions on the communication bus, while adding minimal complexity to system designs.
An apparatus for controlling access of a plurality of nodes external to a shared resource, to which accesses by the number of nodes must be restricted, in a computer or computer-control system, the apparatus comprises an aggregation component capable of generating a biased signal from a request signal sent by a node of the plurality of nodes requesting access to the shared resource, a reference signal, and a comparator in which the reference signal is preset comparing the reference signal with the biased signal and generate a logic output signal interpreted either as “access to the share resource granted” or “access to the share resource denied”. These and other features, aspects, and advantages of the present invention will become better understood with reference to the following description, appended claims, and accompanying drawings.
The mechanism to be described in the present invention for controlling access of a plurality of nodes external to a shared resource, to which accesses by the number of nodes must be restricted, is applicable to any shared source in a computer or computer-control system. The present design delivers the following advantageous features. It provides localized arbitration to obtain resource access and localized self-management of resource mastery; eliminates resource seizure locally; it allows equal access; encapsulate all four above features with the same circuit/protocol. However, the present invention does not require that all the advantageous features need be incorporated into every embodiment.
In an embodiment, an apparatus for controlling access of the plurality of the nodes to the shared resource comprises a comparator, a reference signal preset in the comparator, and an aggregation component. Each of the plurality of nodes that need access to the shared source is capable of adding a request signal, to access to the shared resource, to the aggregation component. The aggregation component adds up the request signals received from those nodes of the plurality of nodes that request access to the shared resource and generates a biased signal. The comparator compares the reference signal and the biased signal and generates a logic output signal.
In an embodiment, the comparator comprises a digital signal comparator and an analog to digital converter. The analog to digital converter converts the biased signal from the aggregation component to a digital value and the digital comparator compares the digital value with the digital reference value. In another embodiment, an analog signal comparator is used as the comparator. The analog comparator compares the biased signal with the analog reference value.
The apparatus for controlling access of the plurality of the nodes to the shared resource further comprises a decision making logic. A node of the plurality of nodes applies/removes the request signal for access to the shared resource to/from the aggregation component by the decision making logic. After waiting an appropriate length of time for the logic output signal propagation, the decision making logic associated with those nodes of the plurality of nodes that have requested access to the shared resource interprets the logic output signal as either an “access to the shared resource granted” or “access to the shared resource denied” signal. When the biased signal is such that the number of external nodes requesting access to the shared resource exceeds a designed limit, the comparator generates an output signal that the decision making logic received can be interpreted as “access to resource denied” output signal. Otherwise, the comparator generates an output signal that the decision making logic can interpret as “access to resource granted.” Specifically, if the access to the shared resource requested by a node of the plurality of nodes is granted, the node will use the shared resource as desired. If the access to the shared resource by a node of the plurality of nodes is denied, the decision making logic associated with the node would remove its access request signal from the aggregation component, wait a random length of time, then reattempt to obtain access to the shared resource. When the node does not need to access to the shared resource anymore, the node relinquishes its hold of the shared resource by removing its access request signal from the aggregation component through the decision making logic.
The plurality of nodes are physical electronic devices such as memory devices, graphic display units, etc., which are tinder control of microcontrollers or microprocessors, or microcontrollers.
The total number of nodes connected to the shared resource in a computer system is only limited by the resistive, inductive, and capacitive constraints of the electrical circuit and its affiliated components. In one embodiment, the apparatus for controlling access of the plurality of the nodes to the shared resource is designed such that only one node can access to the restrict resource at a time, which is a mutex configuration. In another embodiment, the apparatus for controlling access of the plurality of the nodes to the shared resource is designed such that several nodes can access to the restricted resource simultaneously, which is a semaphore configuration.
The above design is demonstrated in the
Referring to
In an embodiment, a safety mechanism that ensures that failure of a node does not cripple the entire system is set up. Once the node starts to use the shared resource, the decision making logic commands a maximum possession time monitor to forbid over-long occupation. If the node suffers catastrophic failure, its request signal will be forcibly removed from the aggregation component. The mechanism is demonstrated in the
Referring to
In an embodiment, the reference signal and the request signal are voltage and an voltage comparator is applied.
The apparatus 14 for controlling access of the plurality of the nodes to the shared resource 10 further comprises a decision making logic 28 built within each of the plurality of nodes, with which the decision making logic 28 communicates. When a node of the plurality of nodes 34 need access to the shared resource 10, its decision making logic 28 sends the request signal to the aggregation component 20. In this case, the request signal is realized by closing the resistor control 30 and thereby connecting the resistor 32 to the aggregation component 20. The aggregation component 20 adds up resistance of the resistors 32 connected to the aggregation component 20 and generates the biased signal, a voltage dropped across the aggregation component 20, which will be sent to the voltage comparator 16. The voltage comparator 16 compares the preset reference voltage, Vref 18 with the biased signal, and generates the logic output signal and sends it to the decision making logic 28. If the logic output signal is interpreted by the decision making logic 28 as “access to the shared resource granted”, the node starts to use the shared resource 10 as desired. Otherwise, it has to wait as indicated by the FIG.
In another embodiment, referring to
The apparatus 14 for controlling access of the plurality of the nodes to the shared resource further comprises a decision making logic 28 implemented by a controlling mechanism—software and/or hardware. The decision making logic 28 is built within each node of the plurality of nodes 34 with which it communicates. When a node of the plurality of nodes 34 need access to the shared resource 10, its decision making logic 28 sends the request signal to the aggregation component 20 by closing the correspondent resistor control 30 and thereby connecting a resister 32 to the aggregation component 20. The aggregation component 20 adds up the resistance of the parallel resistors 32 connected to aggregation component 20, and generates a biased signal, the voltage dropped across the aggregation component 20, which will be sent to the voltage comparator 16. The voltage comparator 16 compares a reference voltage, Vref 18 with the biased signal and sends a logic output signal to the decision making logic 28. If the logic output signal is interpreted by the decision making logic 28 as “access to the shared resource granted”, the node starts to use the shared resource 10 as desired. Otherwise, it has to wait as indicated by the
In an embodiment, to complete the task stated in the previous paragraph, the decision making logic 28 is implemented using software that is incorporated into the node's main application software. The node's main application software executes a main task of the node with which the decision logic 28 is associated. Also, in an embodiment, the decision making logic 28 is implemented in hardware by coding the algorithm in the silicon of a microprocessor or microcontroller, using silicon die area dedicated to this purpose. This is accomplished by using discrete components such as logic gates, comparators, timers, counters, data storage registers, RAM, ROM and other simple electronic building blocks commonly used to implement “on chip” peripherals. In yet another external hardware implementation of the decision making logic 28, simple, low cost microcontrollers dedicated entirely to the decision process may be employed; the microcontroller would have the software implementation as their main application code. These aforesaid embodiments for the decision making logic 28 are applicable both for the two-wire system and single-wire system.
In an embodiment for the single wire system, the voltage comparator 16 is built into the silicon die area, where the algorithm used for decision making logic 28 is coded. In another embodiment, the comparator is external to the decision making logic 28.
In an embodiment, the resistor controls 30 is a circuit breaker or switch in conjunction with software for controlling the plurality of parallel resistors to connect or disconnect to the aggregation component 20. This embodiment is suitable for both the single-wire and two-wire system. In another embodiment the switch is an electronic device such as a transistor.
In an embodiment, the voltage comparator 16 is a dedicated voltage comparator. In another embodiment, an operational amplifier configured to function as the voltage comparator 16 is implemented. To be compatible with the plurality of nodes, if the plurality of nodes are microprocessors, a dedicated voltage comparator and a transistor-transistor logic (TTL) would be implemented, and in the other situations, an operational amplifier configured to function as the voltage comparator and programmable logic controller (PLC) input voltage is utilized. Both TTL level and PLC level are either logic high or logic low. The TTL or PLC circuit is designed such that when the biased signal is equal to or less than the reference voltage, the TTL or PLC level would swing from logic low to logic high indicating the shared resource 10 unavailable, in other words, indicating access to the shared resource 10 denial. In contrast, if the biased signal is larger than the Vref 18, both of them would stay logic low indicating the shared resource 10 available, in other word, access to the shared resource granted. The TTL or PLC circuit may also be designed to invert logic levels.
In an embodiment, the TTL level is less than or equal to 5V.
Referring to the
In an embodiment, the shared resource 10 is a communication bus demonstrated in
The above examples are illustrative only. Variations obvious to those skilled in the art are a part of the invention.
The present application claims priority to provisional U.S. patent application Ser. No. 61/435,010, filed on Jan. 21, 2011, which is assigned to the assignee of the present application and incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
3803577 | Peterson, II | Apr 1974 | A |
4536839 | Shah et al. | Aug 1985 | A |
4575714 | Rummel | Mar 1986 | A |
4621342 | Capizzi et al. | Nov 1986 | A |
4939511 | Hinckley | Jul 1990 | A |
5187781 | Heath | Feb 1993 | A |
5428752 | Goren et al. | Jun 1995 | A |
5430848 | Waggener | Jul 1995 | A |
5544332 | Chen | Aug 1996 | A |
5729701 | Eriksson | Mar 1998 | A |
5754777 | Lee | May 1998 | A |
5758104 | Gujral et al. | May 1998 | A |
5761452 | Hooks et al. | Jun 1998 | A |
5845097 | Kang et al. | Dec 1998 | A |
5892973 | Martinez et al. | Apr 1999 | A |
5941967 | Zulian | Aug 1999 | A |
6112272 | Gates | Aug 2000 | A |
6167474 | Lee | Dec 2000 | A |
6192425 | Sato | Feb 2001 | B1 |
6384755 | Hayden | May 2002 | B1 |
6496890 | Azevedo et al. | Dec 2002 | B1 |
6526467 | Joh | Feb 2003 | B1 |
6564278 | Olson | May 2003 | B1 |
6661860 | Gutnik et al. | Dec 2003 | B1 |
6728808 | Brown | Apr 2004 | B1 |
6766401 | Bonomo et al. | Jul 2004 | B2 |
7096289 | Brown et al. | Aug 2006 | B2 |
7162557 | Takeda et al. | Jan 2007 | B2 |
7668998 | Perisich et al. | Feb 2010 | B2 |
7730251 | Jeanjean | Jun 2010 | B2 |
8190802 | Vallius | May 2012 | B2 |
20050022274 | Campbell | Jan 2005 | A1 |
20050268000 | Carlson | Dec 2005 | A1 |
20070094423 | Atkinson | Apr 2007 | A1 |
20070124002 | Estes | May 2007 | A1 |
20070226381 | Kuan et al. | Sep 2007 | A1 |
20080299819 | Kakutani | Dec 2008 | A1 |
20090177827 | Perisich et al. | Jul 2009 | A1 |
20090319709 | Vallius | Dec 2009 | A1 |
20110040247 | Mandro | Feb 2011 | A1 |
Number | Date | Country | |
---|---|---|---|
20120191891 A1 | Jul 2012 | US |
Number | Date | Country | |
---|---|---|---|
61435010 | Jan 2011 | US |