JP2848681B2 - Exclusive control circuit of multiprocessor system - Google Patents

Exclusive control circuit of multiprocessor system

Info

Publication number
JP2848681B2
JP2848681B2 JP2248531A JP24853190A JP2848681B2 JP 2848681 B2 JP2848681 B2 JP 2848681B2 JP 2248531 A JP2248531 A JP 2248531A JP 24853190 A JP24853190 A JP 24853190A JP 2848681 B2 JP2848681 B2 JP 2848681B2
Authority
JP
Japan
Prior art keywords
exclusion
processor
acquisition
exclusive
acquisition request
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.)
Expired - Fee Related
Application number
JP2248531A
Other languages
Japanese (ja)
Other versions
JPH04127260A (en
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2248531A priority Critical patent/JP2848681B2/en
Publication of JPH04127260A publication Critical patent/JPH04127260A/en
Application granted granted Critical
Publication of JP2848681B2 publication Critical patent/JP2848681B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、マルチプロセッサシステムにおける排他制
御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial application field) The present invention relates to an exclusive control circuit in a multiprocessor system.

(従来の技術) 従来、マルチプロセッサシステムにおいてプロセッサ
間の排他を取得して処理を実行する手順は下記の通りで
ある。
(Prior Art) Conventionally, a procedure for acquiring exclusion between processors and executing a process in a multiprocessor system is as follows.

排他の取得を要求する処理を実行しようとするプロセ
ッサが排他を取得するための要求を行なう。
A processor that intends to execute a process for requesting exclusion issues a request for acquiring exclusion.

上記排他取得を行なったプロセッサは、要求が受け付
けられたことを確認したのち実行しようとした処理を開
始する。
After confirming that the request has been accepted, the processor that has performed the exclusion acquisition starts the process to be executed.

なお、要求が受け付けられない場合としては、次の場
合がある。
The case where the request is not accepted is as follows.

1)自分自身が以前に取得した排他が今だ解除されてい
ない場合。
1) Exclusivity previously acquired by the user has not been released yet.

2)他のプロセッサが済に排他を取得している場合。2) When another processor has already acquired exclusion.

3)自分より優先度の高いプロセッサが排他取得要求を
行なっている場合。
3) A processor having a higher priority than itself issues an exclusive acquisition request.

上記での処理が完了した時点でそのプロセッサは排
他を解除する。
When the above processing is completed, the processor releases the exclusion.

ここでにおける排他の解除は処理が完了した時点、
すなわち相手先の装置に対する要求がシステムバスに出
力されたのちに行なわれるため、システムバスの負荷が
上がると、相手先の装置に対する要求の出力が待たされ
てしまい、排他の解除も延ばされることになる。したが
っての1)で述べたような状況が発生してしまい、自
分自身で取得した排他が解除されるまで、次の排他の取
得要求は受け付けられなかった。
The release of exclusion here is when the process is completed,
That is, since the request for the destination device is issued after being output to the system bus, when the load on the system bus increases, the output of the request to the destination device is delayed, and the release of the exclusion is postponed. Become. Therefore, the situation as described in 1) occurs, and the next exclusion acquisition request is not accepted until the exclusion acquired by itself is released.

(発明が解決しようとする課題) 上述したように従来のマルチプロセッサシステムで
は、排他の解除は処理が完了した時点、すなわち相手先
の装置に対する要求がシステムバスに出力されたのちに
行なわれるため、システムバスの負荷が上がると、相手
先の装置に対する要求の出力が待たされてしまい、排他
の解除も延ばされることになる。このため、プロセッサ
が排他処理を行なうためには先に取得された排他が解除
されるのを待たなければなかった。
(Problems to be Solved by the Invention) As described above, in the conventional multiprocessor system, the release of the exclusion is performed when the processing is completed, that is, after the request for the partner device is output to the system bus. When the load on the system bus increases, the output of a request to the partner device is put on hold, and the release of exclusion is postponed. For this reason, in order for the processor to perform the exclusion process, it is necessary to wait for the exclusion acquired earlier to be released.

本発明は、このような従来の欠点を除去するためにな
されたもので、先に取得された排他が自プロセッサによ
り取得されたものであるならば、それが解除されること
を待つことなく次の排他処理を行なうことを可能とする
ことにより、処理の高速化を図るマルチプロセッサシス
テムの排他制御回路を提供することを目的とする。
The present invention has been made in order to eliminate such a conventional disadvantage. If the previously acquired exclusion is acquired by the own processor, the next exclusion is performed without waiting for the exclusion to be released. It is an object of the present invention to provide an exclusive control circuit of a multiprocessor system which can perform the exclusive processing of the multiprocessor system by increasing the processing speed.

