CN108228510A - A kind of referee method of bus, equipment, storage medium and bus arbiter - Google Patents

A kind of referee method of bus, equipment, storage medium and bus arbiter Download PDF

Info

Publication number
CN108228510A
CN108228510A CN201810044611.4A CN201810044611A CN108228510A CN 108228510 A CN108228510 A CN 108228510A CN 201810044611 A CN201810044611 A CN 201810044611A CN 108228510 A CN108228510 A CN 108228510A
Authority
CN
China
Prior art keywords
bus
equipment
priority
current
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810044611.4A
Other languages
Chinese (zh)
Inventor
张睿
熊晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201810044611.4A priority Critical patent/CN108228510A/en
Publication of CN108228510A publication Critical patent/CN108228510A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4027Coupling between buses using bus bridges
    • G06F13/4031Coupling between buses using bus bridges with arbitration

Abstract

This application discloses a kind of referee methods of bus, and including being that a part of equipment in bus sets fixed priority in advance, remaining equipment carries out priority ranking in the way of cyclic ordering;Wherein, the priority of any one equipment in fixed priority is above the priority of remaining equipment;Obtain the solicited message that current device uses bus;Judge the last round of equipment using bus whether be fixed priority equipment;If so, last round of priority orders are set as current priority sequence;Otherwise, the armamentarium in bus is ranked up in the way of fixed priority and cyclic ordering to obtain current priority sequence;Access right is authorized for target device according still further to current priority sequence, the probability of the access right of bus is obtained so as to equalizing equipment, so as to improve the reasonability of bus right to use distribution.Disclosed herein as well is a kind of bus arbiter, the arbitration equipments and computer readable storage medium of bus, are respectively provided with above-mentioned advantageous effect.

Description

