JPH04332066A - Resource acquiring method for multiprocessor system - Google Patents

Resource acquiring method for multiprocessor system

Info

Publication number
JPH04332066A
JPH04332066A JP10114191A JP10114191A JPH04332066A JP H04332066 A JPH04332066 A JP H04332066A JP 10114191 A JP10114191 A JP 10114191A JP 10114191 A JP10114191 A JP 10114191A JP H04332066 A JPH04332066 A JP H04332066A
Authority
JP
Japan
Prior art keywords
register
byte register
processor system
circuit
request signal
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
JP10114191A
Other languages
Japanese (ja)
Inventor
Katsumi Hashimoto
橋本 克己
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP10114191A priority Critical patent/JPH04332066A/en
Publication of JPH04332066A publication Critical patent/JPH04332066A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily manage resources by adding a request signal receiving logical circuit to a device to be shared by plural processor systems and allowing a slave processor to acquire device using right without being managed by the master processor system. CONSTITUTION:The processor systems 1 to 4 use devices 5, 6 through a system bus 7. The request signal reception controlling logical circuit consisting of an I/O buffer 10, a register 11, etc., is arranged on a connecting position between the devices 5, 6 and the bus 7. When the system 2 uses the device 5 e.g. a device request signal is sent. When the device 5 clears a register 11 when the device 5 itself is not used. When the device request signal is written in the register 11, the register 11 is turned to a write inhibited state. The system 2 reads out the output of the register 11 through the I/O buffer 10, compares the read output with the device request signal, and when both the signals coincide with each other, the reception of the request is judged and operation is commanded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、マルチプロセッサシス
テムの各プロセッサシステムがシステムバスに接続され
た装置を共用する場合におけるマルチプロセッサシステ
ムの資源獲得方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a resource acquisition method for a multiprocessor system when each processor system in the multiprocessor system shares a device connected to a system bus.

【0002】0002

【従来の技術】従来、この種のマルチプロセッサシステ
ムの資源獲得方式では、1台のプロセッサシステムをマ
スタとして全ての資源管理を行うようにし、マスタ以外
のプロセッサシステムはスレーブとして動作し、各スレ
ーブプロセッサシステムは装置を使用するたびにプロセ
ッサ間通信によりマスタプロセッサシステムにその装置
の使用権の獲得を要求し、マスタプロセッサシステムか
ら装置の使用許可を受けてから装置の作用を開始してい
る。
2. Description of the Related Art Conventionally, in a resource acquisition method for this type of multiprocessor system, one processor system is used as a master to manage all resources, and processor systems other than the master operate as slaves, and each slave processor Each time the system uses a device, it requests the master processor system to acquire the right to use the device through inter-processor communication, and starts operating the device after receiving permission to use the device from the master processor system.

【0003】0003

【発明が解決しようとする課題】上述した従来のマルチ
プロセッサシステムの資源獲得方式では、マスタプロセ
ッサシステムは全ての資源管理を行う必要があるので、
その制御が複雑化して処理負荷が高くなるなどの欠点が
ある。
[Problems to be Solved by the Invention] In the conventional resource acquisition method of the multiprocessor system described above, the master processor system is required to manage all resources.
This method has drawbacks such as complicated control and increased processing load.

【0004】0004

