JP2000010934A - Bus arbitration system in multi-cpu system - Google Patents

Bus arbitration system in multi-cpu system

Info

Publication number
JP2000010934A
JP2000010934A JP10180151A JP18015198A JP2000010934A JP 2000010934 A JP2000010934 A JP 2000010934A JP 10180151 A JP10180151 A JP 10180151A JP 18015198 A JP18015198 A JP 18015198A JP 2000010934 A JP2000010934 A JP 2000010934A
Authority
JP
Japan
Prior art keywords
cpu
cpus
task
priority
arbiter
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.)
Withdrawn
Application number
JP10180151A
Other languages
Japanese (ja)
Inventor
Tomonori Kumagai
智憲 熊谷
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP10180151A priority Critical patent/JP2000010934A/en
Publication of JP2000010934A publication Critical patent/JP2000010934A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To decentralize loads on the CPUs in the multi-CPU system by equalizing the rates of the respective CPUs by composing the system of an arbiter part which arbitrates the bus use rights of the CPUs and a means which changes the priority of the CPUs according to the bus use time of the CPUs. SOLUTION: The system consists of the arbiter part which arbitrates the bus use rights of the CPUs and the means which changes the priority of the CPUs according to the bus use time of the CPUs. When the arbiter part 3 requests a measured time value (process time value of task), the CPUs (1 to 4) 1 send measured time values to the arbiter part 3. The arbiter part 3 gathers the measuring time by a gathering part. The measured time of the respective four CPUs (1 to 4) 1 is compared and select signals X and Y are sent to conversion cell parts of respective panels so as to give the bus use right in order from the CPU having the shortest measured time. The conversion cell parts determine the priority according to the logic of the conversion cells.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はマルチCPUシステ
ムのバス調停システムに関し、更に詳しくは通信システ
ムのCPUの負荷を分散するためのバス調停システムに
関する。
The present invention relates to a bus arbitration system for a multi-CPU system, and more particularly, to a bus arbitration system for distributing a load of a CPU of a communication system.

【0002】近年の通信システムの高速化、大容量化に
より、マルチCPUによる装置の開発が要求されてい
る。このため、複数のCPUをできるだけ効率的に動作
させ、更に低コストで装置を実現するようなプロセッサ
機構が必要となる。
2. Description of the Related Art With the recent increase in speed and capacity of communication systems, development of devices using multiple CPUs has been required. For this reason, a processor mechanism for operating a plurality of CPUs as efficiently as possible and realizing the apparatus at a lower cost is required.

【0003】[0003]

【従来の技術】従来のバス調停方法は、バスの使用権を
獲得するために、CPU毎にパネルIDのような優先番
号をつけ、バスを獲得する毎に優先番号を変化させるラ
ウンドロビン方式等を用いている。
2. Description of the Related Art In a conventional bus arbitration method, in order to acquire a right to use a bus, a priority number such as a panel ID is assigned to each CPU, and the priority number is changed every time a bus is acquired. Is used.

【0004】図9は従来システムの概念図である。図に
おいて、1は複数のCPU、2はこれらCPUを相互接
続するためのプロセッサバス、3は各CPUと接続さ
れ、プロセッサバスの調停を行なうアービタ部である。
図では、CPUは1〜NまでのN個設けられている。こ
れらCPUは、時間帯毎に優先順位が異なっている。
FIG. 9 is a conceptual diagram of a conventional system. In the figure, 1 is a plurality of CPUs, 2 is a processor bus for interconnecting these CPUs, and 3 is an arbiter unit connected to each CPU and arbitrating the processor bus.
In the figure, N CPUs 1 to N are provided. These CPUs have different priorities for each time zone.

【0005】例えば、時間帯1では、CPU1、CPU
2の順に優先順位が高く、時間帯2では、CPU2、C
PU3の順に優先順位が高く、時間帯3では、CPU3
が一番優先順位が高い。つまり、各時間帯に応じて、記
載されている数字が小さい程優先順位が高くなってい
る。
For example, in time zone 1, CPU 1
The priority is higher in the order of 2, and in the time zone 2, CPU2, C
The priority order is higher in the order of PU3.
Is the highest priority. That is, according to each time zone, the smaller the number described, the higher the priority.

【0006】時間帯1では、優先権はCPU1が獲得し
ている。その後、時間帯2ではCPU2が、時間帯3で
はCPU3がそれぞれ優先権を獲得している。優先権を
獲得したCPUは、プロセッサバス(以下単にバスとい
う)2を使用して信号処理を行なうことができる。
In the time zone 1, the CPU 1 has acquired the priority. Thereafter, in the time period 2, the CPU 2 acquires the priority, and in the time period 3, the CPU 3 acquires the priority. The CPU that has acquired the priority can perform signal processing using a processor bus (hereinafter simply referred to as a bus) 2.

