Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6315626B2 - - Google Patents
[go: Go Back, main page]

JPS6315626B2 - - Google Patents

Info

Publication number
JPS6315626B2
JPS6315626B2 JP4987583A JP4987583A JPS6315626B2 JP S6315626 B2 JPS6315626 B2 JP S6315626B2 JP 4987583 A JP4987583 A JP 4987583A JP 4987583 A JP4987583 A JP 4987583A JP S6315626 B2 JPS6315626 B2 JP S6315626B2
Authority
JP
Japan
Prior art keywords
circuit
signal line
logic
control information
processors
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
Application number
JP4987583A
Other languages
Japanese (ja)
Other versions
JPS59174962A (en
Inventor
Yoshinori Yamamoto
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
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4987583A priority Critical patent/JPS59174962A/en
Publication of JPS59174962A publication Critical patent/JPS59174962A/en
Publication of JPS6315626B2 publication Critical patent/JPS6315626B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 本発明は、メモリアクセス制御方式、特に、情
報処理システムにおけるマルチプロセツサシステ
ムにおいて複数個の非同期プロセツサによるメモ
リ共有領域へのアクセスを行なうためのメモリア
クセス制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical field to which the invention pertains] The present invention relates to a memory access control system, and particularly to a memory access control method for accessing a memory shared area by a plurality of asynchronous processors in a multiprocessor system in an information processing system. Related to memory access control methods.

〔従来技術〕[Prior art]

従来のメモリアクセス制御方式は、マルチプロ
セツサシステムにおけるシステム構成法の一つと
して、複数個のプロセツサおよび記憶装置が一本
の共通バスに接続された単一バス方式の構成が知
られている。
In the conventional memory access control system, a single bus system configuration in which a plurality of processors and storage devices are connected to a single common bus is known as one system configuration method for a multiprocessor system.

それらのプロセツサは、記憶装置中の共有領域
を互に排他制御を行ないながら利用している。例
えば記憶装置内に記憶されたデータあるいはテー
ブルは異なる時間にそのテーブルをアクセスする
数個のプロセツサによつて使用され変更されるこ
とができる。
These processors use the shared area in the storage device while mutually exercising exclusive control. For example, data or a table stored in a storage device can be used and modified by several processors accessing the table at different times.

排他制御は通常次のように行なわれる。 Exclusive control is normally performed as follows.

あるプロセツサが共有領域にアクセスする場合
は、共有領域が他のプロセツサによつて使用中か
否かを示す排他制御情報の読出および確認動作を
行なう。排他制御情報は、各々の共有領域に対応
して、記憶装置内の各々の共有領域とは別の領域
に記憶されている。
When a processor accesses a shared area, it reads and confirms exclusive control information indicating whether the shared area is being used by another processor. The exclusive control information is stored in an area different from each shared area in the storage device, corresponding to each shared area.

排他制御情報がセツトされていない場合は、共
有領域はどのプロセツサによつても使用されてい
ない“空”の状態、すなわち共有領域がロツクさ
れていない状態にあるので、排他制御情報をセツ
トし他のプロセツサの共有領域へのアクセスを阻
止してから、共有領域を使用する。
If the exclusive control information is not set, the shared area is in an "empty" state that is not used by any processor, that is, the shared area is not locked, so the exclusive control information must be set. prevent processors from accessing the shared area before using the shared area.

共有領域の使用が終了すると、該プロセツサ
は、他のプロセツサに共有領域を利用可能とする
ため、排他制御情報をリセツトする。
When the use of the shared area is finished, the processor resets the exclusive control information in order to make the shared area available to other processors.

排他制御情報がセツトされていた場合には、他
のプロセツサによつて共有領域が使用されている
ため、すなわち共有領域がロツクされているた
め、一旦共有領域の使用を諦める。その後適当な
周期で、排他制御情報を読み出し、排他制御情報
がリセツトされ共有領域が解放されるのを待つ。
If the exclusive control information has been set, the shared area is being used by another processor, that is, the shared area is locked, so use of the shared area is temporarily given up. Thereafter, the exclusive control information is read at an appropriate period and waits until the exclusive control information is reset and the shared area is released.

このような種類のシステムにおいては、あるプ
ロセツサがロツクされている共有領域にアクセス
しようとする場合、プロセツサは、共有領域が
“空”の状態になつたか否かを知るために、メモ
リ中に記憶されている排他制御情報を周期的に読
み出し続ける必要がある。
In these types of systems, when a processor attempts to access a locked shared area, it stores a memory in memory to determine whether the shared area has become ``empty.'' It is necessary to continue reading the exclusive control information periodically.

従つて、共有領域が頻繁に複数個のプロセツサ
でアクセスされる場合には、プロセツサからの排
他制御情報の読出動作が共通バスに集中してしま
い、共通バスの負荷を上昇させて、システムの通
常の機能を遂行するための共通バスの使用を妨げ
る不都合が生じ、システム全体の性能を低下させ
てしまう欠点があつた。
Therefore, if a shared area is frequently accessed by multiple processors, the read operations of exclusive control information from the processors will be concentrated on the common bus, increasing the load on the common bus and disrupting the normal system performance. This has the drawback of hindering the use of a common bus to perform the functions of the system, thereby degrading the performance of the entire system.

すなわち、従来のメモリアクセス制御方式は、
排他制御情報の読出のために共通バスが専有され
るため、共通バスの使用効率が低下するという欠
点があつた。
In other words, the conventional memory access control method is
Since the common bus is exclusively used for reading exclusive control information, there is a drawback that the efficiency of using the common bus is reduced.