【課題を解決するための手段】本発明の方式は、複数の
プロセッサシステムを接続したシステムバスへ前記プロ
セッサシステムからアクセス可能に接続した少くとも1
つの装置におのおの、各前記プロセッサシステムから読
み書き可能なバイトレジスタと、このバイトレジスタの
すべてのビットの出力値がゼロの場合にはこのレジスタ
への書き込みを許可しこの場合以外には書き込みを禁止
する論理回路とをもつ要求信号受付回路を設けてあり、
各前記プロセッサシステムは前記装置を使用する際に、
予め前記プロセッサシステム毎にビット単位で割り付け
た装置使用要求信号を作成して前記バイトレジスタに送
信したあと前記バイトレジスタの内容を読み出し、この
内容が自身の送信内容と一致したときにだけこの装置の
使用権を獲得したとみなして、アクセスを行い、この装
置は前記プロセッサシステムより要求された動作を終了
したときに前記バイトレジスタをクリアするように動作
手順を設定してある。
Means for Solving the Problems The system of the present invention provides at least one system bus connected to a system bus connecting a plurality of processor systems so as to be accessible from the processor system.
Each device has a byte register that can be read and written from and written to by each processor system, and if the output value of all bits of this byte register is zero, writing to this register is permitted, and writing is prohibited in other cases. A request signal reception circuit having a logic circuit is provided.
Each said processor system, when using said apparatus,
After creating a device use request signal allocated in bits for each processor system in advance and transmitting it to the byte register, the contents of the byte register are read, and only when this contents match the contents transmitted by the device itself, the device is activated. Access is made assuming that the usage right has been acquired, and the operating procedure is set such that the device clears the byte register when the operation requested by the processor system is completed.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0006】図1は本発明の一実施例のブロック図を示
す。参照符号1はマスタプロセッサシステム、2〜4は
スレーブプロセッサシステム、5、6は各プロセッサシ
ステム1〜4に共用される装置、7はシステムバスを示
す。マスタプロセッサシステム1は、システムバス7を
介してスレーブプロセッサシステム2〜4に対して、装
置5または6を使用して所定の動作を行うよう指示する
。スレーブプロセッサシステム2〜4は、マスタプロセ
ッサシステム1から指定された動作を行う過程に於て、
装置5または6を必要とするが、必要時に装置5または
6に対しシステムバス7を介して、装置使用権要求信号
を送出し、要求が受け付けられたのを確認したあと動作
を指示するデータを送出する。装置使用要求信号は、1
バイトのデータであり、予めビット対応に要求側のスレ
ーブプロセッサシステムの番号を示すように割当てがさ
れており、例えばスレーブプロセッサシステム2〜4の
番号には各々2ビット目〜4ビット目を割り当てておき
、要求がある場合には当該ビットのみを‘1’にする。 なお、スレーブプロセッサシステム2〜4の動作は非同
期であり、随時に装置5または6に対して要求を発する
FIG. 1 shows a block diagram of one embodiment of the present invention. Reference numeral 1 indicates a master processor system, 2 to 4 are slave processor systems, 5 and 6 are devices shared by each of the processor systems 1 to 4, and 7 is a system bus. Master processor system 1 instructs slave processor systems 2 to 4 via system bus 7 to use device 5 or 6 to perform a predetermined operation. In the process of performing operations specified by the master processor system 1, the slave processor systems 2 to 4
When necessary, a device use right request signal is sent to the device 5 or 6 via the system bus 7, and after confirming that the request has been accepted, data instructing the operation is sent to the device 5 or 6. Send. The device use request signal is 1
This is byte data, and the bits are assigned in advance to indicate the number of the requesting slave processor system. For example, the 2nd to 4th bits are assigned to slave processor system numbers 2 to 4, respectively. If there is a request, only the relevant bit is set to '1'. Note that the slave processor systems 2 to 4 operate asynchronously and issue requests to the device 5 or 6 at any time.