【0007】図10はCPUの処理時間の説明図であ
る。図では、CPU1が信号処理時間が一番長く、次
に、CPU2の信号処理時間が長い。このような各CP
Uの信号処理を行なうにあたり、各信号処理時間が小さ
なステップに分割され、分割されたステップ毎に時分割
処理される。
FIG. 10 is an explanatory diagram of the processing time of the CPU. In the figure, the CPU 1 has the longest signal processing time, and the CPU 2 has the longest signal processing time. Each such CP
In performing the signal processing of U, each signal processing time is divided into small steps, and time division processing is performed for each divided step.

【0008】[0008]

【発明が解決しようとする課題】前記したバス調停方法
は、一つの割り込み処理単位のバス獲得の分散であり、
更にCPUの処理時間は一つの割り込み毎に異なるの
で、CPUの使用率が完全に平均になる保証がないとい
う問題があった。
The above-mentioned bus arbitration method is a method of distributing bus acquisition in one interrupt processing unit.
Further, since the processing time of the CPU differs for each interrupt, there is a problem that the usage rate of the CPU is not guaranteed to be completely averaged.

【0009】本発明はこのような課題に鑑みてなされた
ものであって、マルチCPUシステムにおける各CPU
の使用率を均一化することにより、CPUの負荷分散を
行なうことができるマルチCPUシステムのバス調停シ
ステムを提供することを目的としている。
The present invention has been made in view of such a problem, and has been made in consideration of the above problems.
It is an object of the present invention to provide a bus arbitration system of a multi-CPU system capable of distributing the load of the CPU by equalizing the usage rate of the CPU.

【0010】[0010]

【課題を解決するための手段】本発明では、各CPUが
ローカルにタスク処理時間を測定する機能を持ち、ある
時間乃至はアービタ部がタスク処理時間値を要求した
時、各CPUよりアービタ部にその情報を送出する。そ
の後、アービタ部はタスク処理時間の最も短いCPU或
いはタスク処理回数の最も少ないCPUに最優先番号を
割り当て、それに伴いCPUの優先番号も変更するもの
である。
According to the present invention, each CPU has a function of measuring the task processing time locally, and when a certain time or the arbiter requests a task processing time value, each CPU sends the task processing time to the arbiter. Send that information. After that, the arbiter assigns the highest priority number to the CPU with the shortest task processing time or the CPU with the least number of task processing times, and changes the priority number of the CPU accordingly.

【0011】図1は本発明の原理ブロック図である。図
9と同一のものは、同一の符号を付して示す。図におい
て、1はプロセッサバス2に接続された複数のCPUで
ある。図では、CPU1〜CPU4までの4個のCPU
が接続された例を示している。3はIDバス4を介して
各CPU1と接続され、バスの調停を行なうアービタ部
である。該アービタ部3からは、各CPU1に対して優
先順位決定信号がX,Yの2ビットで与えられるように
なっている。
FIG. 1 is a block diagram showing the principle of the present invention. The same components as those in FIG. 9 are denoted by the same reference numerals. In the figure, reference numeral 1 denotes a plurality of CPUs connected to a processor bus 2. In the figure, four CPUs from CPU1 to CPU4
Are connected. An arbiter unit 3 is connected to each CPU 1 via the ID bus 4 and arbitrates the bus. The arbiter unit 3 supplies a priority determination signal to each CPU 1 in two bits of X and Y.

【0012】(1)前記した課題を解決する第1の発明
は、複数のCPU1がプロセッサバス2を介して接続さ
れたシステムにおいて、前記CPU1のバス使用権を調
停するアービタ部3と、CPU1のバス使用時間に応じ
たCPU1の優先順位付けを変更する変更手段とにより
構成されてなることを特徴としている。
(1) A first invention for solving the above-mentioned problem is an arbiter unit 3 for arbitrating the bus use right of the CPU 1 in a system in which a plurality of CPUs 1 are connected via a processor bus 2, And changing means for changing the prioritization of the CPU 1 in accordance with the bus usage time.

【0013】この発明の構成によれば、CPU1のバス
使用時間が小さいものから順に優先順位を付けるため、
各CPU1を均一に使用することができ、負荷の分散を
図ることができる。
According to the configuration of the present invention, priorities are assigned in ascending order of bus use time of the CPU 1.
Each CPU 1 can be used uniformly, and the load can be distributed.

【0014】(2)前記した課題を解決する第2の発明
は、複数のCPU1がプロセッサバス2を介して接続さ
れたシステムにおいて、前記CPUのバス使用権を調停
するアービタ部3と、処理タスク毎に番号を付け、その
優先度に応じたCPU1の優先順位付けを変更する変更
手段とにより構成されてなることを特徴としている。
(2) According to a second aspect of the present invention, in a system in which a plurality of CPUs 1 are connected via a processor bus 2, an arbiter unit 3 for arbitrating the bus use right of the CPUs and a processing task It is characterized in that it comprises a numbering means for each, and changing means for changing the priority order of the CPU 1 according to its priority.

【0015】この発明の構成によれば、処理タスク毎に
優先度を付けることにより、タスクの大きいCPU1は
アービタ部3の調停で処理回数を小さくすることができ
るので、各CPU1を均一に使用することができ、負荷
の分散を図ることができる。
According to the configuration of the present invention, by assigning a priority to each processing task, the CPU 1 having a large task can reduce the number of times of processing by arbitration of the arbiter unit 3, so that each CPU 1 is used uniformly. And the load can be distributed.

【0016】(3)この場合において、前記各CPUが
ローカルにタスク処理割合を測定する機能を持ち、アー
ビタ部3がタスク処理時間値を要求した時、各CPU1
よりアービタ部3にその情報を送出し、その後、アービ
タ部3はタスク処理時間の最も短いCPU1或いはタス
ク処理回数の最も少ないCPU1に最優先番号を割り当
て、それに伴いCPU1の優先番号も変更することを特
徴としている。
(3) In this case, when each of the CPUs has a function of locally measuring the task processing ratio, and when the arbiter unit 3 requests a task processing time value, each CPU 1
The arbiter unit 3 sends the information to the arbiter unit 3, and thereafter, the arbiter unit 3 assigns the highest priority number to the CPU 1 with the shortest task processing time or the CPU 1 with the least number of task processing times, and changes the priority number of the CPU 1 accordingly. Features.

【0017】この発明の構成によれば、タスク処理時間
の最も短いCPU1、或いはタスク処理回数の最も少な
いCPU1に最優先番号を割り当てることにより、各C
PU1を均一に使用することができ、負荷の分散を図る
ことができる。
According to the configuration of the present invention, by assigning the highest priority number to the CPU 1 with the shortest task processing time or the CPU 1 with the least number of task processing times,
PU1 can be used uniformly, and the load can be distributed.

【0018】[0018]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態例を詳細に説明する。図2はセレクト信号とC
PUの優先順位との関係を示す図で、図1の原理ブロッ
ク図を対象としている。アービタ部3より出力される優
先順位決定信号XYの各々の値に応じて、CPU1〜C
PU4までの優先順位は、図に示すように変化する。例
えば、XY=01の場合、CPU4が最も優先順位が高
く、以下CPU1、CPU2、CPU3と続く。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 shows the selection signal and C
FIG. 2 is a diagram showing the relationship between PUs and their priorities, and is directed to the principle block diagram of FIG. The CPUs 1 to 4 are controlled according to the values of the priority order determination signals XY output from the arbiter unit 3.
The priority order up to PU4 changes as shown in the figure. For example, when XY = 01, the CPU 4 has the highest priority, and is followed by CPU1, CPU2, and CPU3.

【0019】図3はCPUを含むパネル10の一実施の
形態例を示すブロック図である。図において、1は前述
したCPUで、プロセッサバス及び制御バスと接続され
ている。5はCPU1と接続され、各CPUの処理時間
の測定又はタスクの処理回数を測定するタイマ/処理回
数測定部である。6はIDバスと接続され、CPUの優
先順位を記憶するID部、7は該ID部6と接続され、
アービタ部からのセレクト信号を受ける変換セル部、8
は変換セル部7と接続されBWB単位の優先順位を記憶
するBWBID部である。
FIG. 3 is a block diagram showing one embodiment of the panel 10 including a CPU. In the figure, reference numeral 1 denotes the CPU, which is connected to a processor bus and a control bus. Reference numeral 5 denotes a timer / processing count measuring unit which is connected to the CPU 1 and measures the processing time of each CPU or measures the number of processing tasks. Reference numeral 6 is connected to an ID bus, and an ID section for storing the priority of the CPU. Reference numeral 7 is connected to the ID section 6.
A conversion cell unit receiving a select signal from an arbiter unit, 8
Is a BWBID unit connected to the conversion cell unit 7 and storing the priority in BWB units.

【0020】BWB IDはバックボードIDであり、
初期状態の優先度を表わす。変換セル部7は、アービタ
3より送信されるセレクト信号の論理変換を行なう。I
Dは現在のCPU(パネル)の優先度を示す。タイマ
は、CPUが信号処理に要する時間を測定するものであ
る。タスクの処理回数測定は、CPUが行なうタスク処
理の回数を測定するものである。このように構成された
回路を用いて、本発明を説明すると以下の通りである。
The BWB ID is a backboard ID,
Indicates the priority of the initial state. The conversion cell unit 7 performs logical conversion of the select signal transmitted from the arbiter 3. I
D indicates the current priority of the CPU (panel). The timer measures the time required for the CPU to perform signal processing. The task processing frequency measurement measures the number of task processing performed by the CPU. The present invention will be described below using the circuit configured as described above.

【0021】先ず、CPUを含むパネルをバックボード
に差し込むと、BWB ID部8によって初期優先度I
Dが規定され、変換セル部7を通過してID部6に記憶
される。ここで、アービタ部3がCPU1に対して制御
信号を送信すると、CPU1はタイマ/処理回数測定部
5を起動して信号処理時間又はタスクの処理回数を測定
する。即ち、各CPUのタスク処理割合を測定する。一
連の信号処理を終えた後、CPU1はアービタ部3に測
定したタイマ値を送信する。
First, when the panel including the CPU is inserted into the backboard, the BWB ID unit 8 sets the initial priority I
D is defined, passed through the conversion cell unit 7 and stored in the ID unit 6. Here, when the arbiter unit 3 transmits a control signal to the CPU 1, the CPU 1 activates the timer / processing number measuring unit 5 and measures the signal processing time or the number of processing of the task. That is, the task processing ratio of each CPU is measured. After completing a series of signal processing, the CPU 1 transmits the measured timer value to the arbiter unit 3.

【0022】アービタ部3はそのタイマ値を参照してパ
ネル10の変換セル部7に優先度IDを決定するセレク
ト信号XYを送信する。図4は図3で示されるパネルを
4枚用いて本システムを実現しているブロック図であ
る。図では、パネルをA〜Dまでの4枚用いているが、
本発明はこれに限るものではなく、任意の数のパネルで
あってよい。
The arbiter unit 3 transmits a select signal XY for determining the priority ID to the conversion cell unit 7 of the panel 10 with reference to the timer value. FIG. 4 is a block diagram for realizing the present system using four panels shown in FIG. In the figure, four panels A to D are used,
The present invention is not limited to this, and may be any number of panels.

【0023】図5はアービタ部3の実施の形態例を示す
ブロック図である。21は測定時間又はタスクの処理回
数を収集する収集部、22は該収集部21の出力を受け
て優先度の判定を行なう判定部、23は判定部22の出
力を受けて各パネルにセレクト信号XYを出力するID
変換制御部である。20はIDバスと接続されるアービ
タである。
FIG. 5 is a block diagram showing an embodiment of the arbiter unit 3. Reference numeral 21 denotes a collection unit that collects the measurement time or the number of times of processing of the task, 22 denotes a determination unit that receives the output of the collection unit 21 and determines the priority, and 23 receives the output of the determination unit 22 and supplies a select signal to each panel. ID to output XY
It is a conversion control unit. An arbiter 20 is connected to the ID bus.

【0024】先ず、4枚のパネル10をバックボードに
差し込む。各パネルのBWB ID部8で初期優先度I
Dが規定される。BWB ID部の優先順位IDはID
部6に記憶される。ここで、ID値は各パネルで全て異
なるものである。
First, the four panels 10 are inserted into the backboard. Initial priority I in BWB ID section 8 of each panel
D is defined. The priority order ID of the BWB ID part is ID
Stored in the unit 6. Here, the ID value is different for each panel.

【0025】アービタ部3は、4枚のパネルのID部6
を参照し、最も優先度の高いパネル(CPU)に対して
バス優先権を与える。CPU1がプロセッサバスを解放
した後、アービタ20からCPU1に割り込み信号が入
り、信号処理時間の測定がパネル10内のタイマ/処理
回数測定部5のタイマで行なわれる。この信号処理時間
の測定を4個のCPU全てについて行なう。この場合、
測定する時間は実際のタスクの処理時間である。
The arbiter section 3 has an ID section 6 for four panels.
To give the bus priority to the panel (CPU) with the highest priority. After the CPU 1 releases the processor bus, an interrupt signal is input from the arbiter 20 to the CPU 1, and the signal processing time is measured by the timer of the timer / processing number measuring unit 5 in the panel 10. This signal processing time is measured for all four CPUs. in this case,
The measuring time is the processing time of the actual task.

【0026】その後、アービタ部3より測定時間値を要
求されると、CPU1からアービタ部3へ測定時間値が
送信される。アービタ部3は、収集部21で測定時間を
収集する。そして、4個のCPUの測定時間を比較し
て、最も測定時間の短いCPUから順番にバス優先権を
与えるため、セレクト信号X、Yを各パネルの変換セル
部7に送信する。変換セル部7は、変換セルの論理(図
4参照)に基づいて優先度IDを決定する。
Thereafter, when the arbiter unit 3 requests a measurement time value, the CPU 1 transmits the measurement time value to the arbiter unit 3. The arbiter unit 3 collects the measurement time in the collection unit 21. Then, the CPUs compare the measurement times of the four CPUs and transmit select signals X and Y to the conversion cell unit 7 of each panel in order to give the bus priority in order from the CPU with the shortest measurement time. The conversion cell unit 7 determines the priority ID based on the logic of the conversion cell (see FIG. 4).

【0027】以上の操作を繰り返して行なうことによ
り、タスクの大きいCPU1はアービタ3の調停で処理
時間を少なくすることができるため、4個のCPUを均
一に使用することができる。
By repeatedly performing the above operation, the CPU 1 having a large task can reduce the processing time by arbitration of the arbiter 3, so that the four CPUs can be used uniformly.

【0028】この実施の形態例によれば、CPUのバス
使用権が小さいものから順に優先順位をつけるため、各
CPUを均一に使用することができ、負荷の分散を図る
ことができる。
According to this embodiment, the CPUs are given priority in order from the one with the smallest bus access right, so that each CPU can be used uniformly and the load can be distributed.

【0029】次に、本発明の他の動作について説明す
る。先ず、パネル10をバックボードに差し込むと、B
WB IDによって初期優先度IDが規定され、変換セ
ル部7を通過してID部6に記憶される。アービタ部3
がCPUに対して制御信号を送信すると、CPU1は収
集部21を起動し、タスクの信号処理回数を測定する。
処理測定例を図6に示す。
Next, another operation of the present invention will be described. First, when the panel 10 is inserted into the backboard,
An initial priority ID is defined by the WB ID, passes through the conversion cell unit 7, and is stored in the ID unit 6. Arbiter part 3
Sends a control signal to the CPU, the CPU 1 activates the collecting unit 21 and measures the number of signal processing times of the task.
An example of the processing measurement is shown in FIG.

【0030】図6はタスクと処理回数の説明図である。
CPU1はタスクAと、タスクBとタスクCより構成さ
れている。CPU2はタスクAと、タスクBと、タスク
Cから構成されている。CPU3は、タスクAとタスク
Cより構成されている。CPUNはタスクBのみで構成
されている。タスクAは、システム監視用で処理回数×
1の長さを持ち、タスクBは信号処理用で処理回数×2
の長さを持ち、タスクCは信号処理用で処理回数×3の
長さを持っている。
FIG. 6 is an explanatory diagram of tasks and the number of processes.
The CPU 1 includes a task A, a task B, and a task C. The CPU 2 includes a task A, a task B, and a task C. The CPU 3 includes a task A and a task C. CPUN includes only task B. Task A is for system monitoring and is the number of times
Task B has a length of 1 and is used for signal processing.
The task C is for signal processing, and has a length of processing times × 3.

【0031】CPU1は、OS(オペレーティングシス
テム)で用意されているタスクテーブルを基に、タスク
の実行を行なう。CPU1は、タスク実行前にそのタス
クのタスク番号が分かっているので、タスク番号をタイ
マ/処理回数測定部5に渡す。該タイマ/処理回数測定
部5では、そのタスク番号からタスクの種類を認識し、
タスク回数を測定する。ここで、タスク回数とは、CP
Uで処理されたタスクの回数ではない。所定の規則によ
り決められた単位である。
The CPU 1 executes a task based on a task table prepared by an OS (operating system). Since the task number of the task is known before the execution of the task, the CPU 1 passes the task number to the timer / processing count measuring unit 5. The timer / processing count measuring unit 5 recognizes the type of task from the task number,
Measure the number of tasks. Here, the number of tasks is CP
It is not the number of tasks processed in U. It is a unit determined by a predetermined rule.

【0032】図6では、タスクAをシステム監視用、タ
スクB及びタスクCを信号処理用に割り当てており、タ
スクAはCPUの処理回数分、タスクBはCPUの処理
回数の2倍、タスクCはCPUの処理回数の3倍として
タスクの回数を求めている。これを4個のCPU全てに
ついて行なう。その後、アービタ部3よりタスク回数値
を要求されると、CPU1からアービタ3へタスク回数
値を送信する。
In FIG. 6, task A is assigned for system monitoring, task B and task C are assigned for signal processing, task A is for the number of CPU processings, task B is twice the CPU processing number, task C is Calculates the number of tasks as three times the number of processings by the CPU. This is performed for all four CPUs. Thereafter, when the arbiter unit 3 requests a task count value, the CPU 1 transmits the task count value to the arbiter 3.

【0033】アービタ部3は4個のCPUの測定回数値
を参照して、最もタスクの測定回数値の小さいCPUか
ら順番にバス優先権を与えるため、セレクト信号X及び
Yを各パネル10の変換セル部7に送信する。変換セル
部7は、変換セルの論理に基づいて優先度IDを決定す
る。
The arbiter unit 3 converts the select signals X and Y to each panel 10 by referring to the measurement count values of the four CPUs and giving the bus priority in order from the CPU having the smallest task measurement count value. It is transmitted to the cell unit 7. The conversion cell unit 7 determines the priority ID based on the logic of the conversion cell.

【0034】以上の操作を繰り返す行なうことにより、
タスクの大きいCPUはアービタの調停で処理回数を小
さくすることができるため、4個のCPUを均一に使用
することができる。
By repeating the above operation,
A CPU with a large task can reduce the number of processes by arbitration of the arbiter, so that the four CPUs can be used uniformly.

【0035】この実施の形態例によれば、処理タスク毎
に優先度を設けることにより、タスクの大きいCPUは
アービタの調停で処理回数を小さくすることができるの
で、各CPUを均一に使用することができ、負荷の分散
を図ることができる。
According to this embodiment, by setting the priority for each processing task, a CPU having a large task can reduce the number of times of processing by arbitration of the arbiter. And the load can be distributed.

【0036】この場合において、前記各CPUがローカ
ルにタスク処理割合を測定する機能を持ち、ある時間乃
至はアービタ部3がタスク処理時間値を要求した時、各
CPU1よりアービタ部3にその情報を送出し、その
後、アービタ部3はタスク処理時間の最も短いCPU1
或いはタスク処理回数の最も少ないCPU1に最優先番
号を割り当て、それに伴いCPU1の優先番号も変更す
ることができる。従って、この実施の形態例によれば、
タスク処理時間の最も短いCPU1、或いはタスク処理
回数の最も少ないCPU1に最優先番号を割り当てるこ
とにより、各CPU1を均一に使用することができ、負
荷の分散を図ることができる。
In this case, each of the CPUs has a function of locally measuring the task processing ratio, and when a certain time or the arbiter unit 3 requests a task processing time value, the CPU 1 sends the information to the arbiter unit 3. After that, the arbiter unit 3 sends the CPU 1 with the shortest task processing time
Alternatively, the highest priority number can be assigned to the CPU 1 with the smallest number of task processes, and the priority number of the CPU 1 can be changed accordingly. Therefore, according to this embodiment,
By assigning the highest priority number to the CPU 1 with the shortest task processing time or the CPU 1 with the fewest task processing times, each CPU 1 can be used uniformly and the load can be distributed.

【0037】図7はCPUの動作を示すフローチャート
である。CPUは、バス要求を出すと(S1)、バス
(プロセッサバス)を獲得し(S2)、バスを介してデ
ータ転送を行なう(S3)。次に、データ転送が終了し
たら、CPUはバスを解放する(S4)。
FIG. 7 is a flowchart showing the operation of the CPU. When the CPU issues a bus request (S1), it acquires a bus (processor bus) (S2) and transfers data via the bus (S3). Next, when the data transfer is completed, the CPU releases the bus (S4).

【0038】ここで、割り込み応答を受けると(S
5)、タスクをスタートさせる(S6)。同時に、タス
ク処理時間を測定開始する(S7)。タスクが終了する
と(S8)、タスク処理時間測定が終了する(S9)。
CPUは、処理時間をカウントアップする(S10)。
次に、アービタ部が各CPUの処理時間収集要求を出す
と(S11)、各CPUのタスク処理時間を収集し、収
集応答を返す(S12)。アービタ部は、測定時間収集
を行なった後、判定部にて優先順位を判定し、IDセレ
クト信号X、Yを変更し(S13)、IDを変更する
(S14)。以上の処理が繰り返されることになる。
Here, when an interrupt response is received (S
5), start the task (S6). At the same time, measurement of the task processing time is started (S7). When the task ends (S8), the task processing time measurement ends (S9).
The CPU counts up the processing time (S10).
Next, when the arbiter unit issues a processing time collection request for each CPU (S11), it collects the task processing time of each CPU and returns a collection response (S12). After collecting the measurement time, the arbiter unit determines the priority in the determination unit, changes the ID select signals X and Y (S13), and changes the ID (S14). The above processing is repeated.

【0039】図8はアービタ部3の動作を示すフローチ
ャートである。アービタ部はバス要求を受けると(S
1)、バス調停を行なう(S2)。その後、数秒経過又
は1000回程度のバス獲得が行なわれた後(S3)、
全CPUより情報の転送を受ける(S5)。そして、判
定部で処理時間を再分析し(S6)、アービタよりID
セレクト信号X、Yを変更して出力する(S7)。
FIG. 8 is a flowchart showing the operation of the arbiter unit 3. When the arbiter receives the bus request (S
1) Perform bus arbitration (S2). Then, after several seconds or about 1000 bus acquisitions (S3),
Information transfer is received from all CPUs (S5). The processing time is re-analyzed by the determination unit (S6), and the
The select signals X and Y are changed and output (S7).

【0040】上述の実施の形態例では、パネルが4個プ
ロセッサバスに接続されている場合について説明した
が、本発明はこれに限るものではなく、任意の数のパネ
ルが接続されている場合についても同様に適用すること
ができる。
In the above embodiment, the case where four panels are connected to the processor bus has been described. However, the present invention is not limited to this, and the case where an arbitrary number of panels are connected is described. Can be similarly applied.

【0041】[0041]

【発明の効果】以上、詳細に説明したように、 (1)第1の発明によれば、複数のCPUがプロセッサ
バスを介して接続されたシステムにおいて、前記CPU
のバス使用権を調停するアービタ部と、CPUのバス使
用時間に応じたCPUの優先順位付けを変更する変更手
段とにより構成されてなることにより、CPU1のバス
使用時間が小さいものから順に優先順位を付けるため、
各CPU1を均一に使用することができ、負荷の分散を
図ることができる。
As described above in detail, (1) According to the first invention, in a system in which a plurality of CPUs are connected via a processor bus,
Arbiter section for arbitrating the bus use right of the CPU 1 and changing means for changing the prioritization of the CPU according to the bus use time of the CPU. To attach
Each CPU 1 can be used uniformly, and the load can be distributed.

【0042】(2)第2の発明によれば、複数のCPU
がプロセッサバスを介して接続されたシステムにおい
て、前記CPUのバス使用権を調停するアービタ部と、
処理タスク毎に番号を付け、その優先度に応じたCPU
の優先順位付けを変更する変更手段とにより構成されて
なることにより、処理タスク毎に優先度を付け、タスク
の大きいCPUはアービタ部の調停で処理回数を小さく
することができるので、各CPUを均一に使用すること
ができ、負荷の分散を図ることができる。
(2) According to the second invention, a plurality of CPUs
An arbiter unit for arbitrating the right to use the bus of the CPU in a system in which the CPU is connected via a processor bus;
A number is assigned to each processing task, and the CPU is assigned according to its priority.
And the changing means for changing the prioritization of the tasks, the priorities are assigned to the respective processing tasks, and the CPU with the larger task can reduce the number of processes by arbitration of the arbiter unit. It can be used uniformly, and the load can be distributed.

【0043】(3)この場合において、前記各CPUが
ローカルにタスク処理割合を測定する機能を持ち、アー
ビタ部3がタスク処理時間値を要求した時、各CPUよ
りアービタ部にその情報を送出し、その後、アービタ部
はタスク処理時間の最も短いCPU1或いはタスク処理
回数の最も少ないCPUに最優先番号を割り当て、それ
に伴いCPUの優先番号も変更することにより、タスク
処理時間の最も短いCPU、或いはタスク処理回数の最
も少ないCPUに最優先番号を割り当てることにより、
各CPUを均一に使用することができ、負荷の分散を図
ることができる。
(3) In this case, each of the CPUs has a function of locally measuring a task processing ratio, and when the arbiter unit 3 requests a task processing time value, the CPU sends the information to the arbiter unit. After that, the arbiter unit assigns the highest priority number to the CPU 1 with the shortest task processing time or the CPU with the fewest task processing times, and changes the priority number of the CPU accordingly. By assigning the highest priority number to the CPU with the fewest processing times,
Each CPU can be used uniformly, and the load can be distributed.

【0044】このように、本発明によれば、マルチCP
Uシステムにおける各CPUの使用率を均一化すること
により、CPUの負荷分散を行なうことができるマルチ
CPUシステムのバス調停システムを提供することがで
きる。
As described above, according to the present invention, the multi-CP
By equalizing the usage rate of each CPU in the U system, it is possible to provide a bus arbitration system of a multi-CPU system capable of distributing the load of the CPU.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】セレクト信号とCPUの優先順位との関係を示
す図である。
FIG. 2 is a diagram illustrating a relationship between a select signal and a CPU priority.

【図3】パネルの一実施の形態例を示すブロック図であ
る。
FIG. 3 is a block diagram showing one embodiment of a panel.

【図4】本発明の全体システムの構成例を示すブロック
図である。
FIG. 4 is a block diagram illustrating a configuration example of an entire system of the present invention.

【図5】アービタの一実施の形態例を示すブロック図で
ある。
FIG. 5 is a block diagram showing an embodiment of an arbiter.

【図6】タスクと処理回数の説明図である。FIG. 6 is an explanatory diagram of a task and the number of processes.

【図7】CPUの動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the CPU.

【図8】アービタの動作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of the arbiter.

【図9】従来システムの概念図である。FIG. 9 is a conceptual diagram of a conventional system.

【図10】CPUの処理時間の説明図である。FIG. 10 is an explanatory diagram of a processing time of a CPU.

【符号の説明】[Explanation of symbols]