A kind of referee method of bus, equipment, storage medium and bus arbiter
Technical field
The present invention relates to digital circuit field, more particularly to a kind of referee method of bus, bus arbiter, bus it is secondary Cut out equipment and computer readable storage medium.
Background technology
With the fast development of ic manufacturing technology, requirement of the people to IC chip is higher and higher, therefore It is proposed SoC systems.In order to meet SoC systems design in can integrate, high performance demand, ARM companies formulated a new generation System bus, i.e. AMBA buses.In SoC systems, the arbitration bus right to use belongs to the referee method used during which equipment, It is the key index for the efficiency for influencing system bus transmission data.
The prior art is after solicited message of the equipment using bus is obtained, and is arbitrated using the arbitration mode of circular priority Obtain the equipment for obtaining bus grant.Circular priority is a kind of mode that equipment is cyclically allowed to obtain bus grant so that every The possibility that a equipment obtains bus grant is all identical.But this mode needs to transmit emergency data in certain equipment Or during significant data, data cannot may be in time transmitted since the equipment does not obtain the mandate of bus, so as to cause Information transmits the efficiency for non-timely reducing transmission data.
Therefore, how to improve the reasonability for the right to use that equipment obtains bus is that those skilled in the art need to solve at present The technical issues of.
Invention content
In view of this, the purpose of the present invention is to provide a kind of referee methods of bus, can improve equipment and obtain bus The right to use reasonability;It is a further object of the present invention to provide a kind of bus arbiter, the arbitration equipments and computer of bus Readable storage medium storing program for executing is respectively provided with above-mentioned advantageous effect.
In order to solve the above technical problems, the present invention provides a kind of referee method of bus, including:
Fixed priority is set for a part of equipment in bus in advance, remaining equipment carries out in the way of cyclic ordering Priority ranking;Wherein, the priority of any one equipment in the fixed priority is above the excellent of remaining equipment First grade;
Obtain the solicited message that current device uses the bus;
Judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in the bus is ranked up in the way of fixed priority and cyclic ordering to obtain To current priority sequence;
According to current priority sequence access right is authorized for target device.
Preferably, the quantity of equipment included in the fixed priority is one.
Preferably, the setting rule of the fixed priority is specially:
It counts the equipment in the bus and the number of the solicited message and that number is most is sent out in preset time Equipment is set as fixed priority.
Preferably, it is described according to current priority sequence for target device authorize access right after further comprise:
Judge whether the bus is serviceable condition;
If so, data are transmitted for the target device using the bus.
Preferably, judge whether the bus is to further comprise after serviceable condition described:
If it is not, then send out prompt message.
Preferably, the serviceable condition specifically includes:
Idle state or locking transmission final step state or burst transfer final step state.
Preferably, it is described according to current priority sequence for target device authorize access right after further comprise:
Judge whether the corresponding receiving device of the target device initiates division transmission;
If so, according to current priority sequence using next equipment of the target device as target device, And enter described the step of authorizing access right for target device.
In order to solve the above technical problems, the present invention also provides a kind of bus arbiter, including:
Presetting module, for being that a part of equipment in bus sets fixed priority in advance, remaining equipment is according to cycle The mode of sequence carries out priority ranking;Wherein, the priority of any one equipment in the fixed priority is above institute State the priority of remaining equipment;
Request module, for obtaining the solicited message that current device uses the bus;
Priority control module, for judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in the bus is ranked up in the way of fixed priority and cyclic ordering to obtain To current priority sequence;
Authorization module, for authorizing access right for target device according to current priority sequence.
In order to solve the above technical problems, the present invention also provides a kind of arbitration equipment of bus, including:
Memory, for storing computer program;
The step of processor, for performing computer program when realizes the referee method of any of the above-described kind of bus.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable It is stored with computer program on storage medium, the computer program realizes the secondary of any of the above-described kind of bus when being executed by processor The step of sanction method.
The referee method of bus provided by the invention, including being that a part of equipment setting in bus is fixed preferentially in advance Grade, remaining equipment carry out priority ranking in the way of cyclic ordering;Wherein, any one equipment in fixed priority Priority is above the priority of remaining equipment;Then the solicited message that current device uses bus is obtained;Judge last round of make With the equipment of bus whether be fixed priority equipment;If so, last round of priority orders are set as current priority Sequentially;Otherwise, the armamentarium in bus is ranked up in the way of fixed priority and cyclic ordering current to obtain Priority orders;According still further to current priority sequence access right is authorized for target device.
As it can be seen that by the referee method of bus provided by the invention, the equipment by setting fixed priority, and by remaining Equipment carries out priority ranking in the way of cyclic ordering so that the equipment of fixed priority can preferentially obtain bus Access right, and remaining equipment cycle is made to obtain the priority for being only below fixed priority, it is obtained so as to equalizing equipment total The probability of the access right of line, and then improve the reasonability of bus right to use distribution.
In order to solve the above technical problems, the present invention also provides a kind of bus arbiter, the arbitration equipment of bus and calculating Machine readable storage medium storing program for executing is respectively provided with above-mentioned advantageous effect.
Description of the drawings
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing Attached drawing is briefly described needed in technology description, it should be apparent that, the accompanying drawings in the following description is only this hair Some bright embodiments, for those of ordinary skill in the art, without creative efforts, can be with root Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the referee method of bus provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the referee method of another bus provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of bus arbiter provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the arbitration equipment of bus provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of referee method of bus, can improve the use that equipment obtains bus The reasonability of power;Another core of the present invention be to provide a kind of bus arbiter, bus arbitration equipment and computer-readable deposit Storage media is respectively provided with above-mentioned advantageous effect.
It is right with reference to the accompanying drawings and detailed description in order to which those skilled in the art is made to more fully understand the present invention program The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the referee method of bus provided in an embodiment of the present invention.As shown in the figure, the arbitration of bus Method specifically includes:
S10:Fixed priority is set for a part of equipment in bus in advance, remaining equipment is in the way of cyclic ordering Priority ranking is carried out, wherein, the priority of any one equipment in fixed priority is above the excellent of remaining equipment First grade.
It should be noted that bus generally refers to the AHB (Advanced in the AMBA buses of ARM companies formulation High-performance Bus) system bus.Generally, AHB system bus is connected with such as ARM (Advanced RISC Machine embeded processor), DMA (Direct Memory Access) controller, on-chip memory or some needs The module of high bandwidth interface.Generally, a bus is only the channel of an equipment offer transmission data in synchronization.Cause This, needs according to different application scenarios, to take which equipment is the right to use of referee method arbitration ahb bus should belong to.
In the present embodiment, fixed priority is set for a part of equipment in bus in advance, remaining equipment is according to cycle The mode of sequence carries out priority ranking.That is, in the equipment being connect with bus, one is selected according to actual demand situation Equipment component simultaneously sets fixed priority for these equipment, i.e., fixes the priority of these equipment, will be in addition to fixed priority Except remaining equipment priority ranking is carried out in the way of cyclic ordering.Also, any one in fixed priority is set Standby priority is above the priority of remaining equipment, correspondingly, other equipment becomes in turn inferior to except fixed priority Highest priority.In specific implementation, can using the most important equipment of the data content of transmission as the equipment of fixed priority, The equipment that can also will be transmitted the most frequent equipment of data and be set as fixed priority, naturally it is also possible to be set according to other rules The equipment for putting fixed priority, the present embodiment do not limit this.
S20:Obtain the solicited message that current device uses bus.
Specifically, when equipment is wanted to carry out data transmission using bus, need to send out the solicited message using bus, it is right It answers, obtains the solicited message that current device uses bus, to judge which equipment is needed using bus according to solicited message, with Just into the arbitration of the row bus right to use.Generally, solicited message includes the prompting that prompting bus carries out right to use arbitration for equipment Information;In addition, solicited message can also include sending out the information of the equipment of the solicited message, in order to which bus is according to solicited message It is arbitrated.The present embodiment does not limit the type of solicited message and the content of solicited message.
In specific implementation, the signal of solicited message is generally represented with HBURSREQx signals, the x in HBURSREQx is specific For different numbers, that is, with different each corresponding equipment of digital representation, and when a certain position of HBURSREQx is high electricity Usually, it represents that corresponding equipment sends out solicited message, acquires the high level and represent to obtain the request that current device uses bus Information.Certainly, solicited message can also be other types, and the present embodiment does not limit this.
S30:Judge the last round of equipment using bus whether be fixed priority equipment.
Generally, obtaining the information of the last round of equipment using bus, and judge whether the priority of the equipment is fixed Priority.Specifically, when equipment uses bus, the information of equipment is stored, then obtains the information of the equipment of storage Judged, the present embodiment to judge the last round of equipment using bus whether be fixed priority equipment concrete mode not It limits.In specific implementation, if being currently the right to use of first time arbitration bus, i.e., there is no last setting using bus Standby, the equipment using bus last round of at this time can be any one equipment or select one according to different equipment performances Then a equipment judges whether the last round of equipment using bus is fixed priority as the last round of equipment using bus Equipment.
S40:If so, last round of priority orders are set as current priority sequence;
S50:Otherwise, the armamentarium in bus is ranked up in the way of fixed priority and cyclic ordering to obtain To current priority sequence.
That is, judge the last round of equipment using bus whether be fixed priority equipment after, when upper one When wheel using the equipment of bus is the equipment of fixed priority, then it is suitable last round of priority orders to be set as current priority Sequence, that is to say, that current priority sequence is identical with last round of priority orders, does not need to adjust current priority orders;It is no Then, the armamentarium in bus is ranked up in the way of fixed priority and cyclic ordering suitable to obtain current priority Sequence, that is to say, that the sequence of fixed priority is constant, and the equipment in addition to fixed priority in bus is according to cyclic ordering Mode is ranked up.As preferred embodiment, the mode of cyclic ordering is specially by the last round of equipment using bus Priority is set as lowest priority, and the priority orders of other equipment recycle successively.For example, there are 5 on Current bus Equipment M0~M4, wherein, M0 and the equipment that M1 is fixed priority, remaining equipment M2, M3, M4 are in the way of cyclic ordering The equipment for carrying out priority ranking, it is assumed that last round of priority orders are M0>M1>M2>M3>M4, when last round of using bus When equipment is M1, last round of priority orders are set as current priority sequence, i.e. current priority sequence is still M0>M1 >M2>M3>M4;When the last round of equipment using bus is M2, then in the way of fixed priority and cyclic ordering, to complete Portion's equipment is ranked up to obtain current priority sequentially, i.e. the priority of M0 and M1 are constant, and the priority of M2 is set as minimum Priority, other priority orders recycle successively, therefore it is M0 to obtain current priority sequence>M1>M3>M4>M2.Certainly, Other cyclic ordering modes can also be taken, the present embodiment does not limit this.
It is corresponding, according to the quantity of total built-in unit and the rule of priority ranking, can be set all in bus Back-up represents different priority orders into different wait states, each wait state.For example, it is assumed that exist on Current bus 5 equipment M0~M4, then corresponding there are 4 wait states, respectively S0, S1, S2 and S3.Specifically, state S0 is corresponding excellent First grade sequence is M0>M1>M2>M3>M4;The corresponding priority orders of state S1 are M0>M2>M3>M4>M1;State S2 is corresponding Priority orders are M0>M3>M4>M1>M2;The corresponding priority orders of state S3 are M0>M4>M1>M2>M3.It is being embodied In, when saltus step occurs for signal hgrant, then it represents that current priority orders change.For example, current state is S0, when When signal hgrant is hgrant [3], then it represents that state S3 is jumped to from state S0, correspondingly, priority orders are state S3 Corresponding priority orders, i.e. priority orders are M0>M4>M1>M2>M3.
S60:According to current priority sequence access right is authorized for target device.
Specifically, after current priority sequence is obtained, the information using the equipment for currently sending out solicited message is mesh Marking device authorizes access right so that target device can be carried out data transmission using bus.In specific implementation, according to current Priority orders obtain target device, and target device setting signal grant is exported, that is, authorize use for target device Permission.
The referee method of bus provided in this embodiment, including being that a part of equipment setting in bus is fixed preferentially in advance Grade, remaining equipment carry out priority ranking in the way of cyclic ordering;Wherein, any one equipment in fixed priority Priority is above the priority of remaining equipment;Then the solicited message that current device uses bus is obtained;Judge last round of make With the equipment of bus whether be fixed priority equipment;If so, last round of priority orders are set as current priority Sequentially;Otherwise, the armamentarium in bus is ranked up in the way of fixed priority and cyclic ordering current to obtain Priority orders;According still further to current priority sequence access right is authorized for target device.Namely by solid for setting in advance Determine the equipment of priority, and remaining equipment is subjected to priority ranking in the way of cyclic ordering so that fixed priority Equipment can preferentially obtain the access right of bus, and obtain remaining equipment cycle and be only below the preferential of fixed priority Grade obtains the probability of the access right of bus so as to equalizing equipment, so as to improve the reasonability of bus right to use distribution.
On the basis of above-described embodiment, the present embodiment has made further instruction and optimization to technical solution, specifically, The quantity of the equipment included in fixed priority is one.
In specific implementation, generally, the equipment being connect with bus is such as processor, transmission is needed to be set relative to other Even more important data for standby, therefore as preferred embodiment, by that will be set as fixed by this kind equipment such as processor The equipment of priority preferentially authorizes access right to this kind of equipment of processor, so as to avoid due to data transmission not in time and Caused by loss.Meanwhile the equipment that a fixed priority is only set so that other equipment obtains the probability of bus grant more Greatly, bus arbitration mode has more fairness.
It is sent out in preset time in addition, the setting rule of fixed priority can also be specially the equipment counted in bus The most equipment of number is simultaneously set as fixed priority by the number of solicited message.
That is, after the equipment in every secondary bus is sent out using the solicited message of bus, record sends out solicited message The number of This move, and record corresponding equipment.The number that each equipment in preset time sends out solicited message is counted, it will The most equipment of number for sending out solicited message is set as fixed priority.The present embodiment sends out request letter to counting each equipment The mode of the number of breath does not limit.It should be noted that generally by which current equipment of signal hmaster coded representations just Using bus.More specifically, the information for the equipment for using bus and corresponding time can also be stored.
The number of solicited message is sent out in preset time and by the most equipment of number by counting the equipment in bus Fixed priority is set as, makes frequently preferentially to obtain the right to use of bus using the fixation of the equipment of bus, avoids the bus right to use The trouble that frequent switching is brought.
Fig. 2 is the flow chart of the referee method of another bus provided in an embodiment of the present invention.The present embodiment is to technical side Case has made further instruction and optimization, specifically, as shown in the figure, making being authorized according to current priority sequence for target device Further comprised later with permission:
S70:Judge whether bus is serviceable condition;
S71:If so, data are transmitted for target device using bus.
Specifically, after access right is authorized for target device according to current priority sequence, i.e., target device obtains Using the mandate of bus, then judge whether Current bus is serviceable condition, if Current bus is serviceable condition, then Bus can be utilized to transmit data for target device.
It should be noted that bus serviceable condition specifically includes:
Idle state or locking transmission final step state or burst transfer final step state.
It is understood that bus serviceable condition represents that Current bus can be used to transmit the state of data.According to The service condition of bus, bus generally have 5 kinds of states, specifically include idle state IDLE, latch transmission state locked Transfer, locking transmission final step state last locked transfer, burst transfer state fixed burst Transfer and burst transfer final step state last burst transfer.Wherein, idle state idle, locking transmission Final step state last locked transfer and burst transfer final step state last burst transfer this three Kind state is serviceable condition.Namely when bus is transmitted for idle state currently without other equipment using bus During data or bus is near completion last round of transformation task, bus can be utilized to transmit data for current target device When.Generally, when detecting that signal grant, locking transmit signal mastlock and be transmitted signal transfin, represent Bus is serviceable condition, and hready signals are high level at this time, and target device will be authorized to complete bus and transferred.
It should be noted that judging whether bus is to further comprise after serviceable condition:
S72:If it is not, then send out prompt message.
Specifically, after judging whether bus is serviceable condition, if bus is unusable state, can send out Prompt message, for prompting operator that cannot currently carry out data transmission, needing just can be with until bus is serviceable condition Carry out the transmission of data.Certainly, the present embodiment does not limit the type of prompt message, and the particular content of prompt message is not also done It limits.
The present embodiment has made further instruction and optimization to technical solution, specifically, according to current priority sequence Further comprise after authorizing access right for target device:
Judge whether the corresponding receiving device of target device initiates division transmission;
If so, according to current priority sequence using next equipment of target device as target device, and enter and be Target device authorizes the step of access right.
It should be noted that division transmission refers to after obtaining determining target device, the corresponding reception of target device is set A kind of mode for data transmission that preparation rises.Specifically, after target device is determined, the equipment for receiving data may be done not yet The preparation received well, in order to improve the service efficiency of bus, i.e. bus withouts waiting for the corresponding reception of this target device and sets It is standby be ready after just transmit data, but bus is first used to next target device, in current target device correspondence Reception data equipment be ready after, receiving device initiates transmission request again, is directly occupied with current target device Bus.For example, it is assumed that current priority sequence is M0>M1>M3>M4>M2, equipment M1 are currently determining target device, according to Priority orders, equipment M1 obtain access right, can use bus transfer data.But the corresponding receiving devices of equipment M1 are also The preparation for receiving data is not carried out, i.e., can't receive data, therefore receiving device initiates division transmission, at this point, current Bus is released to next target device M3 and used by target device.When the receiving device of equipment M1 can receive data, receive Equipment initiates transmission request, and equipment M1 occupies bus again to carry out data transmission.
It should be noted that the state of equipment is one kind in four kinds of states, i.e. idle state idle, normal transmission state Normal, division transmission state shield and other main equipment possession states change after division.It that is, can be according to setting Standby condition adjudgement whether the solicited message of accepting device.
Specifically, judging whether the corresponding receiving device of target device initiates division transmission;If so, according to current preference Grade sequence enters the step of authorizing access right for target device using next equipment of target device as target device. In specific implementation, when inputting request signal HBURSREQx generation high level, judge that the corresponding receiving device of target device is It is no to initiate division transmission, if currently belonging to division transmission, request signal HBURSREQx and division transmission signal HSPLIT step-by-steps It is busreq_shield signals with rear deposit output;If being currently not belonging to division transmission, request signal HBURSREQx is by posting Busreq signals are generated after depositing;Busreq signals are output to busreq_final with busreq_shield signals by selector In, then busreq_final signals are compared with priority orders, by highest priority and send out solicited message set It is standby to be exported as target device setting signal grant.
As it can be seen that it is initiated by judging whether the corresponding receiving device of target device initiates division transmission, and in target device According to current priority sequence using next equipment of target device as target device during division transmission, and enter and set for target Standby the step of authorizing access right so that when current target device cannot transmit data, trunk priority gives next target device It uses, so as to optimize the service efficiency of bus.
It is described in detail above for a kind of embodiment of the referee method of bus provided by the invention, the present invention Additionally provide a kind of bus arbiter corresponding with this method, bus arbitration equipment and computer readable storage medium, due to The embodiment of bus arbiter, the arbitration equipment of bus and computer readable storage medium part and the embodiment phase of method part Mutually correlate, therefore the embodiment side of referring to of the arbitration equipment of bus arbiter, bus and computer readable storage medium part The description of the embodiment of method part wouldn't repeat here.
Fig. 3 is a kind of schematic diagram of bus arbiter provided in an embodiment of the present invention, as shown in the figure, bus arbiter packet It includes:
Presetting module 31, for being that a part of equipment in bus sets fixed priority in advance, remaining equipment is according to following The mode of ring sequence carries out priority ranking;Wherein, the priority of any one equipment in fixed priority is above remaining The priority of equipment;
Request module 32, for obtaining the solicited message that current device uses bus;
Priority control module 33, for judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in bus is ranked up to be worked as in the way of fixed priority and cyclic ordering Preceding priority orders;
Authorization module 34, for authorizing access right for target device according to current priority sequence.
Bus arbiter provided by the invention has the advantageous effect of the referee method of above-mentioned bus.
Fig. 4 is a kind of schematic diagram of the arbitration equipment of bus provided in an embodiment of the present invention, as shown in the figure, the arbitration of bus Equipment includes:
Memory 41, for storing computer program;
Processor 42, for performing computer program when, realize following steps:
Fixed priority is set for a part of equipment in bus in advance, remaining equipment carries out in the way of cyclic ordering Priority ranking;Wherein, the priority of any one equipment in fixed priority is above the priority of remaining equipment;It obtains Current device uses the solicited message of bus;
Judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in bus is ranked up to be worked as in the way of fixed priority and cyclic ordering Preceding priority orders;
According to current priority sequence access right is authorized for target device.
The arbitration equipment of bus provided by the invention has the advantageous effect of the referee method of above-mentioned bus.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage Computer program is stored on medium, lower step is realized when computer program is executed by processor:
Fixed priority is set for a part of equipment in bus in advance, remaining equipment carries out in the way of cyclic ordering Priority ranking;Wherein, the priority of any one equipment in fixed priority is above the priority of remaining equipment;It obtains Current device uses the solicited message of bus;
Judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in bus is ranked up to be worked as in the way of fixed priority and cyclic ordering Preceding priority orders;
According to current priority sequence access right is authorized for target device.
Computer readable storage medium provided in this embodiment has the advantageous effect of the referee method of above-mentioned bus.
Above to the referee method of bus provided by the present invention, bus arbiter, bus arbitration equipment and computer Readable storage medium storing program for executing is described in detail.Specific embodiment used herein carries out the principle of the present invention and embodiment It illustrates, the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention.It should be pointed out that for For those skilled in the art, without departing from the principle of the present invention, if can also be carried out to the present invention Dry improvement and modification, these improvement and modification are also fallen within the protection scope of the claims of the present invention.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realities Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Profession Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It can directly be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.

