JPH03246741A - synchronous control device - Google Patents

synchronous control device

Info

Publication number
JPH03246741A
JPH03246741A JP4526190A JP4526190A JPH03246741A JP H03246741 A JPH03246741 A JP H03246741A JP 4526190 A JP4526190 A JP 4526190A JP 4526190 A JP4526190 A JP 4526190A JP H03246741 A JPH03246741 A JP H03246741A
Authority
JP
Japan
Prior art keywords
memory
shared memory
flag
address
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4526190A
Other languages
Japanese (ja)
Inventor
Tsuguhiko Ono
次彦 大野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4526190A priority Critical patent/JPH03246741A/en
Publication of JPH03246741A publication Critical patent/JPH03246741A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、複数のCPUと同一バスで結合する共有メ
モリをもった計算機システムに係り、共有メモリ上の排
他制御を行う同期制御装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a computer system having a shared memory connected to a plurality of CPUs via the same bus, and relates to a synchronous control device that performs exclusive control on the shared memory. It is.

〔従来の技術〕[Conventional technology]

従来、この種の同期制御装置として、例えば特開昭59
−225469号公報及び特開昭60−129867号
公報に示されるように、同期制御を行う場合、共有メモ
リ自身に共有メモリの排他制御を管理させることにより
、メモリバスの占有率の低減及びCPU負荷の軽減を図
るものがある。
Conventionally, as this type of synchronous control device, for example, Japanese Patent Application Laid-open No. 59
As shown in Japanese Patent Application Laid-Open No. 225469 and Japanese Patent Application Laid-Open No. 60-129867, when performing synchronous control, by having the shared memory itself manage exclusive control of the shared memory, the occupancy rate of the memory bus can be reduced and the CPU load can be reduced. There are ways to reduce this.

上記公報技術は共有メモリ上の排他制御を行なうアドレ
スに対してプロセッサあるいは演算装置に番号を付は同
一の番号の時のみ該アドレスに対してアクセス可能とす
るもので、つまり、プロセッサ、または演算装置の番号
とアドレスにより排他制御し、他の番号のプロセッサ、
演算装置が該アドレス以外はバスロックしないことをメ
リットとするものである。
In the above-mentioned technique, a processor or arithmetic unit is assigned a number to an address that performs exclusive control on a shared memory, and the address can be accessed only when the number is the same. Exclusive control by the number and address of the processor of other numbers,
The advantage of this is that the arithmetic unit does not lock the bus at addresses other than the specified address.

しかしながら、ラスト・アンド・セットを行なうような
場合は、上記公報技術によってもCPU負荷の軽減とメ
モリバス占有率の低減に回答効果は期待し得ない。
However, in cases where last-and-set is performed, even the above-mentioned technique cannot be expected to be effective in reducing the CPU load and the memory bus occupancy rate.

第3図は共有メモリを用いた同期制御の手段として知ら
れているラスト・アンド・セット方式を説明するための
もので、図において、(1)は第1の中央処理装置(以
下第1のCPIIと略す)、(2)は第2の中央処理装
置(以下第2のCPt1と略す)、(3)は第1と第2
のCPIJ (1)   (2)からアクセスされる共
有メモリ、(4)はメモリハス、(5)は排他制御のた
めのセマフォ線である。
Figure 3 is for explaining the last-and-set method, which is known as a means of synchronous control using shared memory. (abbreviated as CPII), (2) is the second central processing unit (hereinafter abbreviated as second CPt1), and (3) is the first and second central processing unit.
CPIJ (1) (2) is a shared memory accessed from (2), (4) is a memory hash, and (5) is a semaphore line for exclusive control.

このラスト・アンド・セット方式は2つ以上のCPt1
あるいはプログラムから共有メモリの共通域をアクセス
するとき、その排他的使用を特定領域のフラグを用いて
管理する方式て、この共通域のアクセス動作は次の通り
となる! (a)第1のCPII (1)か特定領域のフラグの読
み出しを行なうと同時にメモリハス(4)を排他制御す
るセマフォ線(5)をドライブする。
This last-and-set method uses two or more CPt1
Alternatively, when a program accesses a common area of shared memory, its exclusive use is managed using a flag for a specific area, and the access operation of this common area is as follows! (a) At the same time as reading the flag of the specific area of the first CPII (1), the semaphore line (5) for exclusive control of the memory bus (4) is driven.

(b)第1 ノCPII (1)はコノフラグからCP
LI (2)か共通域を使用しているか否かを判断する
(b) 1st CPII (1) is CP from Conoflag
LI (2) Determine whether or not the common area is being used.

(c) フラグの内容がr□、のときつまり共通域の使
用か許されたとき、第1のCPU (1)は自身が共通
域使用中を示す「1」をフラグに書き込む。
(c) When the content of the flag is r□, that is, when use of the common area is permitted, the first CPU (1) writes "1" to the flag indicating that it is using the common area.

(d)フラグの内容か「1」のときつまり共通域が使用
中の時第1のCPLI (1)は共通域の使用の終了を
待つ。
(d) When the content of the flag is "1", that is, when the common area is in use, the first CPLI (1) waits for the use of the common area to end.

(e)  (c)、(e)いずれかの処理の終了と同時
にセマフォ線(5)を解除する。
(e) Release the semaphore line (5) at the same time as either process (c) or (e) is completed.

セマフォ線(5)は複数のCPUで特定領域のフラグの
ように互いに特定アドレスを指定するときにドライブす
るもので、ドライブする前に既にドライブされているか
を判断し、ドライブされているときはセマフォ線(5)
が解除されるまでドライブするCPUは待機することに
なる。
The semaphore line (5) is driven when multiple CPUs specify a specific address to each other like a flag for a specific area. line (5)
The driving CPU will wait until this is released.

(発明が解決しようとする課題) 従来の同期制御装置は以上のような動作のためいずれか
のCPU (1) または(2)が特定領域のフラグに
対してアクセスを行なう場合、 (I)セマフォ線のドライブ可否の判定(II)セマフ
ォ線のドライブ (III )フラグの読み込み (IV )フラグの判定 (V)フラグの書き込み (Vl )セマフォ線の解除 といった一連の動作が発生する。
(Problems to be Solved by the Invention) Because of the above-described operation, when either CPU (1) or (2) accesses a flag in a specific area, (I) semaphore A series of operations occur: determining whether the line can be driven (II) driving the semaphore line (III) reading the flag (IV) determining the flag (V) writing the flag (Vl) and releasing the semaphore line.

(1)〜(Vl)はCPt1の負荷を高める原因になり
、(II)〜(Vl )は他のCPUかメモリハスを使
えないことからメモリハス(5)の占有率を高める原因
になるという問題点がある。
The problem is that (1) to (Vl) cause an increase in the load on CPt1, and (II) to (Vl) cause an increase in the occupancy rate of memory hash (5) because other CPUs or memory hashes cannot be used. There is.

この発明は上記のような問題点を解消するためになされ
たものて、CPUのメモリハスの占有率を低減させると
共に、CPUの負荷も軽減させることかできるラスト・
アンド・セット方式に基づく同期制御装置を提供するこ
とを目的とする。
This invention was made to solve the above-mentioned problems, and it is a last resort that can reduce the CPU's memory space occupancy and also reduce the CPU load.
The purpose of this invention is to provide a synchronous control device based on an AND set method.

〔課題を解決するための手段] この発明に係る同期制御装置は、複数のCPIIと同一
のバスで結合する共有メモリをもつ計算機システムにお
いて、同期制御を共有メモリを用いて行う際、その共有
メモリの排他制御を共有メモリ自身で管理する管理手段
を備えたものである。
[Means for Solving the Problems] A synchronous control device according to the present invention provides a computer system having a shared memory connected to a plurality of CPIIs via the same bus, when synchronization control is performed using the shared memory. The shared memory is equipped with a management means for managing exclusive control of the shared memory itself.

(作用) この発明においては、共有メモリ自身に排他制御管理を
させることによりCPUのメモリバス占有率の低減とc
pu負荷の軽減を図る。
(Function) In this invention, by making the shared memory itself perform exclusive control management, the CPU's memory bus occupation rate can be reduced.
Try to reduce PU load.

(実施例) 以下、この発明の一実施例を図について説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図において、(1)〜(4)は第3図と同一部分て
あり、(6)は共有メモリ(3)の排他制御を意味する
同期線である。
In FIG. 1, (1) to (4) are the same parts as in FIG. 3, and (6) is a synchronization line indicating exclusive control of the shared memory (3).

また、第2図は上記共有メモリ(3)のブロック図を示
し、共有メモリ(3)は、メモリバス(4)から送られ
るアドレスの内容を記憶するアドレス記憶回路(3a)
、メモリ部(3b)、メモリ制御回路(3C)及びメモ
リ部(3a)からのデータが「O」か否かと判定するデ
ータ判定回路(3d)を有し、後述のように共有メモリ
の排他制御を管理する管理手段を構成している。
FIG. 2 shows a block diagram of the shared memory (3), which includes an address storage circuit (3a) that stores the contents of the address sent from the memory bus (4).
, a memory unit (3b), a memory control circuit (3C), and a data determination circuit (3d) that determines whether data from the memory unit (3a) is “O”, and provides exclusive control of the shared memory as described later. It constitutes a management means for managing.

次に、上記第1図と第2図構成に係る動作について説明
する。
Next, the operation related to the configurations shown in FIGS. 1 and 2 will be explained.

第1のCPU (1)が同期制御を行なう場合、まず、
第1のCPLI (1)から共有メモリ(2)の特定領
域のフラグに対してアクセスする場合、同期線(6)と
メモリハス(4)にそのアドレスを同時にドライブする
When the first CPU (1) performs synchronous control, first,
When accessing a flag in a specific area of the shared memory (2) from the first CPLI (1), the address is simultaneously driven to the synchronization line (6) and the memory bus (4).

共有メモリ(3)はこの同期線(6)とメモリハス(4
)のアドレスを各々メモリ制御回路(3C)とアドレス
記憶回路(3a)に蓄える。メモリ制御回路(3C)は
同期線(6)を受は取るとアドレス記憶回路(3a)か
ら与えられる排他制御するアドレスでメモリ部(3b)
へデータを読み出す指示を出す。メモリ部(3b)は読
み出したデータをデータ判定回路(3d)へ送る。デー
タ判定回路(3d)では、このデータの決められた位置
のビットをフラグとし、その内容かr□、か否かを判定
し、「0」の時その旨をメモリ制御回路(3c)へ伝え
る。メモリ制御回路(3c)はこの通知により予め用意
したデータ「1」をアドレス記憶回路(3a)で与えら
れる排他制御するアドレスでメモリ部(3b)へ書き込
む指示を出す。メモリ部(3b)はこの指示に従いその
アドレスのフラグとして決められたビット位置に「1」
を書き込む。
The shared memory (3) is connected to this synchronization line (6) and the memory hash (4).
) are stored in the memory control circuit (3C) and address storage circuit (3a), respectively. When the memory control circuit (3C) receives the synchronization line (6), it controls the memory section (3b) with the exclusive control address given from the address storage circuit (3a).
Issue an instruction to read data to. The memory section (3b) sends the read data to the data determination circuit (3d). The data determination circuit (3d) uses the bit at a determined position of this data as a flag, determines whether the content is r□, and when it is "0", notifies the memory control circuit (3c) . In response to this notification, the memory control circuit (3c) issues an instruction to write the data "1" prepared in advance into the memory section (3b) at an address for exclusive control given by the address storage circuit (3a). In accordance with this instruction, the memory unit (3b) writes "1" to the bit position determined as the flag of that address.
Write.

方、メモリ部(3b)から読み出したフラグが「0」で
ない場合は、以後の処理は行なわず、この同期制御を終
了する。
On the other hand, if the flag read from the memory section (3b) is not "0", no further processing is performed and this synchronous control is ended.

ここて、CPLIへは排他制御するアドレスの元のフラ
グの内容をそのまま返送し、その内容か「0」のとき、
共有メモリ(3)自身でフラグを「1」に変更したこと
になり、返送された内容が「1」のときは共有メモリ(
3)自身は何もせずに終了したことを意味するものであ
る。
Here, the content of the original flag of the address to be exclusively controlled is returned to the CPLI as is, and when the content is "0",
This means that the shared memory (3) itself has changed the flag to "1", and when the returned content is "1", the shared memory (3) has changed the flag to "1".
3) It means that the process ended without doing anything.

なお、上記実施例は第1のCPII (1)で示したが
、他のCPII (2)でも同様の処理を行なうもので
ある。
It should be noted that although the above embodiment has been shown with the first CPII (1), similar processing is performed with other CPII (2).

また、上記実施例は共有メモリ(3)の排他制御する指
示を同期線(6)で行なったが、メモリパス(4)のア
ドレス線の最上位ビット等を用いても良い。こうするこ
とであるアドレス以上は共有メモリ(3)を排他制御す
る空間と決めることが可能となる。
Further, in the above embodiment, the instruction for exclusive control of the shared memory (3) is given using the synchronization line (6), but the most significant bit of the address line of the memory path (4) may also be used. By doing so, it becomes possible to determine that the shared memory (3) is a space for exclusive control of a certain address or higher.

(発明の効果) 以上のように、この発明によれば、同期制御の手段とな
るテスト・アンド・セット方式を行なう場合、共有メモ
リ自身にその排他制御を行なわせる構成としたので、 1 セマフォ線のドライブ可否の判定、2、フラグ(排
他制御するアドレスのデータ)の読み込み 3、フラグの判定 4、フラグへの書き込み 5、セマフォ線の解除 の処理がなくなり、CPU負荷の軽減が図れると共に、
一連の処理中にメモリバスを占有することもないためメ
モリバスの占有率の低減が図れる。
(Effects of the Invention) As described above, according to the present invention, when performing the test-and-set method as a means of synchronization control, the shared memory itself is configured to perform exclusive control. This eliminates the processes of determining whether or not the drive is possible, 2, reading the flag (data at the address to be exclusively controlled) 3, determining the flag 4, writing to the flag 5, and releasing the semaphore line, reducing the CPU load.
Since the memory bus is not occupied during a series of processing, the occupation rate of the memory bus can be reduced.

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

第1図はこの発明の一実施例による同期制御装置を説明
するための計算機システムの構成図、第2図はこの発明
の一実施例による共有メモリの排他制御のブロック図、
第3図は従来の同期制御装置を説明する計算機システム
構成図である。 (1)は第1のCPU 、 (2)は第2のCPU 、
 (3)は共有メモリ、(3a)はアドレス記憶回路、
(3b)はメモリ部、(3C)はメモリ制御回路、(3
d)はデータ判定回路、(4)はメモリパス、(6)は
同期線である。 第 図 第 3 図 手 続 補 正 書(自発) 平成 2年 4月 1、事件の表示 特願平2−45261、 発明の名称 同期制御装置 補正をする者 事件との関係 特許出願人 住 所   東京都千代田区丸の内二丁目2番3号代表
者志岐守哉 中白ヒル4階 6 補正の内容 明細書第2頁第11行、第2頁第16行、第3頁第3行
及び第5頁第5行の「ラスト」という各記載をそれぞれ
「テスト」と補正する。 以  上
FIG. 1 is a configuration diagram of a computer system for explaining a synchronous control device according to an embodiment of the present invention, and FIG. 2 is a block diagram of exclusive control of a shared memory according to an embodiment of the present invention.
FIG. 3 is a computer system configuration diagram illustrating a conventional synchronous control device. (1) is the first CPU, (2) is the second CPU,
(3) is a shared memory, (3a) is an address storage circuit,
(3b) is a memory section, (3C) is a memory control circuit, (3
d) is a data determination circuit, (4) is a memory path, and (6) is a synchronization line. Figure 3 Figure Procedural Amendment (Spontaneous) April 1, 1990, Case Indication Patent Application Hei 2-45261, Name of the Invention Relationship with the Person Who Amended the Synchronous Control Device Case Patent Applicant Address Chiyoda, Tokyo 2-2-3 Marunouchi Ward Representative Moriya Shiki Nakajiro Hill 4th Floor 6 Statement of Contents of Amendment Page 2 Line 11, Page 2 Line 16, Page 3 Line 3 and Page 5 Line 5 Correct each description of "last" in the row to "test". that's all

Claims (1)

【特許請求の範囲】[Claims] 複数のCPUと同一のバスで結合する共有メモリをもつ
計算機システムにおいて、同期制御を共有メモリを用い
て行う際、その共有メモリの排他制御を共有メモリ自身
で管理する管理手段を備えたことを特徴とする同期制御
装置。
In a computer system having a shared memory connected to multiple CPUs via the same bus, when synchronization control is performed using the shared memory, the invention is characterized by having a management means for managing exclusive control of the shared memory by the shared memory itself. Synchronous control device.
JP4526190A 1990-02-26 1990-02-26 synchronous control device Pending JPH03246741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4526190A JPH03246741A (en) 1990-02-26 1990-02-26 synchronous control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4526190A JPH03246741A (en) 1990-02-26 1990-02-26 synchronous control device

Publications (1)

Publication Number Publication Date
JPH03246741A true JPH03246741A (en) 1991-11-05

Family

ID=12714349

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4526190A Pending JPH03246741A (en) 1990-02-26 1990-02-26 synchronous control device

Country Status (1)

Country Link
JP (1) JPH03246741A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013502646A (en) * 2009-08-20 2013-01-24 ラムバス・インコーポレーテッド Atomic memory device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013502646A (en) * 2009-08-20 2013-01-24 ラムバス・インコーポレーテッド Atomic memory device
US9658953B2 (en) 2009-08-20 2017-05-23 Rambus Inc. Single command, multiple column-operation memory device
US9898400B2 (en) 2009-08-20 2018-02-20 Rambus Inc. Single command, multiple column-operation memory device
US10552310B2 (en) 2009-08-20 2020-02-04 Rambus Inc. Single command, multiple column-operation memory device
US11204863B2 (en) 2009-08-20 2021-12-21 Rambus Inc. Memory component that performs data write from pre-programmed register
US11720485B2 (en) 2009-08-20 2023-08-08 Rambus Inc. DRAM with command-differentiated storage of internally and externally sourced data
US11748252B2 (en) 2009-08-20 2023-09-05 Rambus Inc. Data write from pre-programmed register
US12189523B2 (en) 2009-08-20 2025-01-07 Rambus Inc. Command-differentiated storage of internally and externally sourced data

Similar Documents

Publication Publication Date Title
JP2821345B2 (en) Asynchronous I/O control method
JP2000003302A (en) Exclusive access control method for shared memory
JPH03246741A (en) synchronous control device
JP3425355B2 (en) Multiple write storage
JPS63311450A (en) Exclusive control system for file access
JPH03194641A (en) Application program sharing system
JP3206453B2 (en) Shared file update control method
KR0171771B1 (en) Address Bus Lockout Control in Computer Systems
JP3517884B2 (en) Data processing device
JP2615046B2 (en) Record addition processing method
JP2994917B2 (en) Storage system
JP2903605B2 (en) File area management processing method
JP3049125B2 (en) CPU interrupt controller
JPS62184560A (en) Input/output buffer control device
JPH0589027A (en) Light buffer with monitoring function
JPH05127975A (en) Shared memory access system
JP2988048B2 (en) Dictionary information resident access device
JPS63155346A (en) Ram check system
JPH01300365A (en) Exclusive control system for multi-processor system
JPS63259746A (en) Data transfer method between bank memories
JPH02257282A (en) Table preparation processor
JPS6238743B2 (en)
JPH0775017B2 (en) Memory access method
JPH0528090A (en) Memory controller
JPS62236061A (en) Inter-cpu communication system