[発明の構成] (課題を解決するための手段) 上記従来の目的を達成する本発明の排他制御回路は、
複数のプロセッサから構成されているマルチプロセッサ
システムにおいて、プロセッサがメモリアクセス,プロ
セッサ間通信,入出力処理等を実行する際、1つのプロ
セッサが独占的に処理を行なうためにプロセッサ間での
排他をとる排他制御手段と、自プロセッサが排他を取得
している最中に自プロセッサにより実行された排他取得
の要求数をカウントする排他取得要求カウンタと、前記
排他取得要求カウンタにカウントされた要求数がオーバ
ーフローした場合に自プロセッサが発した新たな要求の
受付けを禁止する排他取得要求禁止手段と、排他取得要
求カウンタに1つ以上の要求数がカウントされている場
合に排他の解除を禁止する排他解除禁止手段とを備えた
ことを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) An exclusive control circuit of the present invention that achieves the above-mentioned conventional object is as follows:
In a multiprocessor system composed of a plurality of processors, when a processor executes memory access, interprocessor communication, input / output processing, and the like, one processor takes exclusive control of the processor to perform processing exclusively. An exclusion control unit, an exclusion acquisition request counter for counting the number of exclusion acquisition requests executed by the own processor while the own processor is acquiring exclusion, and the number of requests counted in the exclusion acquisition request counter overflows. An exclusive acquisition request prohibition unit for inhibiting acceptance of a new request issued by the own processor in the event that the request has been issued, and an exclusion release inhibition for inhibiting release of exclusion when one or more requests are counted in the exclusion acquisition request counter. Means.

(作 用) 本発明では、先に取得された排他が自プロセッサによ
り取得されたものであるならば、それが解除されること
を待つことなく次の排他処理を行なうことが可能とな
る。
(Operation) In the present invention, if the previously acquired exclusion is acquired by the own processor, the next exclusion process can be performed without waiting for the exclusion to be released.

(実施例) 以下、本発明の実施例について図面を参照して詳細に
説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図に本発明を適用するマルチプロセッサシステム
の概要を示す。図において、システムバス100を介して
複数のプロセッサ200とメモリ300とチャネル400が接続
されており、各装置間のデータ転送はシステムバス100
を介して実行される。
FIG. 1 shows an outline of a multiprocessor system to which the present invention is applied. In the figure, a plurality of processors 200, a memory 300 and a channel 400 are connected via a system bus 100, and data transfer between the devices is performed by the system bus 100.
Run through.

第2図に本発明の一実施例による排他制御回路の構成
ブロック図を示す。
FIG. 2 is a block diagram showing the configuration of an exclusive control circuit according to one embodiment of the present invention.

本実施例による排他制御回路は、第1図に示したプロ
セッサ200に組込まれており、マイクロプログラム制御
部201と、デコーダ203と、バス取得制御部205と、排他
取得フリップフロップ208と、排他取得要求カウンタ209
を備える。また、301〜305はANDゲート、110はシステム
バス100の中の信号線であり、本信号線110がアクティブ
(0真値)であれば排他取得中であることを示す。121,
122,123もそれぞれシステムバス100中の信号線であり、
各プロセッサ200の排他取得要求信号(0真値)が送ら
れる。
The exclusive control circuit according to the present embodiment is incorporated in the processor 200 shown in FIG. 1, and includes a microprogram control unit 201, a decoder 203, a bus acquisition control unit 205, an exclusive acquisition flip-flop 208, and an exclusive acquisition Request counter 209
Is provided. Reference numerals 301 to 305 denote AND gates, and 110 denotes a signal line in the system bus 100. If the signal line 110 is active (true value of 0), it indicates that exclusive acquisition is being performed. 121,
122 and 123 are also signal lines in the system bus 100, respectively.
An exclusive acquisition request signal (0 true value) of each processor 200 is sent.