Claims (10)

1. a kind of referee method of bus, which is characterized in that including:
Fixed priority is set for a part of equipment in bus in advance, remaining equipment is in the way of cyclic ordering into row major Grade sequence;Wherein, the priority of any one equipment in the fixed priority is above the priority of remaining equipment;
Obtain the solicited message that current device uses the bus;
Judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in the bus is ranked up to be worked as in the way of fixed priority and cyclic ordering Preceding priority orders;
According to current priority sequence access right is authorized for target device.
2. the referee method of bus according to claim 1, which is characterized in that the equipment included in the fixed priority Quantity be one.
3. the referee method of bus according to claim 2, which is characterized in that the setting rule tool of the fixed priority Body is:
It counts the equipment in the bus and the number of the solicited message is sent out in preset time and by the most equipment of number It is set as fixed priority.
4. the referee method of bus according to claim 1, which is characterized in that be according to current priority sequence described Target device further comprises after authorizing access right:
Judge whether the bus is serviceable condition;
If so, data are transmitted for the target device using the bus.
5. the referee method of bus according to claim 4, which is characterized in that it is described judge the bus whether be can Further comprise after use state:
If it is not, then send out prompt message.
6. the referee method of bus according to claim 4, which is characterized in that the serviceable condition specifically includes:
Idle state or locking transmission final step state or burst transfer final step state.
7. the referee method of bus according to any one of claims 1 to 6, which is characterized in that described according to current excellent First grade sequence further comprises after authorizing access right for target device:
Judge whether the corresponding receiving device of the target device initiates division transmission;
If so, it is gone forward side by side according to current priority sequence using next equipment of the target device as target device Enter described the step of authorizing access right for target device.
8. a kind of bus arbiter, which is characterized in that including:
Presetting module, for being that a part of equipment in bus sets fixed priority in advance, remaining equipment is according to cyclic ordering Mode carry out priority ranking;Wherein, the priority of any one equipment in the fixed priority be above it is described its The priority of remaining equipment;
Request module, for obtaining the solicited message that current device uses the bus;
Priority control module, for judge the last round of equipment using bus whether be fixed priority equipment;
If so, last round of priority orders are set as current priority sequence;
Otherwise, the armamentarium in the bus is ranked up to be worked as in the way of fixed priority and cyclic ordering Preceding priority orders;
Authorization module, for authorizing access right for target device according to current priority sequence.
9. a kind of arbitration equipment of bus, which is characterized in that including:
Memory, for storing computer program;
Processor, for performing computer program when, realize the arbitration side of bus as described in any one of claim 1 to 7 The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize the referee method of bus as described in any one of claim 1 to 7 when being executed by processor The step of.
CN201810044611.4A 2018-01-17 2018-01-17 A kind of referee method of bus, equipment, storage medium and bus arbiter Pending CN108228510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810044611.4A CN108228510A (en) 2018-01-17 2018-01-17 A kind of referee method of bus, equipment, storage medium and bus arbiter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810044611.4A CN108228510A (en) 2018-01-17 2018-01-17 A kind of referee method of bus, equipment, storage medium and bus arbiter