1 CPU 2 プロセッサバス 3 アービタ 4 IDバス 1 CPU 2 Processor bus 3 Arbiter 4 ID bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のCPUがプロセッサバスを介して
接続されたシステムにおいて、 前記CPUのバス使用権を調停するアービタ部と、 CPUのバス使用時間に応じたCPUの優先順位付けを
変更する変更手段とにより構成されてなるマルチCPU
システムのバス調停システム。
1. A system in which a plurality of CPUs are connected via a processor bus, an arbiter for arbitrating the right to use the CPU, and a change for changing a priority of the CPU according to a bus use time of the CPU. CPU constituted by means
System bus arbitration system.
【請求項2】 複数のCPUがプロセッサバスを介して
接続されたシステムにおいて、 前記CPUのバス使用権を調停するアービタ部と、 処理タスク毎に番号を付け、その優先度に応じたCPU
の優先順位付けを変更する変更手段とにより構成されて
なるマルチCPUシステムのバス調停システム。
2. A system in which a plurality of CPUs are connected via a processor bus, an arbiter unit for arbitrating the right to use the CPU, a number assigned to each processing task, and a CPU corresponding to the priority.
A bus arbitration system for a multi-CPU system, comprising: a changing means for changing the priority order of the buses.
【請求項3】 前記各CPUがローカルにタスク処理割
合を測定する機能を持ち、アービタ部がタスク処理時間
値を要求した時、各CPUよりアービタ部にその情報を
送出し、その後、アービタ部はタスク処理時間の最も短
いCPU或いはタスク処理回数の最も少ないCPUに最
優先番号を割り当て、それに伴いCPUの優先番号も変
更することを特徴としている請求項1又は2の何れかに
記載のマルチCPUシステムのバス調停システム。
3. Each of the CPUs has a function of locally measuring a task processing ratio. When the arbiter requests a task processing time value, the CPU sends the information to the arbiter. 3. The multi-CPU system according to claim 1, wherein a highest priority number is assigned to a CPU having the shortest task processing time or a CPU having the fewest task processing times, and the priority number of the CPU is changed accordingly. Bus arbitration system.
JP10180151A 1998-06-26 1998-06-26 Bus arbitration system in multi-cpu system Withdrawn JP2000010934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10180151A JP2000010934A (en) 1998-06-26 1998-06-26 Bus arbitration system in multi-cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10180151A JP2000010934A (en) 1998-06-26 1998-06-26 Bus arbitration system in multi-cpu system

Publications (1)

Publication Number Publication Date
JP2000010934A true JP2000010934A (en) 2000-01-14

Family

ID=16078297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10180151A Withdrawn JP2000010934A (en) 1998-06-26 1998-06-26 Bus arbitration system in multi-cpu system

Country Status (1)

Country Link
JP (1) JP2000010934A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316711A (en) * 2004-04-28 2005-11-10 Mitsubishi Electric Corp Information processor
JP2007072598A (en) * 2005-09-05 2007-03-22 Fujifilm Corp Bus arbitration method and bus arbitration program
CN112579503A (en) * 2020-12-24 2021-03-30 广州五舟科技股份有限公司 Multi-core heterogeneous CPU bus arbitration method, bus arbiter and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316711A (en) * 2004-04-28 2005-11-10 Mitsubishi Electric Corp Information processor
JP4689189B2 (en) * 2004-04-28 2011-05-25 三菱電機株式会社 Information processing device
JP2007072598A (en) * 2005-09-05 2007-03-22 Fujifilm Corp Bus arbitration method and bus arbitration program
CN112579503A (en) * 2020-12-24 2021-03-30 广州五舟科技股份有限公司 Multi-core heterogeneous CPU bus arbitration method, bus arbiter and system
CN112579503B (en) * 2020-12-24 2022-04-08 广州五舟科技股份有限公司 Multi-core heterogeneous CPU bus arbitration method, bus arbiter and system

Similar Documents

Publication Publication Date Title
EP0318221B1 (en) Controlling responding by users of an intercommunications bus
EP0343770B1 (en) Multi-bus microcomputer system with bus arbitration
US7769936B2 (en) Data processing apparatus and method for arbitrating between messages routed over a communication channel
US4953081A (en) Least recently used arbiter with programmable high priority mode and performance monitor
US8140727B2 (en) Bus arbitration apparatus and method
JPH1055337A (en) Device and method for bus recovery of multi-master bus system
JPH02293959A (en) Interface apparatus
US20070067527A1 (en) Data transfer bus system connecting a plurality of bus masters
US7065595B2 (en) Method and apparatus for bus access allocation
KR0155269B1 (en) Bus arbitrating method and its apparatus
US20210243257A1 (en) Service request interrupt router for virtual interrupt service providers
US5038274A (en) Interrupt servicing and command acknowledgement system using distributed arbitration apparatus and shared bus
JP2000010934A (en) Bus arbitration system in multi-cpu system
JPH0727507B2 (en) Channel selection arbitration
US6889283B2 (en) Method and system to promote arbitration priority in a buffer queue
JP2000035954A (en) Multiprocessors and bus arbitration method therefor
JP3124544B2 (en) Bus controller
EP0372682A2 (en) System characterization method
JPS62259157A (en) Interruption system
JPS58217071A (en) Information processing system
JP3050131B2 (en) Arbitration method
JP2000201161A (en) Arbitration control circuit
JPH04178869A (en) Interruption control device for multiprocessor system and its interruption communication method
JPS58151661A (en) Memory device
JPS62197851A (en) Bus controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050906