A polling arbiter and method suitable for asynchronous circuit
By designing multi-level arbitration units, mutex locks and multiplex selection parts in asynchronous circuits, and using the pipeline structure and Muller C unit, the problem that the existing polling arbiter cannot work in asynchronous circuits is solved, and the problem of the existing polling arbiter in asynchronous circuits is realized. The arbitration priority calculation and data transmission reduce power consumption and are suitable for modern on-chip systems and networks.
Patent Information
- Application Number
- CN202110804144.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-07-16
AI Technical Summary
The existing polling arbiter structure is only suitable for synchronous circuits and cannot work effectively in asynchronous circuits because it relies on the global clock signal to update the weight information.
A polling arbiter suitable for asynchronous circuits is designed. By eliminating the dependence on the global clock, a multi-level arbitration unit, a mutex lock part and a multiplex selection part are used, and the pipeline structure and Muller C unit are used to update the weights in an orderly manner. information and output data, realizing arbitration priority calculation and data transmission in asynchronous circuits.
It achieves effective arbitration priority calculation and data transmission in asynchronous circuits without the need for a global clock, reduces power consumption, and is suitable for the needs of modern on-chip systems and on-chip networks.
Smart Images

Figure CN113641605B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of integrated circuits, and in particular to a polling priority arbiter for asynchronous circuit routing scheduling. Background Art
[0002] An arbitrator is a common structure used in digital integrated systems to schedule and allocate shared resources. Its main function is to respond to requests for shared resources according to certain rules. A common arbitrator usage scenario is: in a bus system, multiple main modules share the same bus. Before occupying the bus to transmit data, each main module first sends a request to the arbitrator. If multiple modules' requests arrive at the same time, the arbitrator will determine the order in which each module uses the bus according to the designed priority rules, so that the data transmission of each module can be carried out in an orderly manner, thereby avoiding data loss or errors caused by conflicts.
[0003] An important characteristic of the arbitrator is fairness. If the arbitrator gives fixed priorities to requests from different modules, although the high-priority module can transmit data without blocking, the request of the low-priority module may not be responded to. In this case, the bus will be occupied by the high-priority module and the data of the low-priority module will be blocked. To solve the above problems, structures such as variable priority arbitrators and polling arbitrators have emerged. A basic n-input polling arbitrator structure is as follows: Figure 1 As shown in the figure, the structure is composed of multiple levels of arbitration units with weight inputs, D flip-flops, etc. The output terminal Q of the D flip-flop is connected to the weight input port of the next level arbitration unit. There is only one weight signal p in the same clock cycle. i Set to high level, at this time, the priority of the arbitration unit at this level is the highest, and the priorities of the remaining units are arranged in descending order. For the sake of explanation, it is assumed that all data transmission processes can be completed within one clock cycle. In a certain clock cycle, if the i-th level arbitration unit receives a request signal and has the highest priority among all arbitration units that have received valid requests, then the response signal g of the arbitration unit i With the request signal r i The high-level signal passes through the D flip-flop and is transmitted to the weight input port of the i+1th level arbitration unit when the next clock cycle arrives, that is, p i+1 will be set to a high level, and the i+1th level arbitration unit has the highest priority in this clock cycle. The above circuit action completes the update of the entire arbiter weight. When there is no valid request signal in a certain clock cycle, that is, r i When all are 0, g i All are 0, if updated to p i If all are 0, the arbitration will fail. Therefore, a logic gate structure consisting of a multi-input NOR gate and a multi-level NAND gate is added between the arbitration unit and the D flip-flop.i When all are 0, the D flip-flop passes the original p in the next clock cycle. i signal, that is, all p i The signal remains unchanged and the priority remains unchanged until one or more request signals are pulled high and then updated.
[0004] The arbitration unit in the above polling arbiter is essentially an arbitration unit structure with variable weights, which consists of multiple logic gates, such as Figure 2 For an n-level cascade arbitration structure, the response signal g output by the i-th level arbitration unit is i The necessary and sufficient conditions for pulling high are: 1. Request signal r i Valid, set to high level; 2. Carry input signal c from the i-1th level i Pull high, or weight signal p i Set to high level. Output the carry signal c of the i-th level arbitration unit to the i+1-th level i+1 The necessary and sufficient conditions for pulling high are: 1. Request signal r i Invalid, set to low level; 2. Carry input signal c from the i-1th level i Pull high, or weight signal p i Therefore, the above structure ensures that there is at most one response signal g in the same clock cycle. i Set to high level, the carry signal ensures the priority of each level of arbitration unit with the weight signal p i The i-th level units placed at a high level are arranged in descending order.
[0005] At a time when the speed and power consumption requirements of integrated circuits are becoming increasingly stringent, especially with the rise and widespread application of systems on chip and networks on chip, the realization of global synchronous clocks has become increasingly difficult, and the power consumption problem generated by the clock cannot be well solved; therefore, asynchronous circuits that do not rely on global clocks have gradually attracted widespread attention as a promising solution. However, the above-mentioned polling arbitrator is only applicable to synchronous circuits, which require the use of D flip-flops and synchronous clock signals to complete the update of weights, and is not applicable to asynchronous circuits. Summary of the invention
[0006] To overcome the shortcomings of the prior art and address the problem that the existing polling arbitration structure is not suitable for asynchronous circuits, the present invention aims to design a polling arbiter and method suitable for asynchronous circuits and eliminate the reliance on a global clock.
[0007] The technical solution adopted by the present invention is:
[0008] A polling arbiter applicable to asynchronous circuits, the polling arbiter includes an arbitration part, a mutex part, and a multiplexing part; wherein, the arbitration part is formed by cascading multiple levels of arbitration units, the input of the arbitration part is a request signal and the weight information of each request, and the output of the arbitration part is a response signal reflecting the arbitration result; the mutex part is formed by cascading multiple levels of mutex units, the input of the mutex part is the response signal output from the arbitration part and the handshake signal output from the subsequent pipeline structure, and the output of the mutex part is a strobe signal and the handshake signal transmitted to the previous pipeline structure; the input of the multiplexing part is the strobe signal output from the mutex part and the input data, and the output of the multiplexing part is the valid data with the highest arbitration priority.
[0009] Further, the mutex unit is formed by cascading multiple levels of C units and multi-input NAND gates.
[0010] The arbitration method of the polling arbiter of the present invention is as follows: Assume that the polling arbiter with n inputs receives multiple valid request signals simultaneously, that is, r i , r i+m0 , r i+m1, , ……, r i+mn is pulled high, data_in i , data_in i+m0 , data_in i+m1, , ……, data_in i+mn is non-empty valid input, where m0 < m1 < …… < mn and are all positive integers, 0 ≤ i < i + mn ≤ n; assume that the weight information p q of the request is 1 at this time, that is, the q-th level arbitration unit has the highest priority; at this time, the priority is calculated in descending order starting from the q-th level, and the highest priority is obtained from the request signal r s , and the corresponding response signal g s output by the mutex part is pulled high. When there is q < s ≤ n, the value of s satisfies (s - q) being the smallest, and conversely, the value of s satisfies (q - s) being the largest; after the response signal g s is pulled high, the corresponding strobe signal sel s is pulled high by the mutex part, and the multiplexing part outputs data_in s as valid data; after the multiplexing part completes the output of the data data_out, the handshake signal ack_in transmitted from the subsequent pipeline structure is pulled high, so the C unit of the s-th level mutex unit will pull the output handshake signal ack_out s high accordingly, informing the previous unit that the data transmission has been completed; the remaining handshake signals transmitted to the previous level remain low, and the weight information p s+1The weight signal of [weight information] is pulled high, and the remaining weight signals are set low, thus completing the update of the weight information; at this time, the priority is calculated in descending order starting from the s+1 level, and the request signal r j obtains the highest priority, and the corresponding response signal g output by the mutex part j is pulled high. When there is s < j ≤ n, the value of j satisfies that (j - s) is the smallest, and conversely, the value of j satisfies that (s - j) is the largest; however, due to the characteristics of the C unit, the handshake signal ack_out s remains 1, and all other strobe signals are 0. Therefore, the strobe signal of the j-th level is actually "latched" in the mutex unit; until the data data_in s is transmitted and confirmed to be received by the next-level pipeline, the global pipeline performs a reset operation, the handshake signal ack_in is pulled low, the strobe signal of the j-th level is "unlocked", and the corresponding strobe signal sel j is pulled high, and the output handshake signal ack_out j is pulled high, and the multiplexing part outputs data_in j as valid data; after the multiplexing part completes the output of the data data_out, the handshake signal ack_in signal transmitted from the subsequent pipeline structure is pulled high. Therefore, the C unit of the j-th level mutex unit will pull high the output handshake signal ack_out j to inform the previous-level unit that the data transmission has been completed; the remaining handshake signals transmitted to the previous level remain low, and the weight signal of the weight information p j+1 is pulled high, and the remaining weight signals are set low, completing the re-update of the weight information. The above process is continued below.
[0011] Based on the basic polling arbitration structure, the present invention replaces the D flip-flop with a mutex part constructed by cascading multiple C units and multi-input NAND gates, and updates the weight information and outputs the data in an orderly manner by means of the handshake signals of the pipeline structure, realizing a polling arbiter applicable to asynchronous circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a structural diagram of an existing basic n-input polling arbiter.
[0013] Figure 2 is a structural diagram of an existing basic arbitration unit.
[0014] Figure 3 is a schematic diagram of the basic structure of the polling arbiter applicable to asynchronous circuits according to the present invention.
[0015] Figure 4 is a structural diagram of the mutex unit in the embodiment of the present invention.
[0016] Figure 5 is a circuit structural diagram of the C unit in the embodiment of the present invention. DETAILED DESCRIPTION
[0017] The polling arbiter structure suitable for asynchronous circuits adopted by the present invention is as follows: Figure 3 As shown in FIG. 1 , with the help of the pipeline structure of the asynchronous circuit, the arbitrator includes an arbitration part, a mutual exclusion lock part and a multi-way selection part. Among them, the arbitration part consists of multiple stages. Figure 2 The given arbitration units are cascaded, r0 to r n is the request signal, p0 to p n Output g0 to g n A response signal to reflect the arbitration result.
[0018] The mutex lock part consists of multiple levels such as Figure 4 The mutual exclusion units shown in the figure are cascaded, and the input is connected to the response signals g0 to g1 obtained from the arbitration part. n , including the ack_in handshake signal obtained from the subsequent pipeline structure, output sel0 to sel n For the selection signal, ack_out0 to ack_out n It is a handshake signal transmitted to the previous pipeline structure; the input of the multiplexer selection part is in addition to sel0 to sel n The selection signal also includes data_in0 to data_in n The data input of the arbitration is the data with the highest arbitration priority as data_out. The function of this part is described as: when and only when the selection signal sel i Pull high, while data_in i For valid data input, data_out has valid output data data_in i In addition, the C unit used in the mutex lock part is a circuit structure of a Muller C unit, such as Figure 5 As shown, its function is described as: when both inputs are 0, the output is set to 0; when both inputs are 1, the output is set to 1; otherwise, the output does not change.
[0019] The working principle and process of the polling arbitrator in this embodiment are described as follows:
[0020] Assume that a polling arbiter with n inputs receives multiple valid request signals at the same time, that is, r i , r i+m0 , r i+m1, ,……,r i+mn (m0<m1<……<mn and are all positive integers, 0≤i<i+mn≤n) pull high, data_in i , data_in i+m0 , data_in i+m1, , ..., data_ini+mn is a non-empty valid input. Assume that p q is 1, that is, the qth level arbitration unit has the highest priority. At this time, the priority is calculated in descending order from the qth level. s Get the highest priority, corresponding to the output response signal g s Pull high. The mutex lock part is in g s After being pulled high, the corresponding selection signal sel s Pull high, the multiplexer selector will s As valid data output; after completing the output of data data_out, the ack_in signal transmitted by the subsequent pipeline structure is pulled high, so the C unit of the s-th level mutually exclusive unit will output the handshake signal ack_out s Then it is pulled high to inform the previous unit that the data transmission is completed; the rest of the handshake signals transmitted to the previous unit remain low. s+1 The weight signal is pulled high and the other weight signals are set low, thus completing the update of the weight information.
[0021] At this time, the priority is calculated in descending order from level s+1, and there is a request signal r j Get the highest priority, corresponding to the output response signal g j However, due to the characteristics of the C unit, ack_out s It remains at 1, and all other selection signals are 0, so the selection signal of the jth level is actually "latched" in the mutually exclusive unit. s After the data transmission is completed and confirmed by the next pipeline, the global pipeline is reset, ack_in is pulled low, and the selection signal of the jth level is "unlocked", corresponding to the selection signal sel j Pull high to output handshake signal ack_out j Pull high, the multiplexer selector will j As valid data output; after completing the output of data data_out, the ack_in signal transmitted by the subsequent pipeline structure is pulled high, so the C unit of the j-th level mutually exclusive unit will output the handshake signal ack_out j Then it is pulled high to inform the previous unit that the data transmission is completed; the rest of the handshake signals transmitted to the previous unit remain low. j+1 The weight signal is pulled high, and the other weight signals are set low, completing the update of the weight information again, and the above process is repeated below.
Claims
1. A polling arbiter suitable for an asynchronous circuit, characterized in that: The polling arbiter comprises an arbitration part, a mutual exclusion lock part and a multi-way selection part; wherein the arbitration part is formed by cascading multiple levels of arbitration units, the input of the arbitration part is a request signal and weight information of each request, and the output of the arbitration part is a response signal reflecting the arbitration result; the mutual exclusion lock part is formed by cascading multiple levels of mutual exclusion units, the input of the mutual exclusion lock part is a response signal output from the arbitration part and a handshake signal output from a subsequent pipeline structure, the output of the mutual exclusion lock part is a selection signal and a handshake signal transmitted to a previous pipeline structure, and the mutual exclusion unit is formed by cascading multiple levels of C units and multi-input non-AND gates; the input of the multi-way selection part is the selection signal output by the mutual exclusion lock part and input data, and the output of the multi-way selection part is valid data with the highest arbitration priority.
2. An arbitration method using a polling arbitrator suitable for an asynchronous circuit as claimed in claim 1, characterized in that: The specific process of this method is: Suppose the polling arbiter with n inputs receives multiple valid request signals simultaneously, i.e., r i , r i+m0 , r i+m1 , ……, r i+mn is pulled high, data_in i , data_in i+m0 , data_in i+m1 , ……, data_in i+mn is non-empty valid input, where m0 < m1 < …… < mn and are all positive integers, 0 ≤ i < i + mn ≤ n; Suppose the weight information p q of the request is 1 at this time, that is, the q-level arbitration unit has the highest priority; At this time, the priority is calculated in descending order starting from the q-level, and the request signal r s obtains the highest priority, and the corresponding response signal g s of the mutex part is pulled high. When there is q < s ≤ n, the value of s satisfies that (s - q) is the smallest, otherwise the value of s satisfies that (q - s) is the largest; After the response signal g s of the mutex part is pulled high, the corresponding strobe signal sel s is pulled high, and the multiplexing part outputs data_in s as valid data; After the multiplexing part completes the output of the data data_out, the handshake signal ack_in from the subsequent pipeline structure is pulled high. Therefore, the C unit of the s-level mutex unit will pull the output handshake signal ack_out s high accordingly, informing the previous unit that the data transmission has been completed; The remaining handshake signals transmitted to the previous level remain low, and the weight signal of the weight information p s+1 is pulled high, and the remaining weight signals are set low. Thus, the update of the weight information is completed; At this time, the priority is calculated in descending order starting from the s + 1 level, and the request signal r j obtains the highest priority, and the corresponding response signal g j of the mutex part is pulled high. When there is s < j ≤ n, the value of j satisfies that (j - s) is the smallest, otherwise the value of j satisfies that (s - j) is the largest; However, due to the characteristics of the C unit, the handshake signal ack_out s remains 1, and all the remaining strobe signals are 0. Therefore, the strobe signal of the j-level is actually "latched" in the mutex unit; Until the data data_in s is transmitted and confirmed to be received by the next level of the pipeline, the global pipeline performs a reset operation, the handshake signal ack_in is pulled low, the strobe signal of the j-level is "unlocked", the corresponding strobe signal sel j is pulled high, the output handshake signal ack_out j is pulled low, and the multiplexing part outputs data_in j As valid data output; after the multiplexer completes the output of data data_out, the handshake signal ack_in from the subsequent pipeline structure is pulled high, so the C unit of the j-th level mutually exclusive unit will output the handshake signal ack_out j Then it is pulled high to inform the previous unit that the data transmission is completed; the rest of the handshake signals transmitted to the previous unit remain low, and the weight information p j+1 The weight signal of is pulled high, and the other weight signals are set low, completing the update of the weight information again, and the above process is repeated below.
Citation Information
Patent Citations
Dynamic reconfigurable real-time signal processing load balancing system
CN106970842A
Double-priority control type fairness arbiter
CN107315703A
Communication control method and device based on asynchronous transmission protocol and electronic equipment
CN111475439A
Arbitration-based multi-port data storage system
CN112052206A
Asynchronous serial poll circuit
US20030151425A1