Publications (1)

Publication Number Publication Date
CN108228510A true CN108228510A (en) 2018-06-29

Family

ID=62641349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810044611.4A Pending CN108228510A (en) 2018-01-17 2018-01-17 A kind of referee method of bus, equipment, storage medium and bus arbiter

Country Status (1)

Country Link
CN (1) CN108228510A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109765607A (en) * 2018-12-12 2019-05-17 中国石油天然气集团有限公司 Seismic instrument arrangement and excitation management balance optimizing method, apparatus and storage medium
CN110753001A (en) * 2019-10-25 2020-02-04 珠海格力电器股份有限公司 Method and device for efficiently transmitting data and storage medium
CN111191875A (en) * 2019-11-28 2020-05-22 郑州众智科技股份有限公司 Method for mixed dispatching of unit
CN112306939A (en) * 2020-10-29 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Bus calling method, device, equipment and storage medium
CN114185823A (en) * 2022-02-17 2022-03-15 深圳比特微电子科技有限公司 Arbiter, arbitration method, controller and chip
CN114706805A (en) * 2022-03-31 2022-07-05 重庆长安汽车股份有限公司 Method for sequencing sensing fusion information according to target serial number, electronic equipment and computer readable storage medium
CN115454912A (en) * 2022-11-09 2022-12-09 苏州浪潮智能科技有限公司 Parallel arbitration method, system, equipment and storage medium
WO2024078204A1 (en) * 2022-10-10 2024-04-18 合肥美的电冰箱有限公司 Bus communication control method and apparatus, and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479542A (en) * 2002-08-30 2004-03-03 深圳市中兴通讯股份有限公司上海第二 Fair bus arbitration method and arbitration device
CN101510181A (en) * 2009-03-19 2009-08-19 北京中星微电子有限公司 Bus arbitration method and bus arbitration apparatus
CN103532807A (en) * 2013-10-12 2014-01-22 江苏华丽网络工程有限公司 Technology for PCIE (Peripheral Component Interface Express) data service quality management
CN104951414A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Control method and electronic equipment
CN106844250A (en) * 2017-02-14 2017-06-13 山东师范大学 The bus arbiter and referee method of a kind of mixed scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479542A (en) * 2002-08-30 2004-03-03 深圳市中兴通讯股份有限公司上海第二 Fair bus arbitration method and arbitration device
CN101510181A (en) * 2009-03-19 2009-08-19 北京中星微电子有限公司 Bus arbitration method and bus arbitration apparatus
CN103532807A (en) * 2013-10-12 2014-01-22 江苏华丽网络工程有限公司 Technology for PCIE (Peripheral Component Interface Express) data service quality management
CN104951414A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Control method and electronic equipment
CN106844250A (en) * 2017-02-14 2017-06-13 山东师范大学 The bus arbiter and referee method of a kind of mixed scheduling

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109765607A (en) * 2018-12-12 2019-05-17 中国石油天然气集团有限公司 Seismic instrument arrangement and excitation management balance optimizing method, apparatus and storage medium
CN110753001A (en) * 2019-10-25 2020-02-04 珠海格力电器股份有限公司 Method and device for efficiently transmitting data and storage medium
CN111191875A (en) * 2019-11-28 2020-05-22 郑州众智科技股份有限公司 Method for mixed dispatching of unit
CN112306939A (en) * 2020-10-29 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Bus calling method, device, equipment and storage medium
CN114185823A (en) * 2022-02-17 2022-03-15 深圳比特微电子科技有限公司 Arbiter, arbitration method, controller and chip
CN114185823B (en) * 2022-02-17 2022-05-24 深圳比特微电子科技有限公司 Arbiter, arbitration method, controller and chip
CN114706805A (en) * 2022-03-31 2022-07-05 重庆长安汽车股份有限公司 Method for sequencing sensing fusion information according to target serial number, electronic equipment and computer readable storage medium
CN114706805B (en) * 2022-03-31 2024-03-15 重庆长安汽车股份有限公司 Method for ordering sensing fusion information according to target sequence number, electronic equipment and computer readable storage medium
WO2024078204A1 (en) * 2022-10-10 2024-04-18 合肥美的电冰箱有限公司 Bus communication control method and apparatus, and device and storage medium
CN115454912A (en) * 2022-11-09 2022-12-09 苏州浪潮智能科技有限公司 Parallel arbitration method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108228510A (en) A kind of referee method of bus, equipment, storage medium and bus arbiter
CN103259826B (en) For the data transmission device between charger and electric motor car and method
CN110505653B (en) Method, equipment and computer storage medium for controlling service quality
CN103259299A (en) Multi-standard compatible charger
WO2019218769A1 (en) Server, maintenance terminal, and power battery maintenance method, device and system
CN103336486A (en) Method for battery module address assignment of battery energy storage system
JP6982521B2 (en) Charge management system, parking lot, and program
CN104765701B (en) Data access method and equipment
CN109228954B (en) Charging pile energy management method and system and charging pile group system
CN107766267B (en) Arbitration method and system for I2C bus
JPWO2014208561A1 (en) CHARGE STATE MANAGEMENT METHOD, CHARGE STATE MANAGEMENT DEVICE, AND PROGRAM
CN105493537B (en) A kind of distribution method and equipment of Cell Radio Network Temporary Identifier/Identity, Cell-RNTI C-RNTI
CN103841562B (en) A kind of time interval resource takes processing method and processing device
CN111354990B (en) Battery pack, identification information distribution system and method thereof, and storage medium
CN105471044B (en) charging system control method and device
CN106789506B (en) BC switching method based on hybrid structure of optical fiber bus and 1553B bus
CN109960851B (en) Data transmission method based on different voltage domains and handshake protocol circuit
EP2439881A1 (en) Cluster system and request message distribution method for processing multi-node transaction
CN107168725A (en) A kind of method for upgrading software of controller, apparatus and system
CN109278576A (en) A kind of charging management method of electric vehicle, system and electric vehicle
WO2018171177A1 (en) Index weight verification method and device of network quality assessment tool
CN116846871A (en) Address allocation system and method for battery module
CN110103746A (en) A kind of matrixing network formula charger system
CN109889554A (en) A kind of multibus protocol dynamic conversion method and device
CN110677544B (en) PCRF location script updating method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication