JPH04205247A - Lock transfer system - Google Patents

Lock transfer system

Info

Publication number
JPH04205247A
JPH04205247A JP2329613A JP32961390A JPH04205247A JP H04205247 A JPH04205247 A JP H04205247A JP 2329613 A JP2329613 A JP 2329613A JP 32961390 A JP32961390 A JP 32961390A JP H04205247 A JPH04205247 A JP H04205247A
Authority
JP
Japan
Prior art keywords
bus
lock
system bus
transfer
access
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.)
Granted
Application number
JP2329613A
Other languages
Japanese (ja)
Other versions
JP2992621B2 (en
Inventor
Makoto Okazaki
眞 岡崎
Yuji Shibata
柴田 雄司
Masao Asai
浅井 將夫
Katsuyuki Okada
勝行 岡田
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
NTT Inc
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP2329613A priority Critical patent/JP2992621B2/en
Publication of JPH04205247A publication Critical patent/JPH04205247A/en
Application granted granted Critical
Publication of JP2992621B2 publication Critical patent/JP2992621B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To execute lock transfer without previously setting a throw-off mode to a non throw-off mode by providing a lock transfer control function having a specified function. CONSTITUTION:A lock transfer control function 4 is provided at a bus interface circuit BIF connecting a processor muP through a local bus 12. When a throw-off mode operating function 2 is effective and access received from the local bus 12 is caused by lock transfer, the lock transfer control function 4 transfers the access to a system bus 11 without releasing the local bus 12 when this access is received, and after the access of the system bus 11 is completed, the local bus 12 is released. Thus, the lock transfer can be executed without setting the throw-off mode to the non throw-off mode in advance.

Description

【発明の詳細な説明】 〔概要) バスインタフェース回路においてロック転送を行うため
のロック転送方式に関し、 バスインタフェース回路がつきはなしモードに設定され
ている状態で、ロック転送を行う場合に、非つきはなし
モードに予め設定することなしに、ロック転送を実行で
きるロック転送方式を提供することを目的とし、 各プロセッサがローカルバスを経て接続されたバスイン
タフェース回路を介してシステムバスに接続されるマル
チプロセッサシステムにおける各バスインタフェース回
路が、非つきはなしモード動作機能と、つきはなしモー
ド動作機能とを有するとともに、ローカルバスのロック
転送状態を検知してシステムバスヘロック転送を行う機
能を有する場合に、つきはなしモード機能が有効なとき
にローカルバスから受信したアクセスがロック転送テア
ルトきその受信時直ちにローカルバスヲ解放せずにアク
セスをシステムバスに転送しシステムバスのアクセスが
完了したのちにローカルバスを解放する機能を設けたこ
とによって構成する。
[Detailed Description of the Invention] [Summary] Regarding a lock transfer method for performing lock transfer in a bus interface circuit, when lock transfer is performed with the bus interface circuit set to a non-permanent mode, there is no non-permanent transfer. A multiprocessor system in which each processor is connected to a system bus through a bus interface circuit connected via a local bus. When each bus interface circuit in , has a function of non-permanent mode operation and a non-permanent mode operation function, as well as a function of detecting the lock transfer state of the local bus and performing lock transfer to the system bus, When the access received from the local bus is locked when the mode function is enabled, the access is transferred to the system bus without immediately releasing the local bus, and the local bus is released after the system bus access is completed. It is configured by providing functions.

〔産業上の利用分野〕[Industrial application field]

本発明は、システムバスとその配下にあるローカルバス
とのインタフェースを行う回路において、データ等のロ
ック転送を行うためのロック転送方式に関するものであ
る。
The present invention relates to a lock transfer method for performing lock transfer of data, etc. in a circuit that interfaces between a system bus and a local bus under the system bus.

共通メモリを有するマルチプロセッサシステムにおいて
は、共通資源の保護のために、排他制御を行う必要があ
るが、このような排他制御を実現する方法の一つに、テ
ストアンドセット制御(T&Sil1m)がある。
In a multiprocessor system with common memory, exclusive control must be performed to protect common resources, and one method for achieving such exclusive control is test and set control (T&Sil1m). .

T&5Il111fは、共通メモリの一部をキーとして
、共通資源の使用状態を格納しておき、共通資源を使用
するときはまずキーを読んで、使用中の場合は共通資源
を使用せず、未使用の場合はキーに使用中と書き込んだ
のちに使用することによって、共通資源の排他制御を行
う方法である。
The T&5Il111f stores the usage status of common resources using a part of the common memory as a key, and when using a common resource, it first reads the key, and if it is in use, it does not use the common resource and marks it as an unused resource. In this case, the common resource is exclusively controlled by writing the key as being in use and then using it.

しかしながら、T&5illi[においては、キーの読
み出しと書き込みの間に、他のプロセッサ等がキーを読
み出したり書き込んだりする可能性があるので、T&S
制御中は、ロック転送状態として、他のプロセッサ等が
キーに対してアクセスすることを制限する方法がとられ
ることがある。このよウナロック転送状態におけるアク
セスは、ロック転送と呼ばれる。
However, in T&5illi[, there is a possibility that another processor etc. may read or write the key between reading and writing of the key, so T&S
During control, a lock transfer state may be used to restrict access to the key by other processors. Access in this una-lock transfer state is called lock transfer.

また、高速に大量のデータを転送する場合には、複数の
アクセスを連続して行う必要があるが、アクセスごとに
バス・アービトレーションを行うシステムの場合には、
アクセスとアクセスの間に他のプロセッサ等が割り込ん
でバスを使用することがあるため、転送速度を保証する
ことができなくなる。そのため、これらのアクセスの間
は、ロック転送状態として、他のプロセッサ等のアクセ
スを制限することによって解決する方法がとられる。
Also, when transferring large amounts of data at high speed, it is necessary to perform multiple accesses in succession, but in the case of a system that performs bus arbitration for each access,
Since other processors may interrupt and use the bus between accesses, the transfer speed cannot be guaranteed. Therefore, during these accesses, a method of solving the problem is to set a lock transfer state and restrict access by other processors.

また、プロセッサがシステムバスを介して共通メモリに
対して書き込みを行う場合には、プロセッサがローカル
バスからバスインタフェース回路を経て書き込みを行う
が、この際のローカルバスの制御方法として、書き込み
完了までローカルバスを解放しない非つきはなしモード
と、バスインタフェース回路を介してシステムバスにラ
イトアクセスしたら、ローカルバスを解放するつきはな
しモードとがある。
Also, when a processor writes to the common memory via the system bus, the processor writes from the local bus via the bus interface circuit, but in this case, the local bus control method is to keep the local memory until the write is completed. There is a non-disable mode in which the bus is not released, and a non-disable mode in which the local bus is released after write access to the system bus via the bus interface circuit.

ロック転送方式においては、バスインタフェース回路が
つきはなしモードに設定されている状態で、ロック転送
を行う場合に、つきはなしモードを非つきはなしモード
に予め設定することなしに、ロック転送を実行できるこ
とが要望される。
In the lock transfer method, when lock transfer is performed while the bus interface circuit is set to non-disconnect mode, it is possible to perform lock transfer without setting the non-disconnect mode to non-disconnect mode in advance. requested.

〔従来の技術〕[Conventional technology]

第6図は、マルチプロセッサシステムの構成を例示した
ものである。
FIG. 6 illustrates the configuration of a multiprocessor system.

第6図においては、複数の中央処理装置CPU、。In FIG. 6, a plurality of central processing units CPU.

CP U 、、−、、CP Ullと、中央処理装置C
PU、。
CPU U, -, CP Ull and central processing unit C
P.U.

CPU、、−・−、CP Unが共通にアクセスできる
共通メモリCM、、CM、、−,CM、と、各中央処理
装置CPU、、CPUZ、・−、CPU、の共通メモリ
CM、、CM、、−,CM、に対するアクセスを調停す
るバスアービタBAとが、システムバス11を介して接
続されることが示されている。第6図に示される構成は
一般的なものであって、他に入出力(10)装置等が設
けられる場合もある。
A common memory CM, CM, , CM, which can be commonly accessed by the CPUs, , . ,−,CM, is shown connected via a system bus 11 to a bus arbiter BA that arbitrates access to. The configuration shown in FIG. 6 is a general one, and other input/output (10) devices and the like may be provided.

第7図は、各中央処理装置の構成を示したものであって
、CPU、lにおいて、マイクロプロセッサμP、1が
ローカルバス12を経てバスインタフェース回路BIF
、lに接続され、バスインタフェース回路BIF、lか
らシステムバス11に接続されることが示されている。
FIG. 7 shows the configuration of each central processing unit.
, l and is shown connected to the system bus 11 from the bus interface circuit BIF, l.

第8図は、バスインタフェース回路とバスアービタとの
接続を例示したものであって、各中央処理装置と共通メ
モリに属するバスインタフェース回路B I F、、 
B I Fz、、−、B I F、、、とバスアービタ
BAとが、それぞれ個別線のバス権要求信号であるリク
エスト信号RE Q r、 RE Qz、’−RE Q
イ。、と、バスマスタ通知信号であるアクノリジ信号A
CK、、ACKz、−ACK、□とを介して接続される
ことが示されている。バスアービタBAは、複数のバス
マスタ要求を調停する機能を行う。
FIG. 8 shows an example of the connection between the bus interface circuits and the bus arbiter, in which the bus interface circuits BIF, . . . belong to each central processing unit and the common memory.
BI Fz, -, B IF, , and the bus arbiter BA respectively send request signals RE Q r, RE Qz, '-RE Q, which are bus right request signals for individual lines.
stomach. , and an acknowledge signal A which is a bus master notification signal.
It is shown that they are connected via CK,,ACKz,-ACK,□. The bus arbiter BA performs the function of arbitrating between multiple bus master requests.

この場合におけるシステムバスの動作、すなわちシステ
ムバスの転送手順は、次の順序によって行われる。
The operation of the system bus in this case, that is, the transfer procedure of the system bus, is performed in the following order.

■ 中央処理装置CPUがリクエスト信号REQをアサ
ートし、バス権を要求する。
(2) The central processing unit CPU asserts the request signal REQ and requests the bus right.

■ バスアービタBAは、リクエスト信号REQに応じ
たアクノリジ信号ACKをアサートする。
(2) The bus arbiter BA asserts an acknowledge signal ACK in response to the request signal REQ.

■ 中央処理装置CPUは、アクノリジ信号ACKを受
信したらバスマスタとなり、リクエスト信号REQをネ
ゲートして、データの転送を開始する。データの転送期
間は、バスマスクがシステムバス上に、転送開始信号S
BSと、転送終了信号CPTとを各1サイクルアサート
することによって、通知する。
(2) When the central processing unit CPU receives the acknowledge signal ACK, it becomes the bus master, negates the request signal REQ, and starts data transfer. During the data transfer period, the bus mask sends a transfer start signal S to the system bus.
Notification is made by asserting BS and transfer end signal CPT for one cycle each.

■ バスアービタBAは、転送終了信号CPTを受信し
たとき、アクノリジ信号ACKをネゲートし、バス権の
終了を通知する。
(2) When the bus arbiter BA receives the transfer end signal CPT, it negates the acknowledge signal ACK and notifies the end of the bus right.

またローカルバスの動作は、次のようにして行われる。The local bus operates as follows.

■ マイクロプロセッサμPは、転送開始信号BSを1
サイクルアサートするとともに、アドレス等を出力する
■ The microprocessor μP sets the transfer start signal BS to 1.
It asserts the cycle and outputs the address, etc.

■ 転送開始信号BSを受信したとき、バスインタフェ
ース回路BIFは、つきはなしモードのときと、非つき
はなしモードのときとで、異なる動作を行う。
(2) When receiving the transfer start signal BS, the bus interface circuit BIF performs different operations depending on whether it is in the non-interactive mode or the non-interactive mode.

第9図は、非つきはなしモード時のバスインタフェース
回路の動作を説明するものであって、ライトアクセス時
のタイムチャートを示している。
FIG. 9 explains the operation of the bus interface circuit in the non-permanent mode, and shows a time chart during write access.

すなわちこの場合は、 ■ ローカルバスの転送開始信号BSを受信したとき、
バスインタフェース回路BIFは、システムバスに対し
て前述の手順により転送を行い、アンサ待ちとなる。
In other words, in this case, ■ When the local bus transfer start signal BS is received,
The bus interface circuit BIF performs the transfer to the system bus according to the procedure described above, and waits for an answer.

■ システムバスのスレーブ装置からアンサを受信する
と、アンサ待ち状態を解除し、ローカルバスの受信完了
信号D C(Data Complete)をアサート
して、転送処理を完了する。
(2) When an answer is received from a slave device on the system bus, the answer wait state is released, a reception completion signal DC (Data Complete) on the local bus is asserted, and the transfer process is completed.

第10図は、つきはなしモード時のバスインタフェース
回路の動作を説明するものである。すなわちこの場合は
、 ■ ローカルバスの転送開始信号BSを受信すると、バ
スインタフェース回路BIFは、直ちに受信完了信号D
Cをアサートするとともに、システムバスへ前記手順に
よって転送する。この場合、アンサ待ちは行わない。
FIG. 10 explains the operation of the bus interface circuit in the constant mode. In other words, in this case, ■ Upon receiving the local bus transfer start signal BS, the bus interface circuit BIF immediately sends the reception completion signal D.
C is asserted and transferred to the system bus according to the procedure described above. In this case, there is no waiting for an answer.

第11図は、システムバスのコマンドとアンサのフォー
マットを示したものである。
FIG. 11 shows the format of system bus commands and answers.

コマンドまたはアンサは、転送開始信号SBSがアサー
トされている間における、転送される先頭のデータであ
って、転送元ID、転送先ID。
The command or answer is the first data to be transferred while the transfer start signal SBS is asserted, and includes a transfer source ID and a transfer destination ID.

アンサの要、不要およびコマンドまたはアンサの別を示
している。
Indicates whether the answer is essential or unnecessary, and whether it is a command or an answer.

第12図は、バスインタフェース回路の構成を示したも
のであって、バッファ21.送信用FIFOメモリ22
.バッファ23,24.受信用FIFOメモリ25.バ
ッファ26.受信制御部27、FIFO@御部28.送
信制御部29.受信制御部30.  F I F011
J?11部31.送信制御部32を有することが示され
ている。
FIG. 12 shows the configuration of the bus interface circuit, in which the buffers 21 . Transmission FIFO memory 22
.. Buffers 23, 24 . Reception FIFO memory 25. Buffer 26. Reception control section 27, FIFO @ control section 28. Transmission control unit 29. Reception control unit 30. F I F011
J? Part 11 31. It is shown that it has a transmission control section 32.

送信データは、ローカルバスからバッファ21゜送信用
FIFOメモリ22、バッファ23を経て、システムバ
スに転送される。一方、受信データは、システムバスか
らバッファ24.受信用FIFOメモリ25.バッファ
26を経て、ローカルバ・ンファへ送られる。
Transmission data is transferred from the local bus to the system bus via a buffer 21, a transmission FIFO memory 22, and a buffer 23. On the other hand, the received data is transferred from the system bus to the buffer 24. Reception FIFO memory 25. The signal is sent to the local buffer via the buffer 26.

この際、受信制御部27はローカルバスからシステムバ
スへの送信データの受信判定を行い、FIFO制御部2
8はこの判定結果に基づいてバッファ21のアドレス、
データを送信用FIFOメモリ22に書き込む制御を行
う。送信制御部29は、FIFO制御部28の制御から
送信用FIFOメモリ22への書き込みを検知すると、
送信用FIFOメモリ22に書き込まれたアドレス、デ
ータを読み出してバッファ23を経てシステムバスへ送
出するように制御を行う。
At this time, the reception control unit 27 determines the reception of transmission data from the local bus to the system bus, and the FIFO control unit 2
8 is the address of the buffer 21 based on this determination result,
It controls writing data into the transmission FIFO memory 22. When the transmission control unit 29 detects writing to the transmission FIFO memory 22 under the control of the FIFO control unit 28,
Control is performed so that the address and data written in the transmission FIFO memory 22 are read out and sent to the system bus via the buffer 23.

また、受信制御部30はシステムバスからの受信データ
を受信すべきか否かを判定し、FIFO制御部31はこ
の判定結果に基づいてバッファ24のデータを受信用F
IFOメモリ25に書き込む制御を行う。送信制御部3
2は受信用FIFOメモリ25に書き込まれたデータを
読み出してバッファ26を経てローカルバスへ送出する
ように制御を行う。
Further, the reception control unit 30 determines whether or not to receive reception data from the system bus, and the FIFO control unit 31 transfers the data in the buffer 24 to the reception F.
Controls writing to the IFO memory 25. Transmission control section 3
2 performs control so that the data written in the reception FIFO memory 25 is read out and sent to the local bus via the buffer 26.

第13図は、ローカルバスの受信制御部27の構成を示
したものであって、受信判定部35.入力アドレス制御
部36.入力済表示制御部37゜DCIJm部38を有
することが示されている。
FIG. 13 shows the configuration of the local bus reception control section 27, in which the reception determination section 35. Input address control section 36. It is shown that the input display control section 37 has a DCIJm section 38.

受信制御部27においては、ローカルバスから転送開始
信号BSを受信し、受信判定部35の出力が受信を示す
とき、入力アドレス制御部36からFIFO制御部28
に対して、送信用FIFOメモリ22のアドレスを更新
する信号をアサートし、入力済表示部37によって、F
IFO制御部28に対して入力済を表示する信号をアサ
ートする。
The reception control unit 27 receives the transfer start signal BS from the local bus, and when the output of the reception determination unit 35 indicates reception, the reception control unit 27 receives the transfer start signal BS from the input address control unit 36 to the FIFO control unit 28.
, a signal for updating the address of the transmission FIFO memory 22 is asserted, and the input completion display section 37 indicates that the F
A signal indicating that the input has been completed is asserted to the IFO control unit 28.

DC制御部38は、つきはなしモードのときは直ちにロ
ーカルバスへ受信完了信号DCをアサートし、アンサネ
要信号をFIFOII1111部28に出力する。また
、非つきはなしモードのときは、受信完了信号DCをア
サートせず、アンサ要信号をFIFO制御部28に出力
する。
The DC control unit 38 immediately asserts the reception completion signal DC to the local bus when in the no call mode, and outputs the answer request signal to the FIFO II 1111 unit 28. Further, in the non-talking mode, the reception completion signal DC is not asserted, and the answer request signal is output to the FIFO control unit 28.

第14図は、従来のDC制御部38の構成を示したもの
である。
FIG. 14 shows the configuration of a conventional DC control section 38.

つきはなしレジスタ41は、つきはなし状態のときセッ
トされる。アンド回路42において、つきはなしレジス
タ41の出力と、ライトアクセス条件(リードライト信
号RW=“0”)との論理積を求め、さらにアンド回路
43において、アンド回路42の出力と受信判定部35
における受信判定結果との論理積を求めた結果が°“1
″゛のとき、つきはなしライトの状態と判定する。
The no-mark register 41 is set in the no-mark state. The AND circuit 42 calculates the logical product of the output of the unmarked register 41 and the write access condition (read/write signal RW="0"), and the AND circuit 43 calculates the logical product of the output of the AND circuit 42 and the reception determination section 35.
The result of calculating the logical product with the reception judgment result is °“1
When ``'', it is determined that the light is in a continuous light state.

このとき、アンド回路45によって、ローカルバスの転
送開始信号BSをフリップフロツプ(FF)44を介し
て同期をとった信号と、つきはなしライトの判定結果と
の論理積を求めて、これによってフリップフロップ(F
F)46を経て受信完了信号DCをアサートする。従っ
て、突き放し状態でな(、つきはなしレジスタ41が“
0”のときは、ローカルバスの転送開始信号BSによっ
ては、受信完了信号DCがアサートされない。
At this time, the AND circuit 45 calculates the logical product of the signal synchronized with the transfer start signal BS of the local bus via the flip-flop (FF) 44 and the determination result of the write without interruption. F
F) Assert the reception completion signal DC via 46. Therefore, in the release state (, the release register 41 is “
0'', the reception completion signal DC is not asserted depending on the transfer start signal BS of the local bus.

アンサを受信してから、ローカルバスを解放するときは
、送信制御部29からの信号によって、オア回路47を
経て受信完了信号DCがアサートされる。
When releasing the local bus after receiving the answer, a reception completion signal DC is asserted via the OR circuit 47 in response to a signal from the transmission control section 29.

第15図は、FIFO制御部28の構成を示したもので
あって、送信用FIFOメモリ22に対するFIFO制
御部28の構成を示し、入力アドレス部51.出力アド
レス部52.キューバッファ(1)53.  キューバ
ッファ(2) 54 、 キューバッファ(3) 55
 、入力済表示部56.出力法表示部57゜不一致検出
部58.一致検出部59を有することが示されている。
FIG. 15 shows the structure of the FIFO control section 28, and shows the structure of the FIFO control section 28 for the transmission FIFO memory 22, and shows the structure of the FIFO control section 28 for the input address section 51. Output address section 52. Queue buffer (1)53. Queue buffer (2) 54, Queue buffer (3) 55
, input completed display section 56. Output method display section 57° mismatch detection section 58. It is shown that it has a match detection section 59.

入力アドレス部51はカウンタからなり、受信制御部2
7から更新信号が入力されるごとに「+1」することに
よって、送信用FIFOメモリ22の書き込みアドレス
を示す。また、出力アドレス部52はカウンタからなり
、受信制御部29から更新信号が入力されるごとに「+
1」することによって、送信用FIFOメモリ22の読
み出しアドレスを示す。
The input address section 51 consists of a counter, and the reception control section 2
Each time an update signal is input from 7, it is incremented by "+1" to indicate the write address of the transmission FIFO memory 22. The output address section 52 is composed of a counter, and each time an update signal is input from the reception control section 29, "+
1'' indicates the read address of the transmission FIFO memory 22.

キューバッファ(1)53は、送信用FIFOメモTJ
 22に最後に書き込まれた入力アドレスに1を加えた
アドレスを記録している。キューバッファ(2)54は
、受信制御部27からのアンサ要/不要の情報を記録し
ている。キューバッファ(3)55は、ローカルバスの
ロック状態を記録している。
The queue buffer (1) 53 is a FIFO memory TJ for transmission.
The address obtained by adding 1 to the last input address written in 22 is recorded. The queue buffer (2) 54 records information on whether or not an answer is required from the reception control unit 27. The queue buffer (3) 55 records the lock state of the local bus.

入力済表示部56はカウンタからなり、ローカルバスか
ら受信するごとに「+1」されて、送信用FIFOメモ
リ22に書き込みを済ませたことを表示する。出力法表
示部57はカウンタからなり、システムバスに転送する
ごとに「+1jされて、送信用FIFOメモリ22から
読み出しを済ませたことを表示する。
The input completion display section 56 consists of a counter, and is incremented by "+1" each time data is received from the local bus, indicating that the data has been written to the transmission FIFO memory 22. The output method display section 57 consists of a counter, and is incremented by 1j every time data is transferred to the system bus, indicating that reading from the transmission FIFO memory 22 has been completed.

キューバッファ(1)53〜キユーバツフア(3)55
の書き込み、読み出しは、人力表示部56および出力表
示部57のカウンタ値に対応して行われる。
Queue buffer (1) 53 to queue buffer (3) 55
Writing and reading are performed in accordance with the counter values of the manual display section 56 and the output display section 57.

送信用FIFOメモリ22の動作は、次のようにして行
われる。
The transmission FIFO memory 22 operates as follows.

■ 受信制御部27から、人力アドレス更新信号を受信
すると、送信用FIFOメモリ22ヘライトイネーブル
信号WEをアサートするとともに、入力アドレス部51
の値を更新する。
■ When a manual address update signal is received from the reception control unit 27, the transmission FIFO memory 22 asserts the write enable signal WE, and the input address unit 51
Update the value of

■ キューバッファ(1)53〜キユーバツフア(3)
55に所定の情報を記録する。
■ Queue buffer (1) 53 ~ Queue buffer (3)
Predetermined information is recorded in 55.

■ 入力済表示部56のカウンタをr+IJL、入力済
とする。
(2) Set the counter on the input completion display section 56 to r+IJL, indicating that the input has been completed.

■ 不一致検出部58で入力済表示部56のカウンタ値
と、出力法表示部57のカウンタ値とを比較し、入力済
表示部56の値の方が大きい場合(一致していないとき
)は、転送すべきものがあることを示しているので、こ
の情報を送信制御部29へ送る。
■ The mismatch detection section 58 compares the counter value of the input display section 56 and the counter value of the output method display section 57, and if the value of the input display section 56 is larger (when they do not match), Since this indicates that there is something to be transferred, this information is sent to the transmission control section 29.

■ 出力法表示部57のカウンタ値が示す送信用FIF
Oメモリ22からの読み出し数の情報を、送信制御部2
9へ送るとともに、一致検出部59で出力アドレス部5
2のカウンタ値とキューバッファ(1)53の値とを比
較して、比較結果の情報を送信制御部29へ送る。
■ Transmission FIF indicated by the counter value of the output method display section 57
The information on the number of reads from the O memory 22 is sent to the transmission control unit 2.
At the same time, the match detection unit 59 sends the address to the output address unit 5.
The counter value of No. 2 is compared with the value of the queue buffer (1) 53, and information on the comparison result is sent to the transmission control section 29.

■ 送信制御部29は、出力アドレスとキューバッファ
(1)53の値とが一致するまで、送信用FIFOメモ
リ22を読み出し、システムバスへ転送する。
(2) The transmission control unit 29 reads the transmission FIFO memory 22 until the output address and the value of the queue buffer (1) 53 match, and transfers it to the system bus.

■ 送信制御部29は転送が終了すると、出力法表示部
57のカウンタ値を「+l」する。これによって、入力
済表示部56の値と、出力法表示部57の値が一致し、
転送済となる。
(2) When the transmission is completed, the transmission control unit 29 increments the counter value of the output method display unit 57 by “+l”. As a result, the value in the input display section 56 and the value in the output method display section 57 match,
Transferred.

第16図は、送信制mm29の構成を示したものであっ
て、送信用FIFO制御部28に対する送信制御部29
の構成を示し、REQ制御部61゜SBS![1部62
.CPT@御部63.転送中表承部64.ロック線制御
部65を有することが示されている。
FIG. 16 shows the configuration of the transmission control mm 29, and shows the transmission control section 29 for the transmission FIFO control section 28.
The configuration of the REQ control unit 61°SBS! [Part 1 62
.. CPT@Obe63. Transferring representation part 64. It is shown that it has a lock line control section 65.

送信制御部29の動作は次のようにして行われる。The operation of the transmission control section 29 is performed as follows.

■ FIFOl#Im部28において、不一致検出部5
8で入力済表示部56.出力済表示部57の値の一致が
とれないことを示す情報がREQ制御部61へ送られる
と、REQ制御部61はシステムバスにリクエスト信号
REQをアサートする。
■ In the FIFOl#Im section 28, the mismatch detection section 5
8, the inputted display section 56. When information indicating that the values in the output display section 57 do not match is sent to the REQ control section 61, the REQ control section 61 asserts a request signal REQ to the system bus.

■ システムバスを介してバスアービタBAからアクノ
リジ信号ACKを受信すると、リクエスト信号REQを
ネゲートして、転送を開始する。
(2) Upon receiving the acknowledge signal ACK from the bus arbiter BA via the system bus, it negates the request signal REQ and starts transfer.

■ アクノリジ信号ACKを受信中は、バスインタフェ
ース回路BIFがバスマスタであることを示しているの
で、バッファ23を開く。またSBS制御部62では、
アクノリジ信号ACKの立ち上がりから、転送開始信号
SBSをアサートする。
(2) While receiving the acknowledge signal ACK, it indicates that the bus interface circuit BIF is the bus master, so the buffer 23 is opened. Further, in the SBS control unit 62,
The transfer start signal SBS is asserted from the rise of the acknowledge signal ACK.

■ 転送を開始すると、FIFO制御部28へ出力アド
レス更新信号を送り、送信用FIFOメモリ22を順に
読み出して、システムバスに転送する。
(2) When the transfer starts, an output address update signal is sent to the FIFO control unit 28, and the transmission FIFO memory 22 is sequentially read out and transferred to the system bus.

■ 一致検出部59において、FIFO制御部28のキ
ューバッファ(1)53の値と出力アドレスとの一致が
検出されたときは、読み出すデータがないので、CPT
制御部63によって、システムバスへ出力完了を示す転
送終了信号CPTをアサートして、システムバスを終了
させる。また転送終了信号CPTをFIF○制御部28
へ送り、出力済表示部57のカウンタを「+1」するこ
とによって、バスインタフェース回路BIF内部制御も
出力済となる。
■ When the match detection unit 59 detects a match between the value of the queue buffer (1) 53 of the FIFO control unit 28 and the output address, there is no data to read, so the CPT
The control unit 63 asserts a transfer end signal CPT indicating completion of output to the system bus, thereby terminating the system bus. In addition, the transfer end signal CPT is sent to the FIF○ control unit 28.
By sending the signal to the bus interface circuit BIF and incrementing the counter of the output display section 57 by 1, the internal control of the bus interface circuit BIF is also output.

■ なおこのとき、ロック線制御部65は、キューバッ
ファ(3)55にロック情報が記録されているので、ア
クノリジ信号ACKを受信したとき、システムバスのロ
ック信号5LOCをアサートしている。
(2) At this time, since the lock information is recorded in the queue buffer (3) 55, the lock line control unit 65 asserts the system bus lock signal 5LOC when receiving the acknowledge signal ACK.

第17図は、従来のロック線制御部65の構成を示した
ものである。
FIG. 17 shows the configuration of a conventional lock line control section 65.

システムバスからアクノリジ信号ACKを受信して、バ
スインタフェース回路BIFがシステムバスのバスマス
タになるときであって、キューバッファ(3)55の値
がロック転送を示しているときは、アンド回路71でア
クノリジ信号ACKとキューバッファ(3)55の出力
値の論理積を求め、オア回路72でこれとシステムバス
のロック信号LOCと論理和を求め、アンド回路73で
この出力とローカルバスのロック信号LOGとの論理積
をとった値をフリップフロップ(FF)で同期をとった
のち、その出力をシステムバスのロック信号5LOCと
して出力する。
When the bus interface circuit BIF receives an acknowledge signal ACK from the system bus and becomes the bus master of the system bus, and the value of the queue buffer (3) 55 indicates lock transfer, the AND circuit 71 outputs an acknowledge signal. The logical product of the signal ACK and the output value of the queue buffer (3) 55 is calculated, the OR circuit 72 calculates the logical sum of this and the system bus lock signal LOC, and the AND circuit 73 calculates the logical product of this output and the local bus lock signal LOG. After synchronizing the ANDed value using a flip-flop (FF), the output is outputted as a system bus lock signal 5LOC.

従って、ローカルバスのロック信号LOCをネゲートし
たときは、システムバスのロック信号5LOCもネゲー
トされる。
Therefore, when the local bus lock signal LOC is negated, the system bus lock signal 5LOC is also negated.

このように、各プロセッサがローカルバスからバスイン
タフェース回路を介してシステムバスに接続されるマル
チプロセッサシステムにおいて、バスインタフェース回
路は、ローカルバスからアクセスを受信したのちシステ
ムバスへ転送し、システムバスのアクセスが完了したの
ち、ローカルバスを解放する。
In this way, in a multiprocessor system in which each processor is connected to the system bus from the local bus via the bus interface circuit, the bus interface circuit receives accesses from the local bus, transfers them to the system bus, and processes system bus accesses. Once completed, the local bus is released.

従来、この場合におけるバスインタフェース回路の動作
は、ローカルバスからロック転送アクセスを受信した場
合には、システムバスへ転送するときに、システムバス
をロック状態とし、ローカルバスのロック状態が解放さ
れたときに、システムバスのロック転送状態を解放する
ことによって、ロック転送を行うものであった。
Conventionally, the operation of the bus interface circuit in this case is that when a lock transfer access is received from the local bus, the system bus is locked when transferring to the system bus, and when the local bus is released from the lock state, the bus interface circuit locks the system bus. First, lock transfer was performed by releasing the lock transfer state of the system bus.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、ローカルバスからアクセスを受信したの
ち、直ちにローカルバスを解放するつきはなしモードを
有するバスインタフェース回路の場合、システムバスへ
転送される以前に、ローカルバスが解放され、ローカル
バスのロック転送状態が解放され、従っtシステムバス
のロック転送状態を解放する可能性があるため、ロック
転送を行うことができないという問題があった。
However, in the case of a bus interface circuit that has a never-before-seen mode that releases the local bus immediately after receiving an access from the local bus, the local bus is released and the locked transfer state of the local bus is changed before the access is transferred to the system bus. There is a problem in that lock transfer cannot be performed because there is a possibility that the lock transfer state of the system bus is released.

従って、バスインタフェース回路がつきはなしモードに
設定されているときに、ロック転送を行う場合には、ま
ず始めにバスインタフェース回路を非つきはなしモード
に設定し、次にロック転送を行い、ロック転送が完了し
たのち、再びバスインタフェース回路をつきはなしモー
ドに設定する必要があった。
Therefore, if you want to perform a lock transfer when the bus interface circuit is set to the non-display mode, first set the bus interface circuit to the non-display mode, then perform the lock transfer, and then the lock transfer will be performed. Once completed, it was necessary to set the bus interface circuit to silent mode again.

本発明はこのような従来技術の課題を解決しようとする
ものであって、各プロセッサがバスインタフェース回路
を介してシステムバスに接続されるマルチプロセッサシ
ステムのバスインタフェース回路において、バスインタ
フェース回路がつきはなしモードに設定されている状態
で、ロック転送を行う場合に、つきはなしモードを非つ
きはなしモードに予め設定することなしに、ロック転送
を実行できるロック転送方式を提供することを目的とし
ている。
The present invention aims to solve the problems of the prior art, and is to provide a bus interface circuit for a multiprocessor system in which each processor is connected to a system bus via a bus interface circuit, in which the bus interface circuit is connected to the system bus. To provide a lock transfer method capable of executing lock transfer without previously setting a talk mode to a non-talk mode when lock transfer is performed in a state where the talk mode is set.

〔課題を解決するための手段〕[Means to solve the problem]

第1図(a)、 (b)は、本発明の原理的構成を示し
たものである。
FIGS. 1(a) and 1(b) show the basic structure of the present invention.

本発明は第1図(a)にその原理的構成を示すように、
プロセッサμPがローカルバス12を経て接続されたバ
スインタフェース回路BIFを介してシステムバス11
に接続されるマルチプロセッサシステムにおける各バス
インタフェース回路BIFが、非つきはなしモード動作
機能1によって、ローカルバス12から受信したアクセ
スをシステムバス11へ転送しシステムバス11のアク
セスカ完了シたときローカルバス12を解放し、つきは
なしモード動作機能2によって、ローカルバス12から
アクセスを受信したとき直ちにローカルバス12を解放
したのちこのアクセスをシステムバス11へ転送すると
ともに、システムバスロツタ転送機能3によって、ロー
カルバス12がロック転送状態にされたときこれを検知
してシステムバス11へロック転送を行う場合に、ロッ
ク転送制御機能4を設けて、つきはなしモード動作機能
2が有効なときにローカルバス12から受信したアクセ
スがロック転送によるものであるときこのアクセスの受
信時ローカルバス12を解放することなくアクセスをシ
ステム;イス11に転送しシステムバス11のアクセス
が完了したのちにローカルバス12を解放するようにし
たものである。
As shown in FIG. 1(a), the basic structure of the present invention is as follows:
Processor μP connects to system bus 11 via bus interface circuit BIF connected via local bus 12.
Each bus interface circuit BIF in the multiprocessor system connected to When an access is received from the local bus 12, the disconnection mode operation function 2 immediately releases the local bus 12 and transfers this access to the system bus 11. When detecting when the bus 12 is in the lock transfer state and performing lock transfer to the system bus 11, a lock transfer control function 4 is provided, and when the lock transfer function 2 is enabled, the lock transfer control function 4 is provided. When the received access is due to lock transfer, the access is transferred to the system chair 11 without releasing the local bus 12 upon receiving this access, and the local bus 12 is released after the access to the system bus 11 is completed. This is what I did.

また本発明は第1図(ハ)にその原理的構成を示すよう
に、プロセッサμPがローカルバス12を経て接続され
たバスインタフェース回路BIFを介してシステムバス
11に接続されるマルチプロセッサシステムにおける各
バスインタフェース回路BIFが、非つきはなしモード
動作機能1によって、ローカルバス12から受信したア
クセスをシステムバス11へ転送しシステムバス11の
アクセスが完了したときローカルバス12を解放し、つ
きはなしモード動作機能2によって、ローカルバス12
からアクセスを受信したとき直ちにローカルバス12を
解放したのちこのアクセスをシステムバス11へ転送す
るとともに、システムバスロツタ転送機能3によって、
ローカルバス12がロック転送状態にされたときこれを
検知してシステムバス11ヘロツク転送を行う場合に、
ロック転送完了検出機能5を設けて、ローカルバス12
のロック転送が完了したことを検知し、ロック転送終結
機能6を設けて、ロック転送の完了を検知したのちシス
テムバス11のアクセスが完了したときシステムバス1
1のロック状態を終了させるようにしたものである。
Further, as shown in FIG. 1(C), the present invention is applicable to each processor in a multiprocessor system in which a processor μP is connected to a system bus 11 via a bus interface circuit BIF connected via a local bus 12. The bus interface circuit BIF transfers the access received from the local bus 12 to the system bus 11 by the non-disconnect mode operation function 1, releases the local bus 12 when the access to the system bus 11 is completed, and performs the non-disconnect mode operation function. Local bus 12 by 2
When an access is received from the local bus 12, the local bus 12 is immediately released and the access is transferred to the system bus 11, and the system bus rotor transfer function 3
When detecting when the local bus 12 is in a lock transfer state and performing lock transfer to the system bus 11,
A lock transfer completion detection function 5 is provided, and the local bus 12
A lock transfer termination function 6 is provided, and when the access to the system bus 11 is completed after detecting the completion of the lock transfer, the system bus 1
This is to terminate the locked state of 1.

〔作用〕[Effect]

プロセッサがローカルバスを経て接続されたバスインタ
フェース回路を介してシステムバスに接続されるマルチ
プロセッサシステムの各バスインタフェース回路が、非
つきはなしモードで、ローカルバスから受信したアクセ
スをシステムバスへ転送してシステムバスのアクセスが
完了したときローカルバスを解放し、つきはなしモード
で、ローカルバスからアクセスを受信したとき直ちにロ
ーカルバスを解放したのち、このアクセスをシステムバ
スへ転送するとともに、ローカルバスがロック転送状態
にされたときこれを検知してシステムバスヘロック転送
を行うようになっている場合に、つきはなしモード時に
、ローカルバスから受信したアクセスがロック転送によ
るものであるとき、このアクセスの受信時ローカルバス
を解放することなくアクセスをシステムバスに転送して
、システムバスのアクセスが完了したのちにローカルバ
スを解放するようにしたので、バスインタフェース回路
がつきはなしモードに設定されている状態で、ロック転
送を行う場合に、つきはなしモードを非つきはなしモー
ドに予め設定することなしに、ロック転送を実行するこ
とができる。
Each bus interface circuit of a multiprocessor system in which the processors are connected to the system bus via a bus interface circuit connected via a local bus forwards accesses received from the local bus to the system bus in a silent mode. When the access to the system bus is completed, the local bus is released, and when an access is received from the local bus in continuous mode, the local bus is immediately released, and this access is transferred to the system bus, and the local bus is locked. When the access received from the local bus is due to a lock transfer in the uninterrupted mode, when this access is received by lock transfer to the system bus. The access is transferred to the system bus without releasing the local bus, and the local bus is released after the system bus access is completed. When lock transfer is to be performed, lock transfer can be performed without setting the call-only mode to the non-talk mode in advance.

また上述と同様のバスインタフェース回路において、ロ
ーカルバスのロック転送が完了したことを検知し、ロッ
ク転送の完了を検知したのちシステムバスのアクセスが
完了したときシステムバスのロック状態を終了させるよ
うにしたので、バスインタフェース回路がつきはなしモ
ードに設定されている状態で、ロック転送を行う場合に
、つきはなしモードを非つきはなしモードに予め設定す
ることなしに、ロック転送を実行することができる。
In addition, in a bus interface circuit similar to the one described above, the lock state of the system bus is terminated when the system bus access is completed after detecting the completion of the local bus lock transfer and after detecting the completion of the lock transfer. Therefore, when lock transfer is to be performed with the bus interface circuit set to the constant mode, the lock transfer can be performed without previously setting the constant mode to the non-continuous mode.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示したものであって、本発
明におけるDCil1m部38の構成を示している。第
14図におけると同じものを同じ番号で示し、48はア
ンド回路である。
FIG. 2 shows an embodiment of the present invention, and shows the configuration of the DCil1m section 38 in the present invention. The same parts as in FIG. 14 are indicated by the same numbers, and 48 is an AND circuit.

第2図の実施例において、つきはなしレジスタ41は、
つきはなし状態のときセットされる。アンド回路42に
おいて、つきはなしレジスタ41の出力と、うA)アク
セス条件(リードライト信号RW−“θ″)との論理積
を求めた値に対して、アンド回路4日において、ローカ
ルバスのロック信号LOGを反転させた値との論理積を
求め、さらにアンド回路43において、アンド回路48
の出力と受信判定部35における受信判定結果との論理
積を求めた結果が“l”のとき、つきはなしライトが判
定される。
In the embodiment of FIG. 2, the limit register 41 is:
Set when there is no connection. The AND circuit 42 locks the local bus based on the logical product of the output of the discontinuation register 41 and the access condition (read/write signal RW-"θ"). The AND circuit 48 calculates the AND with the inverted value of the signal LOG.
When the result of calculating the logical product of the output of and the reception determination result of the reception determination section 35 is "l", a write without interruption is determined.

このとき、ローカルバスの転送開始信号BSを、フリッ
プフロップ(FF)44によって同期をとり、アンド回
路45を介してこれとつきはなしライトの判定結果との
論理積を求めて、フリップフロップ(FF)46を経て
ローカルバスの受信完了信号DCをアサートする。
At this time, the transfer start signal BS of the local bus is synchronized by the flip-flop (FF) 44, and the AND circuit 45 calculates the AND of this and the determination result of the independent write, and the flip-flop (FF) 46, the reception completion signal DC of the local bus is asserted.

アンサを受信してから、ローカルバスを解放するときは
、送信制御部29からの信号によって、オア回路47を
経て受信完了信号DCがアサートされる。
When releasing the local bus after receiving the answer, a reception completion signal DC is asserted via the OR circuit 47 in response to a signal from the transmission control section 29.

このように、第2図の実施例によれば、バスインタフェ
ース回路BIFがつきはなしモードのときに、ロック信
号LOGを受信したときは、ローカルバスの転送開始信
号BSを受信してもただちにローカルバスが解放されず
、非つきはなしモードとして動作する。
As described above, according to the embodiment shown in FIG. 2, when the bus interface circuit BIF is in the constant mode and receives the lock signal LOG, the local bus is immediately activated even if the local bus transfer start signal BS is received. is not released and operates in a non-trivial mode.

第3図は、第2図の実施例によるT&S制御の動作を説
明したものである。
FIG. 3 explains the operation of T&S control according to the embodiment of FIG. 2.

第3図の例ではT&S制御を行うので、リード動作が最
初行われ、次にライト動作が行われる。
In the example of FIG. 3, since T&S control is performed, a read operation is performed first, and then a write operation is performed.

■ マイクロプロセッサμPは、ローカルバスの転送開
始信号BSを1サイクルアサートするとともに、アドレ
ス等を出力する。同時にローカルバスのロック信号LO
Gがアサートされる。
(2) The microprocessor μP asserts the local bus transfer start signal BS for one cycle and outputs an address and the like. At the same time, local bus lock signal LO
G is asserted.

■ バスインタフェース回路BIFが転送開始信号BS
を受信すると、システムバスに対して、リクエスト信号
REQIを出力する。
■ Bus interface circuit BIF sends transfer start signal BS
When it receives the request signal REQI, it outputs a request signal REQI to the system bus.

■ バスアービタBAからアクノリジ信号ACK1が返
ってくると、バスインタフェース回路BIFからシステ
ムバスに転送開始信号SBSをアサートし、転送元と転
送先を指定したコマンドCと、アドレスAをシステムバ
スへ転送する。
(2) When the acknowledge signal ACK1 is returned from the bus arbiter BA, the bus interface circuit BIF asserts the transfer start signal SBS to the system bus, and transfers the command C specifying the transfer source and destination and the address A to the system bus.

■ このとき、バスインタフェース回路BIFは、シス
テムバス上のロック信号5LOCをアサートして、シス
テムバス上をロック状態とする。そして、コマンドとア
ドレスの転送を終了すると、転送終了信号CPTをアサ
ートして、−旦、転送を終了する。
(2) At this time, the bus interface circuit BIF asserts the lock signal 5LOC on the system bus to lock the system bus. When the transfer of the command and address is completed, the transfer end signal CPT is asserted, and the transfer is ended immediately.

■ その後、共通メモリCMからアンサANとデータD
が返ってくるが、この場合も、同様の手順で、共通メモ
リCMからリクエスト信号REQ2が出力されたのち、
バスアービタBAからアクノリジ信号ACK2が返って
きてから、共通メモリCMがシステムバス上に転送開始
信号SBSをアサートし、同時にアンサANを出力する
。この際、共通メモリCMは、アンサANにおいて、コ
マンドで指定された転送元と転送先とを入れ替えてシス
テムバスに転送する。次に共通メモリCMからデータD
が転送され転送終了すると、転送終了信号CPTがアサ
ートされる。
■ After that, answer AN and data D from common memory CM.
is returned, but in this case as well, after the request signal REQ2 is output from the common memory CM using the same procedure,
After the acknowledgment signal ACK2 is returned from the bus arbiter BA, the common memory CM asserts the transfer start signal SBS on the system bus and simultaneously outputs the answer AN. At this time, the common memory CM switches the transfer source and transfer destination specified by the command in the answer AN and transfers the data to the system bus. Next, data D from common memory CM
When the transfer is completed, the transfer end signal CPT is asserted.

■ バスインタフェース回路BIFでは、転送終了信号
CPTを受信したとき、ローカルバス上に受信完了信号
DCを返してデータ線をアサートし、マイクロプロセッ
サμPにデータを転送する。
(2) When the bus interface circuit BIF receives the transfer completion signal CPT, it returns the reception completion signal DC on the local bus, asserts the data line, and transfers the data to the microprocessor μP.

次に、システムバスのロック信号5LOCをネゲートせ
ずに、転送開始信号BSをアサートして、ライト動作を
行う。
Next, without negating the system bus lock signal 5LOC, the transfer start signal BS is asserted to perform a write operation.

■ マイクロプロセッサμPは、転送開始信号BSをア
サートするとともに、アドレスとデータを出力する。
(2) The microprocessor μP asserts the transfer start signal BS and outputs the address and data.

バスインタフェース回路BIFはリクエスト信号REQ
Iをアサートして、バスアービタBAからアクノリジ信
号ACK1を受信したとき、システムバス上に転送開始
信号SBSをアサートし、コマンドCと、アドレスAと
、データDをシステムバスへ転送し、転送終了時、転送
終了信号CPTをアサートする。
Bus interface circuit BIF receives request signal REQ
When it asserts I and receives the acknowledge signal ACK1 from the bus arbiter BA, it asserts the transfer start signal SBS on the system bus, transfers the command C, address A, and data D to the system bus, and when the transfer ends, Assert transfer end signal CPT.

■ 転送終了によって共通メモリCMから、リクエスト
信号REQ2をアサートして、バスアービタBAからア
クノリジ信号ACK2が返ってきたとき、共通メモリC
Mがシステムバス上に転送開始信号SBSをアサートし
、同時にアンサANを出力して転送終了すると、転送終
了信号CPTをアサートする。
■ When the request signal REQ2 is asserted from the common memory CM upon completion of the transfer, and the acknowledge signal ACK2 is returned from the bus arbiter BA, the common memory CM
When M asserts a transfer start signal SBS on the system bus and simultaneously outputs an answer AN to complete the transfer, it asserts a transfer end signal CPT.

■ バスインタフェース回路BIFでは、アンサANを
受は取ったとき、受信完了信号DCをローカルバス上に
返して、ロック信号LOGをネゲートスる。ローカルバ
ス上のロック信号がネゲートされることによって、シス
テムバス上のロック信号5LOCがネゲートされる。
(2) When the bus interface circuit BIF receives the answer AN, it returns the reception completion signal DC to the local bus and negates the lock signal LOG. By negating the lock signal on the local bus, the lock signal 5LOC on the system bus is negated.

第4図は本発明の他の実施例を示したものであって、本
発明におけるロック線制御部65の構成を示している。
FIG. 4 shows another embodiment of the present invention, and shows the configuration of the lock line control section 65 in the present invention.

第17図におけると同じものを同じ番号で示し、75.
76はフリップフロップ(FF)、77〜79はアンド
回路、80はオア回路である。
The same parts as in FIG. 17 are indicated by the same numbers, and 75.
76 is a flip-flop (FF), 77 to 79 are AND circuits, and 80 is an OR circuit.

第4図の回路においては、FF75でローカルバスのロ
ック信号LOGをサンプルし、アンド回路77でこのサ
ンプル値とロック信号LOGを反転した値との論理積を
求めることによって、ロック信号LOGのネゲートを検
出する。さらにオア回路80.アンド回路7B、FF7
6からなる回路でロック信号LOGのネゲート検出時こ
れをFF76に保持するとともに、転送終了信号CPT
の発生時、保持を解く。アンド回路79は、FF76に
保持された信号と転送終了信号CPTとの論理積の出力
を発生する。
In the circuit shown in FIG. 4, the FF 75 samples the lock signal LOG of the local bus, and the AND circuit 77 calculates the AND of this sampled value and the inverted value of the lock signal LOG, thereby negating the lock signal LOG. To detect. Furthermore, OR circuit 80. AND circuit 7B, FF7
When the lock signal LOG is detected to be negated, it is held in FF76 and the transfer end signal CPT is
When , the hold is released. The AND circuit 79 generates an output of the logical product of the signal held in the FF 76 and the transfer end signal CPT.

一方、アンド回路71でアクノリジ信号ACKとキュー
バッファ(3)の値との論理積を求め、オア回路72を
経てこの信号とシステムバスのロック信号5LOCとの
論理和をとった信号と、アンド回路79の出力を反転し
た信号との論理積をとった信号をFF74で同期をとっ
て、システムバスのロック信号5LOCとして出力する
On the other hand, an AND circuit 71 calculates the logical product of the acknowledge signal ACK and the value of the queue buffer (3), passes through an OR circuit 72, and outputs the logical sum of this signal and the lock signal 5LOC of the system bus, and the AND circuit A signal obtained by performing an AND operation with a signal obtained by inverting the output of FF 79 is synchronized with an FF 74 and outputted as a system bus lock signal 5LOC.

従って第4図の回路によれば、ローカルバスのロック信
号がネゲートされたのち、バスインタフェース回路BI
Fが転送終了信号CPTをアサートした次のサイクルで
、システムバスのロック信号5LOCをネゲートするこ
とができる。
Therefore, according to the circuit shown in FIG. 4, after the local bus lock signal is negated, the bus interface circuit BI
In the next cycle after F asserts the transfer end signal CPT, the system bus lock signal 5LOC can be negated.

第5図は、第4図の実施例によるT&S制御の動作を説
明したものである。
FIG. 5 explains the operation of T&S control according to the embodiment of FIG. 4.

第5図の例ではT&5tlIIIllを行うので、リー
ド動作が最初行われ、次にライト動作が行われる。
In the example of FIG. 5, since T&5tlIIIll is performed, a read operation is performed first, and then a write operation is performed.

■ リード時の動作は、第3図に示された実施例の場合
と同様である。
(2) The read operation is the same as in the embodiment shown in FIG.

■ 次にライト動作時においては、マイクロプロセッサ
μPは転送開始信号BSをアサートするとともに、アド
レスとデータを出力し、出力終了時、転送終了信号CP
Tをアサートするとともに、ローカルバスのロック信号
LOCをネゲートする。
■ Next, during the write operation, the microprocessor μP asserts the transfer start signal BS, outputs the address and data, and when the output ends, the transfer end signal CP is output.
T is asserted and the local bus lock signal LOC is negated.

■ バスインタフェース回路BIFでは、この状態でシ
ステムバスのロック信号5LOCをネゲートすることな
くリクエスト信号REQIをアサートし、共通メモリC
Mからアクノリジ信号ACK1を受信したとき、システ
ムバス上に転送開始信号SBSをアサートし、コマンド
CとアドレスAをシステムバス上に転送する゛。そして
転送終了時、転送終了信号CPTをアサートしたのち、
システムバスのロック信号5LOCをネゲートする。
■ In this state, the bus interface circuit BIF asserts the request signal REQI without negating the lock signal 5LOC of the system bus, and connects the common memory C
When receiving the acknowledge signal ACK1 from M, it asserts the transfer start signal SBS on the system bus and transfers the command C and address A onto the system bus. At the end of the transfer, after asserting the transfer end signal CPT,
Negate system bus lock signal 5LOC.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、複数の中央処理装
置と、共通メモリがシステムバスに接続されるとともに
、各中央処理装置が、ローカルバスを経て接続されたバ
スインタフェース回路を介してシステムバスに接続され
るマルチプロセッサシステムにおいて、バスインタフェ
ース回路がつきはなしモードに設定されている状態でロ
ック転送を行う場合に、つきはなしモードを非つきはな
しモードに予め設定することなく実行することができる
As explained above, according to the present invention, a plurality of central processing units and a common memory are connected to the system bus, and each central processing unit is connected to the system bus via a bus interface circuit connected via a local bus. In a multiprocessor system connected to a computer, when lock transfer is performed with the bus interface circuit set to the constant mode, it can be executed without setting the constant mode to the non-constant mode in advance.

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

第1図(a)、 (b)は本発明の原理的構成を示す図
、第2図は本発明の一実施例を示す図、第3図は第2図
の実施例によるT&5IiJIlの動作を説明する図、
第4図は本発明の他の実施例を示す図、第5図は第4図
の実施例によるT&S@llの動作を説明する図、第6
図はマルチプロセッサシステムの構成を例示する図、第
7図は各中央処理装置の構成を示す図、第8図はバスイ
ンタフェース回路とバスアービタとの接続を例示する図
、第9図は非つきはなしモード時のバスインタフェース
回路の動作を説明する図、第10図はつきはなしモード
時のバスインタフェース回路の動作を説明する図、第1
1図はシステムバスのコマンドとアンサのフォーマット
を示す図、第12図はバスインタフェース回路の構成を
示す図、第13図はローカルバスの受信制御部の構成を
示す図、第14図は従来のDC@@部の構成を示す図、
第15図はFIFO制御部の構成を示す図、第16図は
送信制御部の構成を示す図、第17図は従来のロック線
制御部の構成を示す図である。 μPはプロセッサ、BIFはバスインタフェース回路、
lは非つきはなしモード動作機能、2はつきはなしモー
ド動作機能、3はシステムバスロツタ転送機能、4はロ
ック転送制御機能、5はロック転送完了検出機能、6は
ロック転送終結機能、11はシステムバス、12はロー
カルバスである。
FIGS. 1(a) and (b) are diagrams showing the basic configuration of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention, and FIG. 3 is a diagram showing the operation of T&5IiJIl according to the embodiment of FIG. Diagram to explain,
FIG. 4 is a diagram showing another embodiment of the present invention, FIG. 5 is a diagram explaining the operation of T&S@ll according to the embodiment of FIG. 4, and FIG.
The figure is a diagram illustrating the configuration of a multiprocessor system, FIG. 7 is a diagram illustrating the configuration of each central processing unit, FIG. 8 is a diagram illustrating the connection between the bus interface circuit and the bus arbiter, and FIG. 9 is a diagram without exceptions. FIG. 10 is a diagram explaining the operation of the bus interface circuit in the mode, and FIG.
Figure 1 shows the format of system bus commands and answers, Figure 12 shows the configuration of the bus interface circuit, Figure 13 shows the configuration of the local bus reception control section, and Figure 14 shows the conventional A diagram showing the configuration of the DC@@ section,
FIG. 15 is a diagram showing the configuration of a FIFO control section, FIG. 16 is a diagram showing the configuration of a transmission control section, and FIG. 17 is a diagram showing the configuration of a conventional lock line control section. μP is a processor, BIF is a bus interface circuit,
1 is a non-intermittent mode operation function, 2 is an intermittent mode operation function, 3 is a system bus slot transfer function, 4 is a lock transfer control function, 5 is a lock transfer completion detection function, 6 is a lock transfer termination function, 11 is a system Bus 12 is a local bus.

Claims (2)

【特許請求の範囲】[Claims] (1)各プロセッサ(μP)がローカルバス(12)を
経て接続されたバスインタフェース回路(BIF)を介
してシステムバス(11)に接続されるマルチプロセッ
サシステムにおける各バスインタフェース回路(BIF
)が、 ローカルバス(12)から受信したアクセスをシステム
バス(11)へ転送し該システムバス(11)のアクセ
スが完了したとき該ローカルバス(12)を解放する非
つきはなしモード動作機能(1)と、 ローカルバス(12)からアクセスを受信したとき直ち
にローカルバス(12)を解放したのち該アクセスをシ
ステムバス(11)へ転送するつきはなしモード動作機
能(2)とを有するとともに、 ローカルバス(12)がロック転送状態にされたときこ
れを検知してシステムバス(11)へロック転送を行う
システムバスロック転送機能(3)を有する場合に、 前記つきはなしモード動作機能(2)が有効なときにロ
ーカルバス(12)から受信したアクセスがロック転送
によるものであるとき該アクセスの受信時ローカルバス
(12)を解放することなく該アクセスをシステムバス
(11)に転送しシステムバス(11)のアクセスが完
了したのちにローカルバス(12)を解放するロック転
送制御機能(4)を設けたことを特徴とするロック転送
方式。
(1) Each bus interface circuit (BIF) in a multiprocessor system in which each processor (μP) is connected to the system bus (11) via a bus interface circuit (BIF) connected via a local bus (12).
) forwards accesses received from the local bus (12) to the system bus (11) and releases the local bus (12) when access to the system bus (11) is completed; ), and a disconnection mode operation function (2) that immediately releases the local bus (12) when an access is received from the local bus (12) and then transfers the access to the system bus (11), and When (12) has a system bus lock transfer function (3) that detects when the lock transfer state is entered and transfers the lock to the system bus (11), the above-mentioned disconnection mode operation function (2) is effective. When the access received from the local bus (12) is due to lock transfer, the access is transferred to the system bus (11) without releasing the local bus (12) when the access is received. ) A lock transfer method is characterized in that it includes a lock transfer control function (4) that releases the local bus (12) after access to the local bus (12) is completed.
(2)各プロセッサ(μP)がローカルバス(12)を
経て接続されたバスインタフェース回路(BIF)を介
してシステムバス(11)に接続されるマルチプロセッ
サシステムにおける各バスインタフェース回路(BIF
)が、 ローカルバス(12)から受信したアクセスをシステム
バス(11)へ転送し該システムバス(11)のアクセ
スが完了したとき該ローカルバス(12)を解放する非
つきはなしモード動作機能(1)と、 ローカルバス(12)からアクセスを受信したとき直ち
にローカルバス(12)を解放したのち該アクセスをシ
ステムバス(11)へ転送するつきはなしモード動作機
能(2)とを有するとともに、 ローカルバス(12)がロック転送状態にされたときこ
れを検知してシステムバス(11)へロック転送を行う
システムバスロック転送機能(3)を有する場合に、 ローカルバス(12)のロック転送が完了したことを検
知するロック転送完了検出機能(5)と、該ロック転送
の完了を検知したのちシステムバス(11)のアクセス
が完了したときシステムバス(11)のロック状態を終
了させるロック転送終結機能(6)とを設けたことを特
徴とするロック転送方式。
(2) Each bus interface circuit (BIF) in a multiprocessor system in which each processor (μP) is connected to the system bus (11) via a bus interface circuit (BIF) connected via a local bus (12).
) forwards accesses received from the local bus (12) to the system bus (11) and releases the local bus (12) when access to the system bus (11) is completed; ), and a disconnection mode operation function (2) that immediately releases the local bus (12) when an access is received from the local bus (12) and then transfers the access to the system bus (11), and (12) has a system bus lock transfer function (3) that detects when it is in a lock transfer state and transfers the lock to the system bus (11), the lock transfer of the local bus (12) is completed. a lock transfer completion detection function (5) that detects the completion of the lock transfer; and a lock transfer termination function (5) that terminates the locked state of the system bus (11) when access to the system bus (11) is completed after detecting the completion of the lock transfer. 6) A lock transfer method characterized by providing the following.
JP2329613A 1990-11-30 1990-11-30 Lock transfer method Expired - Fee Related JP2992621B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2329613A JP2992621B2 (en) 1990-11-30 1990-11-30 Lock transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2329613A JP2992621B2 (en) 1990-11-30 1990-11-30 Lock transfer method

Publications (2)

Publication Number Publication Date
JPH04205247A true JPH04205247A (en) 1992-07-27
JP2992621B2 JP2992621B2 (en) 1999-12-20

Family

ID=18223312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2329613A Expired - Fee Related JP2992621B2 (en) 1990-11-30 1990-11-30 Lock transfer method

Country Status (1)

Country Link
JP (1) JP2992621B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7647441B2 (en) 1998-11-13 2010-01-12 Sonics, Inc. Communications system and method with multilevel connection identification

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7647441B2 (en) 1998-11-13 2010-01-12 Sonics, Inc. Communications system and method with multilevel connection identification

Also Published As

Publication number Publication date
JP2992621B2 (en) 1999-12-20

Similar Documents

Publication Publication Date Title
US5535341A (en) Apparatus and method for determining the status of data buffers in a bridge between two buses during a flush operation
CA2026737C (en) Bus master interface circuit with transparent preemption of a data transfer controller
JPH0354375B2 (en)
CA2060820C (en) Direct memory access for data transfer within an i/o device
JPH04205247A (en) Lock transfer system
US20030084223A1 (en) Bus to system memory delayed read processing
US6502150B1 (en) Method and apparatus for resource sharing in a multi-processor system
WO1993012486A1 (en) Direct memory access interface for buses of different width
US6085271A (en) System bus arbitrator for facilitating multiple transactions in a computer system
JPS62154045A (en) Bus arbitration method
JP2727514B2 (en) Transfer destination ID designating circuit
JP3597621B2 (en) Lock transfer control method
JP3626292B2 (en) Bus interface control method
JPH01305461A (en) Bus right control method
JPH05257903A (en) Multiprocessor system
JPS63175964A (en) shared memory
JPH02101560A (en) Bus interface device
JPS6041157A (en) Bus contention control system
JP2000029822A (en) Bridge device
JP3449945B2 (en) Bus control method
JPH0573484A (en) Information processing system
JPH0512219A (en) Process transferring system
JPH0415852A (en) Bus interface controller
JPH02211571A (en) Information processor
JPH08339345A (en) Information processing system

Legal Events

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