〔発明の目的〕[Purpose of the invention]

本発明の目的は共通バスの使用効率を向上でき
るメモリアクセス制御方式を提供することにあ
る。
An object of the present invention is to provide a memory access control method that can improve the efficiency of using a common bus.

すなわち、本発明の目的は、単一バス形マルチ
プロセツサシステムにおいて、複数個のプロセツ
サによりアクセスされる記憶装置内の共有領域に
関する排他制御情報を各プロセツサ内の記憶部に
記憶させ、且つこの記憶された排他制御情報をプ
ロセツサ間で同期して更新する制御回路を各プロ
セツサに具備させて、共有領域がロツクされてい
る時に共有領域のロツクが解除されたか否かの問
合せをしなくても、プロセツサ内部の記憶部をチ
エツクすることにより排他制御情報を判定できる
ようにして上記欠点を解決し、システムとして有
効に共通バスを使用できるようにした共有領域へ
のメモリアクセス制御方式を提供することにあ
る。
That is, an object of the present invention is to store exclusive control information regarding a shared area in a storage device accessed by a plurality of processors in a storage unit in each processor in a single bus type multiprocessor system, and to By equipping each processor with a control circuit that synchronizes and updates exclusive control information between processors, it is possible to eliminate the need to inquire whether the shared area is unlocked when the shared area is locked. It is an object of the present invention to provide a memory access control method for a shared area that solves the above-mentioned drawbacks by making it possible to determine exclusive control information by checking the storage section inside a processor, and that allows a common bus to be used effectively as a system. be.

〔発明の構成〕[Structure of the invention]

本発明のメモリアクセス制御方式は、複数のプ
ロセツサからアクセスされる共有領域を少なくと
も1つ有する記憶装置と、前記共有領域をプロセ
ツサ間で排他的に利用するための排他制御情報を
記憶する記憶部と前記記憶部に記憶されている排
他制御情報を同期して更新する制御部と前記制御
部によつて更新されたとき割込を発生する割込回
路とを有する複数のプロセツサと、前記記憶装置
および前記複数のプロセツサを接続する共通バス
とを含んで構成される。
The memory access control method of the present invention includes: a storage device having at least one shared area accessed by a plurality of processors; and a storage unit storing exclusive control information for exclusive use of the shared area among the processors. a plurality of processors each having a control section that synchronously updates exclusive control information stored in the storage section; and an interrupt circuit that generates an interrupt when the exclusive control information is updated by the control section; and a common bus connecting the plurality of processors.

〔実施例の説明〕[Explanation of Examples]

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

第1図は本発明の一実施例を示すブロツク図、
第2図は第1図に示す実施例で使用する更新命令
のビツト構成図である。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a bit configuration diagram of an update instruction used in the embodiment shown in FIG. 1.

第1図に示すメモリアクセス制御方式は、プロ
セツサ1,2と、記憶装置3,4と、バス制御装
置5と、これらを結合する共通バスBとで構成さ
れる。
The memory access control system shown in FIG. 1 is composed of processors 1 and 2, storage devices 3 and 4, a bus control device 5, and a common bus B that connects them.

記憶装置3には共有領域c3が、記憶装置4に
は共有領域c4がある。またプロセツサ1,2は
同一構成をなしているので、第1図ではプロセツ
サ1のみを詳細に示している。このプロセツサ
1,2は記憶装置3,4中の共有領域c3,c4
をプロセツサ1,2間で排他的に利用するための
排他制御情報を記憶する記憶回路22と、記憶回
路22に記憶されている排他制御情報を同期して
更新する更新制御部21と、この更新制御部21
によつて更新されたときに割込を発生する割込発
生回路23と、プロセツサ1又は2の全体の制御
を司どる制御部24とから構成されている。
The storage device 3 has a shared area c3, and the storage device 4 has a shared area c4. Furthermore, since processors 1 and 2 have the same configuration, only processor 1 is shown in detail in FIG. These processors 1 and 2 have shared areas c3 and c4 in storage devices 3 and 4.
a storage circuit 22 that stores exclusive control information for exclusive use between the processors 1 and 2; an update control unit 21 that synchronously updates the exclusive control information stored in the storage circuit 22; Control unit 21
The processor 1 is comprised of an interrupt generation circuit 23 that generates an interrupt when updated by the processor 1 or 2, and a control section 24 that controls the entire processor 1 or 2.

さらに、前記共通バスBにおいて、制御信号線
9,10は1ビツトの制御信号線であり、データ
線6は32ビツトのデータ線、アドレス線7は16ビ
ツトのアドレス線、制御信号線8はプロセツサ
1,2間およびプロセツサ1,2と記憶装置3,
4間にデータ線6を介して情報を転送するための
8ビツトの制御信号線である。
Further, in the common bus B, control signal lines 9 and 10 are 1-bit control signal lines, data line 6 is a 32-bit data line, address line 7 is a 16-bit address line, and control signal line 8 is a processor line. between processors 1 and 2 and between processors 1 and 2 and storage device 3,
This is an 8-bit control signal line for transferring information between data lines 6 and 4 via data line 6.

前記プロセツサ1内の更新制御部21は、共通
バスBを構成する制御信号線9,10で供給され
る制御信号の受信を行なうための受信信号線9
b,10bと、制御信号線9,10に制御信号を
供給するように送信を行なう送信信号線9a,1
0aと、共有領域の排他制御情報の読出しを制御
し選択回路103,104を制御するための選択
信号線150と、前記受信信号線9b,10bか
ら供給される制御信号の論理和を出力するOR回
路130と、このOR回路130の出力を入力と
し、論理“1”がセツトされた次のステツプにお
いて論理“1”を出力し、以後のステツプでは論
理“0”を出力する書込指示回路131と、この
書込指示回路131から出力される書込信号によ
り記憶回路22への書込制御および選択回路10
2を制御するための書込信号線141と、前記
OR回路130からの出力と前記選択信号線15
0に供給される信号を入力とするOR回路132
と、このOR回路132の出力である読出信号に
より記憶回路22の読出制御を行なう読出信号線
142と、共通バスBを構成するデータ線6から
の受信を行なう受信信号線6bと、このデータ線
6への送信を行なう送信信号線6aと、受信信号
線6b上のデータを保持する32ビツトの入力レジ
スタ101と、前記書込信号線141が論理
“0”のとき12ビツトの接続線120を介して前
記受信信号線6b上の下位12ビツトを出力し、論
理“1”のとき12ビツトの接続線121を介して
前記入力レジスタ101の下位12ビツトを出力す
る選択回路102と、前記選択信号線150が論
理“0”のとき8ビツトおよび4ビツトの接続線
122,123を介し該選択回路102の出力の
上位8ビツトおよび下位4ビツトを出力し、論理
“1”のとき8ビツトおよび4ビツトの接続線1
24,125を介して前記送信信号線6a上の下
位12ビツトの上位8ビツトおよび下位4ビツトを
それぞれ出力する選択回路103および104
と、この選択回路104の4ビツトのデータをデ
コードするデコーダ回路105と、前記受信信号
線9bが論理“1”のとき、デコーダ回路105
の出力とレジスタ108の内容とを各ビツトごと
に論理和動作を行ない、前記受信信号線10bが
論理“1”のとき各ビツトごとに排他的論理和動
作を行ない、記憶回路22への16ビツトの書込デ
ータを出力する更新回路106と、前記選択回路
103からの出力である記憶回路22へのアドレ
ス情報を示す8ビツトのアドレス信号線140
と、前記デコーダ回路105からの出力を保持す
る16ビツトのレジスタ107と、記憶回路22か
ら読み出された1ワードのデータを保持する16ビ
ツトのレジスタ108と、このレジスタ107,
108の16ビツトのデータに対して論理積動作を
行ない、その結果の論理和をとるAND―OR回路
群109と、前記選択信号線150とAND―OR
回路群109の出力とを入力とするAND回路1
10と、該AND回路110から制御部24への
出力信号線111とから構成される。
The update control section 21 in the processor 1 has a reception signal line 9 for receiving control signals supplied through the control signal lines 9 and 10 forming the common bus B.
b, 10b, and transmission signal lines 9a, 1 that perform transmission so as to supply control signals to the control signal lines 9, 10.
0a, a selection signal line 150 for controlling the reading of exclusive control information of the shared area and controlling the selection circuits 103 and 104, and an OR for outputting the logical sum of the control signals supplied from the reception signal lines 9b and 10b. circuit 130, and a write instruction circuit 131 which receives the output of this OR circuit 130, outputs logic "1" in the next step after logic "1" is set, and outputs logic "0" in the subsequent steps. The write signal output from the write instruction circuit 131 causes the write control and selection circuit 10 to control the write to the memory circuit 22.
2, a write signal line 141 for controlling the
Output from the OR circuit 130 and the selection signal line 15
OR circuit 132 whose input is the signal supplied to
, a read signal line 142 that performs read control of the memory circuit 22 by a read signal that is the output of this OR circuit 132, a receive signal line 6b that performs reception from the data line 6 that constitutes the common bus B, and this data line. 6, a 32-bit input register 101 that holds data on the receive signal line 6b, and a 12-bit connection line 120 when the write signal line 141 is at logic "0". a selection circuit 102 which outputs the lower 12 bits on the reception signal line 6b through the input register 101 and outputs the lower 12 bits of the input register 101 through the 12-bit connection line 121 when the logic is "1"; When the line 150 is logic "0", the upper 8 bits and lower 4 bits of the output of the selection circuit 102 are outputted via the 8-bit and 4-bit connection lines 122 and 123, and when the line 150 is logic "1", the 8 bits and 4 bits are output. Bit connection line 1
Selection circuits 103 and 104 respectively output the upper 8 bits and lower 4 bits of the lower 12 bits on the transmission signal line 6a through 24 and 125.
and a decoder circuit 105 that decodes the 4-bit data of this selection circuit 104, and when the reception signal line 9b is at logic "1", the decoder circuit 105
The output of the register 108 is logically ORed with the contents of the register 108 for each bit, and when the received signal line 10b is at logic "1", an exclusive OR operation is performed for each bit, and the 16 bits are stored in the memory circuit 22. an 8-bit address signal line 140 that indicates address information to the storage circuit 22 that is output from the selection circuit 103;
, a 16-bit register 107 that holds the output from the decoder circuit 105, a 16-bit register 108 that holds one word of data read from the memory circuit 22, and this register 107,
AND-OR circuit group 109 which performs an AND operation on the 16-bit data of 108 and takes the logical sum of the result, and the selection signal line 150 and the AND-OR circuit group 109;
AND circuit 1 whose input is the output of circuit group 109
10, and an output signal line 111 from the AND circuit 110 to the control section 24.

また、さらに記憶回路22は1ワードが16ビツ
トで、256ワードからなるメモリ回路で構成され
ており、前記割込発生回路23は、前記選択信号
線150が論理“1”にセツトされたとき、前記
送信信号線6a上のデータを保持する32ビツトの
レジスタ160と、このレジスタ160の内容
と、前記入力レジスタ101の内容との排他的論
理和を行ない、その出力を制御部24に通知する
排他的論理和回路161とから構成されている。
Furthermore, the memory circuit 22 is composed of a memory circuit consisting of 256 words, each word being 16 bits, and the interrupt generating circuit 23 is configured to perform a process when the selection signal line 150 is set to logic "1". A 32-bit register 160 that holds the data on the transmission signal line 6a, and an exclusive OR that performs an exclusive OR of the contents of this register 160 and the contents of the input register 101 and notifies the control section 24 of the output. It is composed of a logical OR circuit 161.

なお、第1図に示す実施例においては、共通バ
スBを構成するアドレス線7および制御信号線8
のプロセツサ1,2内での構成および共通バスB
上へ情報を転送するためのドライバ,レシーバ回
路は省略されている。
In the embodiment shown in FIG. 1, the address line 7 and the control signal line 8 that constitute the common bus B
Configuration within processors 1 and 2 and common bus B
Driver and receiver circuits for transferring information upward are omitted.

また、排他制御情報は1つの共有領域に対して
1ビツトの情報によつて示し論理“1”の場合ロ
ツクされており、論理“0”の場合、ロツクが解
除されていることを示すものとする。
In addition, exclusive control information is expressed as 1-bit information for one shared area, and a logic "1" indicates that it is locked, and a logic "0" indicates that the lock has been released. do.

以降前記プロセツサ1による該共有領域へのア
クセス手順に従つて、各回路の動作を説明する。
Hereinafter, the operation of each circuit will be explained in accordance with the procedure for accessing the shared area by the processor 1.

制御部24から記憶装置3,4内の共有領域c
3,c4へのアクセス要求が発生した場合は、第
1のステツプとしてプロセツサ1は共通バスBの
使用権を決定するバス制御装置5から、該共通バ
スBの使用権を獲得する。
From the control unit 24 to the shared area c in the storage devices 3 and 4
When a request for access to 3, c4 occurs, the processor 1 acquires the right to use the common bus B from the bus control device 5, which determines the right to use the common bus B, as a first step.

次に、制御部24は記憶回路22に記憶されて
いる該共有領域c3,c4に対応する排他制御情
報を読み出すために、選択信号線150を論理
“1”にセツトすると同時に送信信号線6a,接
続線124,125を介し選択回路103,10
4へ第2図にその構成が示されている更新命令2
00を送信する。
Next, in order to read the exclusive control information corresponding to the shared areas c3 and c4 stored in the storage circuit 22, the control unit 24 sets the selection signal line 150 to logic "1", and at the same time sets the selection signal line 150 to the transmission signal line 6a, Selection circuits 103 and 10 via connection lines 124 and 125
Update command 2 whose structure is shown in FIG.
Send 00.

第2図に示されている更新命令200は、第1
図に示されている記憶回路22の特定ワードへの
書込および読出制御を行なうために必要なアドレ
ス情報を示す、ビツト20〜27までの8ビツトから
なるアドレス情報201を含んでいる。さらに該
更新命令200は、第1図に示されている4ビツ
トのデコーダ回路105によりデコードされ、デ
コード結果が記憶回路22の1ワード内の特定ビ
ツト位置を示すためのビツト28〜31までの4ビツ
トからなるビツト位置情報202を含んでいる。
The update instruction 200 shown in FIG.
It includes address information 201 consisting of 8 bits 20 to 27, which indicates address information necessary to control writing and reading to a specific word of the storage circuit 22 shown in the figure. Furthermore, the update instruction 200 is decoded by the 4-bit decoder circuit 105 shown in FIG. It includes bit position information 202 consisting of bits.

従つて、更新命令200のアドレス情報201
およびビツト位置情報202により記憶回路22
の任意のビツト位置が指定可能となる。
Therefore, the address information 201 of the update instruction 200
and bit position information 202, the memory circuit 22
Any bit position can be specified.

前記選択信号線150が論理“1”にセツトさ
れることにより、OR回路132の出力である記
憶回路22の読出信号線142は論理“1”にな
り、選択回路103,104は接続線124,1
25を介して送信信号線6a上の更新命令200
の下位12ビツトのうちの上位8ビツトと下位4ビ
ツトのデータをそれぞれ選択する。選択された上
位8ビツトの出力は記憶回路22へのアドレス信
号線140にセツトされる。その結果前記プロセ
ツサ1がアクセスしようとしている該記憶回路2
2内の排他制御情報を記憶する特定ワードがレジ
スタ108に読み出される。
By setting the selection signal line 150 to logic "1", the read signal line 142 of the storage circuit 22, which is the output of the OR circuit 132, becomes logic "1", and the selection circuits 103, 104 connect the connection lines 124, 1
Update command 200 on transmission signal line 6a via 25
The upper 8 bits and lower 4 bits of the lower 12 bits are selected respectively. The output of the selected upper 8 bits is set to the address signal line 140 to the storage circuit 22. As a result, the memory circuit 2 that the processor 1 is trying to access
The specific word storing the exclusive control information within 2 is read into register 108.

一方、前記選択された下位4ビツトの出力は、
デコーダ回路105によりデコードされる。該特
定ワード内の排他制御情報に対応したビツト位置
が論理“1”を示すデコード結果はレジスタ10
7に保持される。
On the other hand, the output of the selected lower 4 bits is
It is decoded by the decoder circuit 105. The decoding result indicating that the bit position corresponding to the exclusive control information in the specific word is logic "1" is stored in register 10.
It is held at 7.

次に、読み出された排他制御情報によりプロセ
ツサ1の動作を決定する第2のステツプにおい
て、レジスタ107,108の内容がAND―OR
回路群109により演算され、さらにその演算結
果がAND回路110により選択信号線150に
供給されている信号と演算され、出力信号線11
1を介して制御部24へ通知される。選択信号線
150は論理“1”の状態にあるため、もし共有
領域c3,c4がロツクされているならば、前記
レジスタ108中の前記共有領域c3,c4の排
他制御情報に対応するビツト位置が論理“1”と
なり、前記AND―OR回路群109およびAND
回路110の出力は論理“1”の状態を示す。
Next, in the second step of determining the operation of processor 1 based on the read exclusive control information, the contents of registers 107 and 108 are AND-ORed.
The calculation is performed by the circuit group 109, and the calculation result is further calculated by the AND circuit 110 with the signal supplied to the selection signal line 150, and the output signal line 11 is
1 to the control unit 24. Since the selection signal line 150 is in the logic "1" state, if the shared areas c3 and c4 are locked, the bit position corresponding to the exclusive control information of the shared areas c3 and c4 in the register 108 will be The logic becomes "1", and the AND-OR circuit group 109 and AND
The output of circuit 110 indicates a logic "1" state.

また、前記共有領域c3,c4がロツクされて
いなければ、前記共有領域c3,c4の排他制御
情報に対応するビツト位置が論理“0”の状態の
ため前記AND回路110の出力は論理“0”を
示す。
Further, if the shared areas c3 and c4 are not locked, the bit positions corresponding to the exclusive control information of the shared areas c3 and c4 are in the logic "0" state, so the output of the AND circuit 110 is the logic "0". shows.

こうして、制御部24は、出力信号線111の
状態により前記共有領域c3,c4がロツクされ
ているか否かを知ることができる。
In this way, the control unit 24 can know whether or not the shared areas c3 and c4 are locked based on the state of the output signal line 111.

次に制御部24は、選択信号線150を論理
“0”の状態にして以後レジスタ160へデータ
がセツトされないようにする。また前記出力信号
線111が論理“0”の状態を検知すると、前記
共有領域c3,c4への他プロセツサによるアク
セスを阻止すべく送信信号線9aをセツトし前記
更新命令200を各プロセツサに通知し、論理
“1”の状態を検知した場合は共通バスBの使用
権を放棄する。
Next, the control section 24 sets the selection signal line 150 to a logic "0" state so that data will not be set in the register 160 thereafter. Further, when the output signal line 111 detects a logic "0" state, the transmission signal line 9a is set to prevent other processors from accessing the shared areas c3 and c4, and the update command 200 is notified to each processor. , if a logic "1" state is detected, the right to use the common bus B is relinquished.

上述のステツプ1および2の動作中はバスの使
用権を獲得しているため、プロセツサ1により記
憶回路22に記憶されている排他制御情報を参照
中に、他プロセツサにより更新されることはな
い。
Since the right to use the bus is acquired during the operations of steps 1 and 2 described above, while the exclusive control information stored in the memory circuit 22 is being referred to by the processor 1, it will not be updated by other processors.

従つて、共有領域への排他的なアクセスを行な
うことができる。
Therefore, exclusive access to the shared area can be achieved.

さらに前記共有領域がロツクされていなく、前
記更新命令を各プロセツサに通知した後、該共有
領域c3,c4へのアクセスが終了すると、前記
制御部24は、送信信号線10aをセツトし再度
前述と同じ更新命令200を各プロセツサに通知
する。
Further, if the shared area is not locked and access to the shared areas c3 and c4 is completed after notifying each processor of the update command, the control unit 24 sets the transmission signal line 10a and repeats the above process again. The same update command 200 is notified to each processor.

この結果、他プロセツサによる前記共有領域c
3,c4へのアクセスが可能になり、前記共有領
域c3,c4へのアクセスに関する動作は全て終
了する。
As a result, the shared area c by other processors
3 and c4 become possible, and all operations related to access to the shared areas c3 and c4 are completed.

次に、更新命令が他プロセツサから通知され、
排他制御情報のセツトおよびリセツトが行なわれ
る場合の動作について、プロセツサ1を用いて説
明する。
Next, an update command is notified from another processor,
The operation when setting and resetting the exclusive control information will be explained using the processor 1.

更新命令は受信信号線9bがセツトされている
場合はこの排他制御情報をセツトするための情報
を示し、受信信号線10bがセツトされている場
合は、この排他制御情報をリセツトするための情
報を示す。
The update command indicates information for setting this exclusive control information when the reception signal line 9b is set, and indicates information for resetting this exclusive control information when the reception signal line 10b is set. show.