上記マイクロプログラム制御部201は、マイクロプロ
グラムのアドレス制御を行い、マイクロ命令202を出力
する。デコーダ203は、マイクロプログラム制御部201よ
り出力されたマイクロ命令202をデコードする。ここ
で、204は、排他取得要求信号(1真値)であり、反転
されて信号線121へ出力される。また、206は、排他解除
要求信号(1真値)であり、バス取得制御部205へ送ら
れる。207は、排他解除信号(1真値)であり、バス取
得制御部205より出力される。バス取得制御部205は、シ
ステムバス100の取得及びシステムバス100への情報転送
の制御を行う。排他取得フリップフロップ208は、自プ
ロセッサが排他を取得中である場合にセットされる。排
他取得要求カウンタ209は、排他取得フリップフロップ2
08がセット中に排他取得要求信号204がアクティブにな
った場合にカウントアップされる。
The microprogram control unit 201 controls a microprogram address and outputs a microinstruction 202. The decoder 203 decodes the micro instruction 202 output from the micro program control unit 201. Here, reference numeral 204 denotes an exclusive acquisition request signal (1 true value), which is inverted and output to the signal line 121. Reference numeral 206 denotes an exclusion release request signal (1 true value), which is sent to the bus acquisition control unit 205. Reference numeral 207 denotes an exclusion release signal (1 true value), which is output from the bus acquisition control unit 205. The bus acquisition control unit 205 controls acquisition of the system bus 100 and transfer of information to the system bus 100. The exclusion acquisition flip-flop 208 is set when the own processor is acquiring exclusion. The exclusive acquisition request counter 209 has an exclusive acquisition flip-flop 2
When the exclusive acquisition request signal 204 becomes active while 08 is set, the count is incremented.

また、210は排他取得要求カウンタ209のカウント数が
1以上の場合にアクティブとなる信号(1真値)、211
は排他取得要求カウンタ209のカウント数がオーバーフ
ローした場合にアクティブとなる信号(1真値)であ
る。
210 is a signal (1 true value) that becomes active when the count of the exclusion acquisition request counter 209 is 1 or more, 211
Is a signal (1 true value) that becomes active when the count of the exclusive acquisition request counter 209 overflows.

第1図に示すようなマルチプロセッサシステムにおい
て、あるプロセッサ200がメモリ300にアクセスする際
や、チャネル400との間で入出力処理を行なう際、また
他のプロセッサとの間でデータ転送を行なう場合に、相
手側の装置を独占的に使用したい場合がある。このため
にプロセッサ200間で排他をとるという制御が行なわれ
る。
In a multiprocessor system as shown in FIG. 1, when a certain processor 200 accesses the memory 300, performs input / output processing with the channel 400, and performs data transfer with another processor. In some cases, the user wants to use the other device exclusively. For this reason, control is exercised between the processors 200 to take exclusion.

第2図を用いて排他取得の制御について説明する。プ
ロセッサ200が排他を取得する場合、その実行はマイク
ロ命令202によって実現される。まずマイクロプログラ
ム制御部201から排他を取得するための要求を含んだマ
イクロ命令202が出力される。これがデコーダ203によっ
てデコードされ、排他取得要求信号204及びシステムバ
ス100上の信号線121がアクティブとなる。
Exclusive control will be described with reference to FIG. When the processor 200 acquires exclusion, its execution is realized by the microinstruction 202. First, a microinstruction 202 including a request for acquiring exclusion is output from the microprogram control unit 201. This is decoded by the decoder 203, and the exclusive acquisition request signal 204 and the signal line 121 on the system bus 100 become active.

このとき自プロセッサより優先度の高いプロセッサが
排他取得要求を行なっている場合(信号線122,123のい
ずれかがアクティブの場合)、またはすでに排他が取得
されている場合(信号線110がアクティブの場合)には
排他取得フリップフロップ208のセットが禁止される。
At this time, when a processor having a higher priority than the own processor has issued an exclusion acquisition request (when one of the signal lines 122 and 123 is active), or when exclusion has already been acquired (when the signal line 110 is active). The setting of the exclusive acquisition flip-flop 208 is prohibited.

排他取得フリップフロップ208の出力はANDゲート302
を介してマイクロプログラム制御部201に入力されてお
り、マイクロプログラム制御部201ではこの排他取得フ
リップフロップ208の出力がアクティブでなければ再び
排他を取得するための要求を含んだマイクロ命令202を
出力する。そして信号線110,122,123がアクティブでな
くなれば、排他取得フリップフロップ208がセットさ
れ、信号線110がアクティブとなり、プロセッサは排他
を取得できる。
The output of exclusive acquisition flip-flop 208 is AND gate 302
And the microprogram control unit 201 outputs a microinstruction 202 including a request to acquire exclusion again if the output of the exclusion acquisition flip-flop 208 is not active. . Then, when the signal lines 110, 122, 123 become inactive, the exclusion acquisition flip-flop 208 is set, the signal line 110 becomes active, and the processor can acquire exclusion.

また、マイクロプログラム制御部201は排他取得フリ
ップフロップ208がセットされたことによりマイクロプ
ログラムの処理を先に進める。
Also, the microprogram control unit 201 advances the processing of the microprogram by setting the exclusive acquisition flip-flop 208.