【0007】図2は、本実施例の装置5及び6のシステ
ムバス7との接続個所におのおの挿入接続されている要
求信号受付制御用論理回路の構成例を示す。例えば、ス
レーブプロセッサシステム2が装置5を使用する場合に
は、装置使用要求信号を作成しシステムバス7を介して
装置5の制御用論理回路に送出する。装置5では、レジ
スタ11を自装置が使用されていない場合にはクリアさ
れており、出力端Q0〜Q7の出力値はすべて‘0’に
なっている。この場合、レジスタ11の出力端Q0〜Q
7に入力端を接続してあるオア回路12の出力値は‘0
’になる。オア回路12の出力信号は禁止回路13の禁
止入力端に入力されており、禁止回路13のもう一方の
入力端に加えられるライト信号は出力禁止されずに通過
しレジスタ11に加えられる。スレーブプロセッサシス
テム2からの装置使用要求信号が書き込まれると、レジ
スタ11の出力データは{00100000}になる。 スレーブプロセッサシステム2は、システムバス7を介
してこのレジスタ11の出力内容を読み込み、自システ
ムで作成した装置使用権要求信号と比較し、同一であれ
ば要求が受け付けられたと判断して、次に装置5に対し
て動作を指示するデータを送出する。スレーブプロセッ
サシステム2から要求された動作を終了する迄の間に、
他のスレーブプロセッサシステムから装置5に対する要
求が発生した場合、そのスレーブプロセッサシステムは
装置使用権要求信号を装置5に送出するが、この時レジ
スタ11の出力は上記に示すようになっており、オア回
路12の出力値は‘1’となっているので、禁止回路1
3によりライト信号のレジスタ11への印加が禁止され
、そのスレーブプロセッサシステムから送出された装置
使用権要求信号はレジスタ11に書き込まれない。 その要求を出したスレーブプロセッサシステムはレジス
タ11の内容を読み込み、自システムから送出した装置
使用権要求信号と比較するが、この時読み込まれる内容
はスレーブプロセッサシステム2が書き込んだ装置使用
権要求信号であるため一致せず、要求は受け付けられな
かったと判断する。装置5では、スレーブプロセッサシ
ステム2より要求された動作を終了すると、動作完了を
スレーブプロセッサシスム2に通知するとともに、レジ
スタ11にリセット信号を与えて書き込み内容をクリア
する。
FIG. 2 shows an example of the structure of the request signal reception control logic circuits inserted and connected to the connection points of the devices 5 and 6 with the system bus 7 of this embodiment. For example, when the slave processor system 2 uses the device 5, a device use request signal is created and sent to the control logic circuit of the device 5 via the system bus 7. In the device 5, the register 11 is cleared when the device is not used, and the output values of the output terminals Q0 to Q7 are all '0'. In this case, the output terminals Q0 to Q of register 11
The output value of the OR circuit 12 whose input terminal is connected to 7 is '0'.
'become. The output signal of the OR circuit 12 is input to the inhibit input terminal of the inhibit circuit 13, and the write signal applied to the other input terminal of the inhibit circuit 13 passes through and is added to the register 11 without being output inhibited. When the device use request signal from the slave processor system 2 is written, the output data of the register 11 becomes {00100000}. The slave processor system 2 reads the output content of this register 11 via the system bus 7, compares it with the device usage right request signal created by its own system, and if it is the same, determines that the request has been accepted, and then Sends data instructing the device 5 to operate. Until the operation requested by slave processor system 2 is completed,
When a request is made to the device 5 from another slave processor system, that slave processor system sends a device usage right request signal to the device 5. At this time, the output of the register 11 is as shown above. Since the output value of circuit 12 is '1', prohibition circuit 1
3 prohibits the application of a write signal to the register 11, and the device use right request signal sent from the slave processor system is not written to the register 11. The slave processor system that issued the request reads the contents of register 11 and compares it with the device usage right request signal sent from its own system, but the content read at this time is the device usage right request signal written by slave processor system 2. Since there is a match, it is determined that the request was not accepted. When the device 5 completes the operation requested by the slave processor system 2, it notifies the slave processor system 2 of the completion of the operation and also provides a reset signal to the register 11 to clear the written contents.

【0008】[0008]

【発明の効果】以上説明したように本発明によれば、複
数のプロセッサシステムから共用される装置に要求信号
受付用の論理回路を付加することによって、マスタプロ
セッサシステムの管理によらずスレーブプロセッサが装
置使用権を獲得でき、マスタプロセッサシステムにおけ
る資源管理を容易にして処理負荷の軽減を図ることがで
きる。
As explained above, according to the present invention, by adding a logic circuit for receiving request signals to a device shared by a plurality of processor systems, slave processors can be operated without being controlled by a master processor system. It is possible to acquire the right to use the device, facilitate resource management in the master processor system, and reduce the processing load.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the invention.

【図2】図1の装置5、6に付加される要求信号受付回
路の回路図。
FIG. 2 is a circuit diagram of a request signal reception circuit added to devices 5 and 6 in FIG. 1;

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

1    マスタプロセッサシステム 2〜4    スレーブプロセッサシステム5、6  
  装置 7    システムバス 10    入出力バッファ 11    レジスタ 12    オア回路 13    禁止回路