まず、受信信号線10bがセツトされ更新命令
200が通知された場合第1ステツプとして、受
信信号線10bが論理“1”になり、更新命令が
受信信号線6bを介し、入力レジスタ101にセ
ツトされるとOR回路130の出力は論理“1”
を出力するため、OR回路132の出力を供給す
る読出信号線142は論理“1”の状態を示し、
書込指示回路131にこの論理“1”が入力され
る。
First, when the receive signal line 10b is set and the update command 200 is notified, the first step is that the receive signal line 10b becomes logic "1" and the update command is set in the input register 101 via the receive signal line 6b. Then, the output of the OR circuit 130 is logic “1”
Therefore, the read signal line 142 that supplies the output of the OR circuit 132 shows a logic "1" state,
This logic “1” is input to the write instruction circuit 131.

書込指示回路131は、論理“1”の状態が入
力された次のステツプにおいて論理“1”を出力
するため、本ステツプにおいては書込信号線14
1は論理“0”を示している。
Since the write instruction circuit 131 outputs the logic "1" in the next step after the logic "1" state is input, the write signal line 14 is output in this step.
1 indicates logic "0".

従つて、記憶回路22への書込は阻止されてい
る。
Therefore, writing to memory circuit 22 is blocked.

また、更新命令は接続線120を介して下位12
ビツトのデータが選択回路102に入力されてお
り、書込信号線141の制御により選択回路10
2は、接続線120側のデータを選択する。ま
た、通常選択信号線150は論理“0”の状態で
あり、選択回路103は8ビツトの接続線122
側のデータを選択するため、受信信号線6b上の
更新命令の下位12ビツト中上位8ビツトがアドレ
ス信号線140にセツトされる。この結果前記読
出信号線142の制御により、他プロセツサがロ
ツクを解除しようとする共有領域の排他制御情報
を含む特定ワードがレジスタ108へ読み出され
る。
Also, the update command is sent to the lower order 12 via the connection line 120.
Bit data is input to the selection circuit 102, and the selection circuit 10 is controlled by the write signal line 141.
2 selects data on the connection line 120 side. Further, the selection signal line 150 is normally in the state of logic "0", and the selection circuit 103 is connected to the 8-bit connection line 122.
In order to select data on the side, the upper 8 bits of the lower 12 bits of the update command on the received signal line 6b are set on the address signal line 140. As a result, under the control of the read signal line 142, a specific word containing exclusive control information of the shared area that another processor attempts to unlock is read into the register 108.

第2のステツプにおいて、前記書込指示回路1
31は論理“1”を出力する。その出力である書
込信号線141は論理“1”の状態になるため、
選択回路102は12ビツトの接続線121のデー
タを選択する。また選択信号線150は論理
“0”の状態のため選択回路103,104は接
続線122,123のデータを選択する。このた
め今度は入力レジスタ101中の更新命令の下位
12ビツト中上位8ビツトがアドレス信号線140
に、下位4ビツトがデコーダ回路105に入力さ
れる。
In the second step, the write instruction circuit 1
31 outputs logic "1". Since the write signal line 141, which is the output thereof, becomes a logic “1” state,
The selection circuit 102 selects the data on the 12-bit connection line 121. Further, since the selection signal line 150 is in the logic "0" state, the selection circuits 103 and 104 select the data on the connection lines 122 and 123. Therefore, this time, the lower order of the update instruction in the input register 101
The upper 8 bits of the 12 bits are the address signal line 140.
Then, the lower four bits are input to the decoder circuit 105.

デコーダ回路105からのデコード結果は、前
記特定ワード中の共有領域c3,c4に対応する
排他制御情報と同じビツト位置が論理“1”の状
態を示して更新回路106に出力されている。ま
たレジスタ108は共有領域c3,c4がロツク
された。すなわち排他制御情報に対応するビツト
位置が論理“1”の状態となつている特定ワード
を保持している。更新回路106は、受信信号線
10bが論理“1”であるため、前記デコード結
果の内容と、レジスタ108の内容との排他的論
理和を行なう。この結果前記特定ワード中の排他
制御情報に対応するビツト位置が論理“0”の状
態の出力、すなわち共有領域c3,c4のロツク
が解除された出力が記憶回路22へ入力される。
さらに前記書込信号線141,アドレス信号線1
40の制御により、共有領域c3,c4のロツク
が解除されたデータが、記憶回路22中の前記特
定ワードと同じ位置に書き込まれ、他プロセツサ
による排他制御情報のリセツトが完了する。
The decoding result from the decoder circuit 105 is output to the update circuit 106 with the same bit position as the exclusive control information corresponding to the shared areas c3 and c4 in the specific word indicating a logic "1" state. Also, the shared areas c3 and c4 of the register 108 are locked. That is, it holds a specific word in which the bit position corresponding to the exclusive control information is in a logic "1" state. Since the received signal line 10b is at logic "1", the update circuit 106 performs an exclusive OR of the contents of the decoding result and the contents of the register 108. As a result, an output in which the bit position corresponding to the exclusive control information in the specific word is in a logic "0" state, that is, an output in which the shared areas c3 and c4 are unlocked, is input to the storage circuit 22.
Furthermore, the write signal line 141 and the address signal line 1
40, the unlocked data in the shared areas c3 and c4 is written to the same location as the specific word in the memory circuit 22, and the resetting of the exclusive control information by the other processors is completed.

またこのとき、入力レジスタ101とレジスタ
160の内容が排他的論理和回路161により演
算され、その出力が制御部24に通知される。レ
ジスタ160には前述されているように、プロセ
ツサ1が共有領域c3,c4をアクセスしようと
するとき、選択信号線150は制御部24によ
り、論理“1”にされるため、送信信号線6aを
介し、共有領域c3,c4の排他制御情報を指定
する更新命令が保持されている。
Also, at this time, the contents of the input register 101 and the register 160 are calculated by the exclusive OR circuit 161, and the output thereof is notified to the control unit 24. As described above, in the register 160, when the processor 1 attempts to access the shared areas c3 and c4, the selection signal line 150 is set to logic "1" by the control unit 24, so the transmission signal line 6a is set to logic "1". An update command that specifies exclusive control information for shared areas c3 and c4 is held through the storage area.

一方入力レジスタ101には、他プロセツサが
ロツクを解除しようとした共有領域の排他制御情
報を指定する更新命令が保持されている。
On the other hand, the input register 101 holds an update instruction that specifies exclusive control information of a shared area that another processor attempts to unlock.

従つて、排他的論理和回路161の出力が論理
“0”を示した場合、制御部24はアクセスしよ
うとした共有領域のロツクが解除されたことを、
また論理“1”を示した場合、まだロツクが解除
されないことを知ることができる。このためプロ
セツサ1はアクセスしようとした共有領域がロツ
クされていた場合、該排他的論理和回路161の
出力が論理“0”の状態を示した場合にのみ、再
度アクセスを試みれば良いことになる。
Therefore, when the output of the exclusive OR circuit 161 indicates logic "0", the control unit 24 indicates that the shared area to be accessed has been unlocked.
Further, when the logic "1" is shown, it can be known that the lock is not released yet. Therefore, if the shared area that the processor 1 attempts to access is locked, it is only necessary to try to access it again if the output of the exclusive OR circuit 161 indicates a logic "0" state. Become.

次に、受信信号線9bと共に更新命令が他プロ
セツサより通知された場合の動作を示す。
Next, the operation when an update command is notified from another processor together with the reception signal line 9b will be described.

この場合の更新命令は、他プロセツサがアクセ
スしようとする共有領域に対応した排他制御情報
をセツトするための情報を示す受信信号線10b
が受信信号線9bに置き換つたことおよび受信信
号線9bが論理“1”の状態になることにより、
更新回路106が論理和動作を行ない、その出力
が記憶回路22へ書き込まれること以外上述の他
プロセツサにより受信信号線10bと共に更新命
令が通知される場合の動作と同様な動作を行な
う。
In this case, the update command is sent to the receiving signal line 10b indicating information for setting exclusive control information corresponding to the shared area that another processor attempts to access.
is replaced with the receiving signal line 9b and the receiving signal line 9b becomes the logic "1" state.
The update circuit 106 performs an OR operation and the output thereof is written to the memory circuit 22, but the same operation as in the case where an update command is notified together with the reception signal line 10b by the other processor described above is performed.

前記論理和動作においては、レジスタ108に
は、他プロセツサがアクセスしようとする共有領
域に対応する排他制御情報を記憶した記憶回路2
2の特定ワードが読み出されている。またデコー
ダ回路106の出力結果は、前記特定ワード内の
前記他プロセツサがアクセスしようとしている共
有領域に対応した排他制御情報と同じビツト位置
が論理“1”として出力されている。
In the above-mentioned OR operation, the register 108 stores the memory circuit 2 that stores exclusive control information corresponding to the shared area that other processors attempt to access.
2 specific words are being read. Further, as the output result of the decoder circuit 106, the same bit position as the exclusive control information corresponding to the shared area that the other processor is trying to access in the specific word is output as logic "1".

従つて、論理和動作により前記ビツト位置が論
理“1”の状態にされ、すなわち共有領域に対応
した排他制御情報がセツトされたデータが記憶回
路22へ出力される。そして、その出力データは
記憶回路22中の前記特定ワードと同じ位置に書
き込まれるため、他プロセツサによる排他制御情
報のセツトが完了される。
Therefore, the bit position is set to a logic "1" state by the OR operation, and data in which exclusive control information corresponding to the shared area is set is output to the storage circuit 22. Then, since the output data is written to the same position as the specific word in the memory circuit 22, the setting of exclusive control information by the other processor is completed.

以上において、該排他制御情報の更新手段とし
て第2図に示されている更新命令により行なわせ
たが、所望の排他制御情報を同時に更新可能な手
段であれば、更新命令という手段を採らなくても
実現可能であることは明らかである。
In the above, the update command shown in FIG. 2 is used as a means for updating the exclusive control information, but if the means can update the desired exclusive control information at the same time, the update command may not be used. It is clear that this is also possible.

また、さらに上述の実施例ではプロセツサが2
台の場合について示されているが、プロセツサ数
が3台以上になつても同じ方式が適用できること
も明らかである。
Further, in the above embodiment, there are two processors.
Although the case of three or more processors is shown, it is clear that the same method can be applied even if the number of processors is three or more.

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

本発明のメモリアクセス制御方式は、各プロセ
ツサに、共有領域に関する排他制御情報を記憶す
る記憶回路を具備させることにより、共有領域が
ロツクされている場合、ロツクが解除されたか否
かを問合せるために共通バスを無用に占有し続け
ることなく、システムとして有効に共通バスを使
用できるという効果がある。
In the memory access control method of the present invention, each processor is equipped with a memory circuit that stores exclusive control information regarding the shared area. This has the effect that the common bus can be used effectively as a system without continuing to uselessly occupy the common bus.

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

第1図は本発明の一実施例を示すブロツク図、
第2図は第1図に示す実施例で使用する更新命令
のビツト構成を示すビツト構成図である。 1,2……プロセツサ、3,4……記憶装置、
5……バス制御装置、6……データ線、7……ア
ドレス線、8〜10……制御信号線、B……共通
バス、c3,c4……共有領域、21……更新制
御部、22……記憶回路、23……割込発生回
路、24……制御部、6a,9a,10a……送
信信号線、6b,9b,10b……受信信号線、
101……入力レジスタ、107,108,16
0……レジスタ、102〜104……選択回路、
106……更新回路、105……デコーダ回路、
109……AND―OR回路群、110……AND
回路、130,132……OR回路、161……
排他論理和回路、131……書込指示回路、11
1……出力信号線、120〜125……接続線、
140……アドレス信号線、141……書込信号
線、142……読出信号線、150……選択信号
線、200……更新命令、201……アドレス情
報、202……ビツト位置情報。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a bit configuration diagram showing the bit configuration of an update instruction used in the embodiment shown in FIG. 1, 2...processor, 3, 4...storage device,
5...Bus control device, 6...Data line, 7...Address line, 8-10...Control signal line, B...Common bus, c3, c4...Shared area, 21...Update control unit, 22 ...Storage circuit, 23...Interrupt generation circuit, 24...Control unit, 6a, 9a, 10a...Transmission signal line, 6b, 9b, 10b...Reception signal line,
101...Input register, 107, 108, 16
0...Register, 102-104...Selection circuit,
106...Update circuit, 105...Decoder circuit,
109...AND-OR circuit group, 110...AND
Circuit, 130, 132...OR circuit, 161...
Exclusive OR circuit, 131...Write instruction circuit, 11
1... Output signal line, 120-125... Connection line,
140...Address signal line, 141...Write signal line, 142...Read signal line, 150...Selection signal line, 200...Update command, 201...Address information, 202...Bit position information.

Claims (1)

【特許請求の範囲】[Claims] 1 複数のプロセツサからアクセスされる共有領
域を少なくとも1つ有する記憶装置と、前記共有
領域をプロセツサ間で排他的に利用するための排
他制御情報を記憶する記憶部と前記記憶部に記憶
されている排他制御情報を同期して更新する制御
部と前記制御部によつて更新されたときに割込を
発生する割込回路とを有する複数のプロセツサ
と、前記記憶装置および前記複数のプロセツサを
接続する共通バスとを含むことを特徴とするメモ
リアクセス制御方式。
1. A storage device having at least one shared area that is accessed by a plurality of processors; a storage unit that stores exclusive control information for exclusive use of the shared area between processors; and a storage unit that stores exclusive control information for exclusive use of the shared area among the processors; A plurality of processors each having a control unit that synchronously updates exclusive control information and an interrupt circuit that generates an interrupt when updated by the control unit, the storage device, and the plurality of processors. A memory access control method characterized by comprising a common bus.
JP4987583A 1983-03-25 1983-03-25 Memory access controlling system Granted JPS59174962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4987583A JPS59174962A (en) 1983-03-25 1983-03-25 Memory access controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4987583A JPS59174962A (en) 1983-03-25 1983-03-25 Memory access controlling system

Publications (2)

Publication Number Publication Date
JPS59174962A JPS59174962A (en) 1984-10-03
JPS6315626B2 true JPS6315626B2 (en) 1988-04-05

Family

ID=12843216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4987583A Granted JPS59174962A (en) 1983-03-25 1983-03-25 Memory access controlling system

Country Status (1)

Country Link
JP (1) JPS59174962A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63301974A (en) * 1987-06-01 1988-12-08 Minolta Camera Co Ltd Display device for image forming device
JP2874488B2 (en) * 1992-10-30 1999-03-24 富士通株式会社 Processing equipment

Also Published As

Publication number Publication date
JPS59174962A (en) 1984-10-03

Similar Documents

Publication Publication Date Title
US4467414A (en) Cashe memory arrangement comprising a cashe buffer in combination with a pair of cache memories
JP2602599B2 (en) Multiprocessor data processing system and method of operation thereof
KR100272938B1 (en) Semiconductor device and computer system
US5146607A (en) Method and apparatus for sharing information between a plurality of processing units
EP0380855B1 (en) Memory configuration for use with means for interfacing a system control unit for a multi-processor system with the system main memory
US4821177A (en) Apparatus for controlling system accesses having multiple command level conditional rotational multiple port servicing priority hierarchy
US4769768A (en) Method and apparatus for requesting service of interrupts by selected number of processors
US6795901B1 (en) Shared memory interface with conventional access and synchronization support
US6170070B1 (en) Test method of cache memory of multiprocessor system
US6697899B1 (en) Bus control device allowing resources to be occupied for exclusive access
JPS62163160A (en) Apparatus and method for composing bus protocol
JPH02205964A (en) Subsystem cycle of write-read/ write-pass memory
US5218688A (en) Data processing system with memory-access priority control
JPS6315626B2 (en)
JPS621047A (en) Semiconductor device containing memory circuit
US6813647B2 (en) Microcomputer system reading data from secondary storage medium when receiving upper address from outside and writing data to primary storage medium
JP2813182B2 (en) Multiprocessor computer multifunction device
US6785795B1 (en) Data processing device for use in cooperation with a memory
JPS6029141B2 (en) coupling device
JPH0544238B2 (en)
JPH05225117A (en) Exclusive control circuit for main storage device
JP2600376B2 (en) Memory controller
JPH04270440A (en) Access system and access processing device
JPS59123913A (en) Dma access system
JP3353877B2 (en) Memory device