次に排他を解除する場合であるが、この場合もマイク
ロ命令202によって実現される。マイクロプログラム制
御部201からは排他を解除するための要求を含んだマイ
クロ命令202が出力される。これはデコーダ203によって
デコードされ、排他解除要求信号206がアクティブとな
り、バス取得制御部205へ送られる。
Next, the exclusion is released, which is also realized by the microinstruction 202. The microprogram control unit 201 outputs a microinstruction 202 including a request for releasing exclusion. This is decoded by the decoder 203, the exclusion release request signal 206 becomes active, and is sent to the bus acquisition control unit 205.

バス取得制御部205ではシステムバス100の取得制御を
行なっており、排他処理の対象である装置へのアクセス
をシステムバス100へ出力したのち、排他解除信号207を
アクティブとする。このとき排他取得要求カウンタ209
にカウントされている要求数が0であれば、排他解除信
号207はANDゲート304を介して排他取得フリップフロッ
プ208のリセット入力に入力され、排他取得フリップフ
ロップ208をリセットする。こうしてプロセッサは排他
の解除を行なう。
The bus acquisition control unit 205 controls acquisition of the system bus 100. After outputting an access to a device to be subjected to exclusion processing to the system bus 100, the exclusion release signal 207 is activated. At this time, the exclusive acquisition request counter 209
, The exclusive release signal 207 is input to the reset input of the exclusive acquisition flip-flop 208 via the AND gate 304, and resets the exclusive acquisition flip-flop 208. Thus, the processor releases the exclusion.

このように排他の解除は相手先への要求がシステムバ
ス100へ出力されたのちに実行されるため、システムバ
スの負荷が上がると待ちが発生してしまう。一方、これ
とは関係なくマイクロプログラムは処理を先に進めてい
るため次の排他取得要求を行なう場合がある。
Since the release of the exclusion is performed after the request to the other party is output to the system bus 100, a wait occurs when the load on the system bus increases. On the other hand, irrespective of this, since the microprogram advances the processing in advance, there is a case where the next exclusive acquisition request is made.

以下、このような場合の動作について説明する。 Hereinafter, the operation in such a case will be described.

以前に取得した排他は未だ解除されていないので排他
取得フリップフロップ208はセット状態である。ここ
で、排他取得要求信号204がアクティブになると排他取
得要求カウンタ209がカウントアップされる。排他取得
要求カウンタ209に1つ以上の要求数がカウントされて
いると信号210はアクティブとなるため、この状態で以
前に取得した排他を解除するために排他解除信号207が
アクティブとなっても、信号210により禁止される。よ
って、排紙取得フリップフロップ208はリセットされ
ず、代わりに排他取得要求カウンタ209がカウントダウ
される。
Since the previously acquired exclusion has not yet been released, the exclusion acquisition flip-flop 208 is in the set state. Here, when the exclusion acquisition request signal 204 becomes active, the exclusion acquisition request counter 209 is counted up. If one or more requests are counted in the exclusion acquisition request counter 209, the signal 210 becomes active. Therefore, even if the exclusion release signal 207 becomes active to release the exclusion previously acquired in this state, Inhibited by signal 210. Therefore, the paper ejection acquisition flip-flop 208 is not reset, and the exclusive acquisition request counter 209 is counted down instead.

こうしてプロセッサ200は、先に自プロセッサによっ
て取得した排他が解除されていない状態でも次の排他処
理を行なうことができる。
Thus, the processor 200 can perform the next exclusion process even in a state where the exclusion previously acquired by the own processor has not been released.

なお、排他取得要求カウンタ209がオーバーフローし
た場合には信号211がアクティブとなる。したがって、
排他取得フリップフロップ208の出力を信号211により禁
止してマイクロプログラム制御部201に送ることによ
り、マイクロプログラムの処理が先に進むことを防止し
ている。
When the exclusive acquisition request counter 209 overflows, the signal 211 becomes active. Therefore,
By prohibiting the output of the exclusion acquisition flip-flop 208 by the signal 211 and sending it to the microprogram control unit 201, the processing of the microprogram is prevented from proceeding further.

[発明の効果] 以上説明したように本発明のマルチプロセッサシステ
ムの排他制御回路によれば、先に取得された排他が自プ
ロセッサにより取得されたものであるならば、それが解
除されることを待つことなく次の排他処理を行なうこと
を可能とすることにより、処理の高速化が実現される。
[Effect of the Invention] As described above, according to the exclusive control circuit of the multiprocessor system of the present invention, if the previously acquired exclusion is acquired by the own processor, it is released. By allowing the next exclusion process to be performed without waiting, speeding up of the process is realized.

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