1 Master processor system 2 to 4 Slave processor system 5, 6
Device 7 System bus 10 Input/output buffer 11 Register 12 OR circuit 13 Inhibition circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  複数のプロセッサシステムを接続した
システムバスへ前記プロセッサシステムからアクセス可
能に接続した少くとも1つの装置におのおの、各前記プ
ロセッサシステムから読み書き可能なバイトレジスタと
、このバイトレジスタのすべてのビットの出力値がゼロ
の場合にはこのレジスタへの書き込みを許可しこの場合
以外には書き込みを禁止する論理回路とをもつ要求信号
受付回路を設けてあり、各前記プロセッサシステムは前
記装置を使用する際に、予め前記プロセッサシステム毎
にビット単位で割り付けた装置使用要求信号を作成して
前記バイトレジスタに送信したあと前記バイトレジスタ
の内容を読み出し、この内容が自身の送信内容と一致し
たときにだけこの装置の使用権を獲得したとみなして、
アクセスを行い、この装置は前記プロセッサシステムよ
り要求された動作を終了したときに前記バイトレジスタ
をクリアするように動作手順を設定してあることを特徴
とするマルチプロセッサシステムの資源獲得方式。
1. At least one device connected to a system bus connecting a plurality of processor systems so as to be accessible from the processor system, each of which has a byte register that can be read and written by each processor system, and a byte register that can be read and written from each processor system, and a byte register that can be read and written from each processor system, and a byte register that can be read and written from each processor system. A request signal reception circuit is provided with a logic circuit that permits writing to this register when the output value of the bit is zero, and prohibits writing in other cases, and each of the processor systems uses the device. When doing so, create a device use request signal allocated in bits for each processor system in advance, send it to the byte register, read the contents of the byte register, and when the contents match the transmitted contents, Assuming that you have acquired the right to use this device,
A resource acquisition method for a multiprocessor system, characterized in that an operation procedure is set such that the byte register is cleared when the device accesses the byte register and completes the operation requested by the processor system.
【請求項2】  前記論理回路は、前記バイトレジスタ
の各出力ビットの論理和信号を出力するオア回路と、こ
のオア回路の出力信号を禁止入力端に印加してありまた
前記プロセッサシステムから送られてくる書き込み指示
用の信号をもう一方の入力端に印加してあり出力信号を
前記バイトレジスタの書き込み指示入力端に与える禁止
回路とを有している請求項1記載のマルチプロセッサシ
ステムの資源獲得方式。
2. The logic circuit includes an OR circuit that outputs a logical sum signal of each output bit of the byte register, and an output signal of the OR circuit applied to an inhibit input terminal, and an OR circuit that outputs a logical sum signal of each output bit of the byte register, and an output signal of the OR circuit that is applied to an inhibit input terminal. 2. The multiprocessor system according to claim 1, further comprising: a prohibition circuit which applies a write instruction signal to the other input terminal of the byte register and supplies an output signal to the write instruction input terminal of the byte register. method.
JP10114191A 1991-05-07 1991-05-07 Resource acquiring method for multiprocessor system Pending JPH04332066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10114191A JPH04332066A (en) 1991-05-07 1991-05-07 Resource acquiring method for multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10114191A JPH04332066A (en) 1991-05-07 1991-05-07 Resource acquiring method for multiprocessor system

Publications (1)

Publication Number Publication Date
JPH04332066A true JPH04332066A (en) 1992-11-19

Family

ID=14292808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10114191A Pending JPH04332066A (en) 1991-05-07 1991-05-07 Resource acquiring method for multiprocessor system

Country Status (1)

Country Link
JP (1) JPH04332066A (en)

Similar Documents

Publication Publication Date Title
US6986005B2 (en) Low latency lock for multiprocessor computer system
EP0464715B1 (en) Interlock queueing
US4237534A (en) Bus arbiter
KR930008039B1 (en) Bus master interface circuit with transparent preemption of a data transfer operation
US5093780A (en) Inter-processor transmission system having data link which automatically and periodically reads and writes the transfer data
US4282572A (en) Multiprocessor memory access system
US5548780A (en) Method for semaphore communication between incompatible bus locking architectures
US5263146A (en) Multiprocessor system including an exclusive access controller with lock request holding and grant circuits
US5241661A (en) DMA access arbitration device in which CPU can arbitrate on behalf of attachment having no arbiter
US4752872A (en) Arbitration device for latching only the highest priority request when the common resource is busy
JPH10143467A (en) Method and device for arbitrating bus ownership in data processing system
US20040019722A1 (en) Method and apparatus for multi-core on-chip semaphore
JPH04332066A (en) Resource acquiring method for multiprocessor system
WO1996003697A1 (en) Method for semaphore communication between incompatible bus locking architectures
US5398233A (en) Method of resetting coupled modules and system using the method
US6073200A (en) System having processor monitoring capability of an integrated circuits buried, internal bus for use with a plurality of internal masters and a method therefor
JP3415474B2 (en) Bus bridge arbitration method
JPS6280753A (en) Bus control system
JPS6162158A (en) Data delivering and receiving system
KR960007835B1 (en) Common memory access device for multi-processor
JPS6095678A (en) Multi-processor system
JPH0434187B2 (en)
JP2973227B2 (en) Exclusive control instruction execution method
JPH04545A (en) Communication control circuit
JPH0351017B2 (en)