第1図は本発明を適用するマルチプロセッサシステムの
概要を示すブロック図、第2図は本発明の一実施例によ
る排他制御回路の構成ブロック図である。 100……システムバス、200……プロセッサ、201……マ
イクロプログラム制御部、202……マイクロ命令、203…
…デコーダ、204……排他取得要求信号、205……バス取
得制御部、206……排他解除要求信号、207……排他解除
信号、208……排他取得フリップフロップ、209……排他
取得要求カウンタ。
FIG. 1 is a block diagram showing an outline of a multiprocessor system to which the present invention is applied, and FIG. 2 is a block diagram showing the configuration of an exclusive control circuit according to an embodiment of the present invention. 100: System bus, 200: Processor, 201: Microprogram control unit, 202: Microinstruction, 203
... Decoder, 204... Exclusive acquisition request signal, 205... Bus acquisition control unit, 206... Exclusive release request signal, 207.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のプロセッサから構成されているマル
チプロセッサシステムにおいて、 プロセッサがメモリアクセス、プロセッサ間通信、入出
力処理等を実行する際、1つのプロセッサが独占的に処
理を行うためにプロセッサ間で排他をとる排他制御手段
と、 自プロセッサが排他を取得している最中に自プロセッサ
により実行された排他取得の要求数をカウントする排他
取得要求カウンタと、 前記排他取得要求カウンタによりカウントされた要求数
がオーバーフローした場合に自プロセッサが発した新た
な要求の受付を禁止する排他取得要求禁止手段と、 前記排他取得要求カウンタに1つ以上の要求数がカウン
トされている場合に排他の解除を禁止する排他解除禁止
手段と を備えたことを特徴とするマルチプロセッサシステムの
排他制御回路。
In a multiprocessor system comprising a plurality of processors, when a processor executes memory access, interprocessor communication, input / output processing, etc., a single processor performs processing exclusively. Exclusion control means for taking an exclusion, an exclusion acquisition request counter for counting the number of exclusion acquisition requests executed by the own processor while the own processor is acquiring the exclusion, and An exclusion acquisition request prohibition unit for inhibiting acceptance of a new request issued by the own processor when the number of requests overflows, and canceling exclusion when one or more requests are counted in the exclusion acquisition request counter. And a exclusion release prohibition means for prohibition. Circuit.
JP2248531A 1990-09-18 1990-09-18 Exclusive control circuit of multiprocessor system Expired - Fee Related JP2848681B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2248531A JP2848681B2 (en) 1990-09-18 1990-09-18 Exclusive control circuit of multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2248531A JP2848681B2 (en) 1990-09-18 1990-09-18 Exclusive control circuit of multiprocessor system

Publications (2)

Publication Number Publication Date
JPH04127260A JPH04127260A (en) 1992-04-28
JP2848681B2 true JP2848681B2 (en) 1999-01-20

Family

ID=17179574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2248531A Expired - Fee Related JP2848681B2 (en) 1990-09-18 1990-09-18 Exclusive control circuit of multiprocessor system

Country Status (1)

Country Link
JP (1) JP2848681B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6962717B2 (en) * 2017-06-15 2021-11-05 日本電気株式会社 Information processing equipment, information processing methods and information processing programs
KR20210034372A (en) * 2019-09-20 2021-03-30 주식회사 엘지화학 Apparatus and method for managing battery

Also Published As

Publication number Publication date
JPH04127260A (en) 1992-04-28

Similar Documents

Publication Publication Date Title
JPH0354375B2 (en)
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
US5233701A (en) System for managing interprocessor common memory
JP2539352B2 (en) Hierarchical multi-computer system
US4162529A (en) Interruption control system in a multiprocessing system
JP2848681B2 (en) Exclusive control circuit of multiprocessor system
US4344133A (en) Method for synchronizing hardware and software
JPS5925258B2 (en) processor control system
JP2010092101A (en) Information processor
JPS61250765A (en) Exclusive control system for multiprocessor system
JPH0348544B2 (en)
JPS6145348A (en) Bus priority control system
JPS6125249A (en) Exclusive control system
JPS58101360A (en) Data processor
JPS633328B2 (en)
JP2872042B2 (en) Shared memory access method
JP3187117B2 (en) One-chip microcomputer with built-in multiprocessor
JPH02166549A (en) Shared memory controller
JPS6234269A (en) Interruption control system
JPH0795276B2 (en) Information processing equipment
JPH02242363A (en) Shared resource control system
JP3365419B2 (en) Bus arbitration method
JPS5839344B2 (en) Multiprocessor system
JPS5840216B2 (en) Test and set method
JPH06250969A (en) Bus control method in multiprocessor system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees