JP2735246B2 - Test and set method - Google Patents

Test and set method

Info

Publication number
JP2735246B2
JP2735246B2 JP24593288A JP24593288A JP2735246B2 JP 2735246 B2 JP2735246 B2 JP 2735246B2 JP 24593288 A JP24593288 A JP 24593288A JP 24593288 A JP24593288 A JP 24593288A JP 2735246 B2 JP2735246 B2 JP 2735246B2
Authority
JP
Japan
Prior art keywords
cpu
data
instruction
memory
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP24593288A
Other languages
Japanese (ja)
Other versions
JPH0293854A (en
Inventor
秀行 矢野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP24593288A priority Critical patent/JP2735246B2/en
Publication of JPH0293854A publication Critical patent/JPH0293854A/en
Application granted granted Critical
Publication of JP2735246B2 publication Critical patent/JP2735246B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は複数のCPUを有する情報処理システムに於
けるメモリ共有領域のインターロックのためのテストア
ンドセット方式に関する。
The present invention relates to a test and set method for interlocking a memory shared area in an information processing system having a plurality of CPUs.

(従来の技術) 従来、第3図に示す如く、CPU、各種I/Oユニット、メ
モリユニット等がそれぞれシステムバスにより接続され
た情報処理システムに於いては、タスク間のメモリ共有
領域のインターロックのためにテストアンドセット命令
(以下TAS命令と称す)が用いられる。
(Prior Art) Conventionally, as shown in FIG. 3, in an information processing system in which a CPU, various I / O units, a memory unit, and the like are connected by a system bus, an interlock of a memory shared area between tasks is performed. For this purpose, a test and set instruction (hereinafter referred to as a TAS instruction) is used.

このTAS命令の動作は、先ず、システムバスを介してC
PUよりメモリユニットへ、所要アドレスとともにTAS指
示が送られる。メモリユニットはシステムバスを介して
CPUよりTAS指示を受けると、メモリより所要アドレスの
データを読出し、同データをシステムバスを介してCPU
へ送出するとともに、上記メモリの上記アドレスに従う
記憶番地に、全ビット“1"のデータ(TASフラグ)を書
込む。
The operation of this TAS instruction is as follows.
The PU sends a TAS instruction to the memory unit together with the required address. The memory unit is connected via the system bus
When a TAS instruction is received from the CPU, the data at the required address is read from the memory, and the data is transferred to the CPU via the system bus.
And writes the data (TAS flag) of all bits "1" into the storage address of the memory according to the address.

このときのメモリユニット内の動作を第4図を用いて
説明する。メモリからの読出しデータは、先ずレジスタ
13に格納され、ECC(Error Checking and Correction)
回路15にてエラー訂正/検出が行なわれた後、レジスタ
11に格納され、システムバス19に出力される。
The operation in the memory unit at this time will be described with reference to FIG. The data read from the memory is first
13, stored in ECC (Error Checking and Correction)
After error correction / detection is performed by the circuit 15, the register
11 and output to the system bus 19.

一方、読出しデータのレジスタ13への格納が終わった
時点で、セレクタ16より全ビット“1"のデータと、これ
に対応するチェックビットとを出力し、メモリへ書込
む。
On the other hand, when storage of the read data in the register 13 is completed, the selector 16 outputs data of all bits “1” and corresponding check bits, and writes the data to the memory.

メモリのリード/ライトのタイミングは通常のライト
指示におけるリードモディファイトライトと同じであ
る。
The read / write timing of the memory is the same as the read-modify-write in the normal write instruction.

上記した従来のTAS命令ではTASフラグとして定形のビ
ットパターン(全ビット“1")を書込んでいた。従って
チェックビットも一定のビットパターンであった。
In the above-mentioned conventional TAS instruction, a fixed bit pattern (all bits “1”) is written as the TAS flag. Therefore, the check bits also have a fixed bit pattern.

次に、CPUが複数設けられる情報処理システムを対象
とした他の従来例を第5図及び第6図を参照して説明す
る。
Next, another conventional example for an information processing system provided with a plurality of CPUs will be described with reference to FIGS. 5 and 6. FIG.

第5図に示す情報処理システムは、システムバスに、
複数のCPUと各種I/Oユニットとメモリユニットがそれぞ
れ接続されている。
The information processing system shown in FIG.
A plurality of CPUs, various I / O units, and memory units are connected.

このような複数のCPUをもつ情報処理システムに於い
ては、上記第3図に示したようなCPUが1つの場合と同
様のTAS命令を用いることも可能であるが、耐故障性向
上の点から、いずれのCPUが共有エリアをロックしてい
るのかを認識できる手段が要求される。これを実現する
手段として、上記TASフラグを定形のビットパターン
(全ビット“1")とせず、TASフラグのフィールドに、
ロックしたCPUを識別できるデータを書くようなTAS命令
が提案された。
In such an information processing system having a plurality of CPUs, it is possible to use the same TAS instruction as in the case of one CPU as shown in FIG. 3, but from the viewpoint of improving fault tolerance. Means that can recognize which CPU has locked the shared area is required. As a means for realizing this, instead of using the TAS flag as a fixed bit pattern (all bits “1”),
A TAS instruction has been proposed that writes data that can identify the locked CPU.

このようなTAS命令手段を用いることにより、共有エ
リアをロックしたまま故障したCPUを容易に認識でき、
故障解析に役立てることができる。
By using such TAS instruction means, it is possible to easily recognize a failed CPU while locking the shared area,
It can be used for failure analysis.

上記したような、共有エリアをロックしているCPUを
認識できるTAS命令の動作を説明すると、先ず、システ
ムバスを介して、CPUよりメモリユニットへ、所要アド
レスとともにTAS指示が送られ、続いて書込みデータが
送られる。
The operation of the TAS instruction that can recognize the CPU that locks the shared area as described above will be described. First, the TAS instruction is sent from the CPU to the memory unit via the system bus to the memory unit, followed by the writing. Data is sent.

メモリユニットではこれらの情報を受取ると、所要ア
ドレスのデータをメモリより読出し、システムバスを介
して要求元CPUへ送出するとともに、読出しデータの最
上位のビットの“0"/“1"を判別し、これが“0"であっ
た場合に限り、書込みデータを書込む。
When the memory unit receives such information, it reads the data at the required address from the memory, sends it out to the requesting CPU via the system bus, and determines "0" / "1" of the most significant bit of the read data. Write data is written only when this is "0".

このときのメモリユニット内の動作を第6図を用いて
説明する。
The operation in the memory unit at this time will be described with reference to FIG.

システムバス28を介してCPUより送られてきた書込み
データはレジスタ22に格納され、又、メモリからの読出
しデータはレジスタ23に格納される。
Write data sent from the CPU via the system bus 28 is stored in the register 22, and read data from the memory is stored in the register 23.

次に、ECC回路25により、上記レジスタ23に格納され
た読出しデータのエラー訂正/検出が行なわれて、その
エラー訂正/検出後のデータがレジスタ21に格納された
後、システムバスに出力される。これとともに、レジス
タ21に格納されたエラー訂正/検出後の読出しデータが
メモリユニット制御部26に送られて、上記読出しデータ
の最上位ビットの“0"/“1"が判別され、同最上位ビッ
トが“0"であるとき(他のCPUによってロックされてい
ないとき)、上記ECC回路25にて、レジスタ22に格納さ
れた書込みデータのチェックビット付加が行なわれ、こ
のチェックビットを付加した書込みデータがレジスタ24
に格納された後、メモリに書込まれる。
Next, an error correction / detection of the read data stored in the register 23 is performed by the ECC circuit 25, and the data after the error correction / detection is stored in the register 21 and output to the system bus. . At the same time, the read data after error correction / detection stored in the register 21 is sent to the memory unit control unit 26, and the most significant bit “0” / “1” of the read data is determined, and When the bit is “0” (when not locked by another CPU), the ECC circuit 25 adds a check bit to the write data stored in the register 22, and writes the data with the check bit added. Data is in register 24
And then written to memory.

このようなTAS命令手段により、最上位ビットを除く
所定フィールド部分にCPU識別情報をもつ書込むデータ
(TASフラグ)を扱うことができる。
With such TAS instruction means, it is possible to handle data to be written (TAS flag) having CPU identification information in a predetermined field portion excluding the most significant bit.

第7図(a)は上記第3図及び第4図に示した従来例
に於けるTAS命令の書込みデータを示す図、同図(b)
は上記第5図及び第6図に示した従来例に於けるTAS命
令の書込みデータを示す図である。
FIG. 7A is a diagram showing write data of a TAS instruction in the conventional example shown in FIGS. 3 and 4, and FIG.
FIG. 7 is a diagram showing write data of a TAS instruction in the conventional example shown in FIGS. 5 and 6;

第8図(a)は上記第3図及び第4図に示した従来の
TAS命令手段に於けるシステムバスとメモリI/Oの各デー
タ転送タイミングを示す図、同図(b)は上記第5図及
び第6図に示した従来のTAS命令手段に於けるシステム
バスとメモリI/Oの各データ転送タイミングを示す図で
ある。
FIG. 8 (a) shows the conventional structure shown in FIGS. 3 and 4.
FIG. 5B is a diagram showing the data transfer timing of the system bus and the memory I / O in the TAS instruction means. FIG. 6B shows the system bus and the conventional TAS instruction means shown in FIGS. FIG. 3 is a diagram showing each data transfer timing of a memory I / O.

しかしながら、上記した第5図及び第6図に示した従
来のTAS命令手段に於いては、読出しデータ/書込みデ
ータをそれぞれ個別にECC回路25を通さなければならな
いため、メモリのリード後、ライトを行なうタイミング
は、通常のライト指示より遅くなる。従って上記第5図
及び第6図に示すTAS命令に於いては、専用のタイミン
グを生成して制御しなければならず、制御回路が複雑に
なり、又、上記第3図及び第4図に示す従来例に於いて
はシステムバス上にTAS指示を出すとき所要アドレスの
み送ればよかったのに対し、上記第5図及び第6図に示
すTAS命令に於いては書込みデータ(自己CPUアドレス;C
PU識別情報)も送らなければならず、バスの互換(幅又
はタイミング)がとれない等の問題があった。
However, in the conventional TAS command means shown in FIGS. 5 and 6, the read data / write data must be individually passed through the ECC circuit 25. The timing for performing the operation is later than the normal write instruction. Therefore, in the TAS instruction shown in FIGS. 5 and 6, a dedicated timing must be generated and controlled, and the control circuit becomes complicated. In addition, in the TAS instruction shown in FIGS. In the conventional example shown, only the required address needs to be sent when the TAS instruction is issued on the system bus. On the other hand, the TAS instruction shown in FIG. 5 and FIG.
PU identification information) must also be sent, and there is a problem that bus compatibility (width or timing) cannot be obtained.

(発明が解決しようとする課題) 上記したように、第5図及び第6図に示した従来のTA
S命令手段に於いては、リード/ライトのタイミングが
通常のライト指示より遅くなる(ECCを2回通す)た
め、専用のタイミングを生成して制御しなければなら
ず、制御回路が複雑になるという問題が生じる。又、第
3図及び第4図に示した従来のTAS命令手段に於いては
システムバス上にTAS指示を出すとき所要アドレスのみ
送ればよかったのに対し、第5図及び第6図に示した従
来のTAS命令手段に於いては書込みデータ(自己アドレ
ス)も送らなければならず、このためバスの互換(幅又
はタイミング)がとれないという問題があった。
(Problems to be Solved by the Invention) As described above, the conventional TA shown in FIGS. 5 and 6 is used.
In the S instruction means, since the read / write timing is later than the normal write instruction (two passes through the ECC), a dedicated timing must be generated and controlled, and the control circuit becomes complicated. The problem arises. Also, in the conventional TAS instruction means shown in FIGS. 3 and 4, only the required address needs to be sent when issuing the TAS instruction on the system bus, whereas the conventional TAS instruction means shown in FIGS. In the conventional TAS instruction means, write data (self-address) must also be sent, which causes a problem that bus compatibility (width or timing) cannot be obtained.

本発明は上記実情に鑑みなされたもので、複数のCPU
を有する情報処理システムに於いて、CPU識別情報を書
込むことのできるTAS命令を簡単な制御回路で実現でき
るテストアンドセット方式を提供することを目的とす
る。
The present invention has been made in view of the above circumstances, and has a plurality of CPUs.
It is an object of the present invention to provide a test and set method in which a TAS instruction capable of writing CPU identification information can be realized by a simple control circuit in an information processing system having a CPU.

[発明の構成] (課題を解決するための手段及び作用) 本発明は、複数のCPUと単一のメモリユニットがシス
テムバスに接続された情報処理システムに於いて、メモ
リユニットには、CPUから特定命令を受けたとき、その
相手CPUより送付されたアドレスに従うデータをメモリ
から読出し、同データを上記相手CPUに転送するととも
に、読出したデータの特定ビットを検査し、同ビットが
オフのとき、特定ビットをオンとした所定のデータを上
記メモリの上記アドレスに従う記憶番地に書込み、上記
特定ビットがオンのとき、書込みを実行せず上記特定命
令の処理を終了する手段を有し、上記各CPUには、上記
メモリユニットより受けたデータの特定ビットを検査
し、同ビットがオフのとき、特定ビットがオンで、かつ
特定ビットを除く所定フィールドにCPU識別情報をもつ
データを書込み指示とともに上記メモリユニットに送出
する手段を有してなる構成としたものである。
[Structure of the Invention] (Means and Actions for Solving the Problems) The present invention relates to an information processing system in which a plurality of CPUs and a single memory unit are connected to a system bus. When a specific instruction is received, data corresponding to the address sent from the partner CPU is read from the memory, the data is transferred to the partner CPU, and a specific bit of the read data is inspected. Means for writing predetermined data with a specific bit turned on to a storage address according to the address of the memory, and when the specific bit is on, ending the processing of the specific instruction without executing writing; Checks a specific bit of the data received from the memory unit, and when the bit is off, the specific field is on and the predetermined field excluding the specific bit is checked. Together with the write instruction data with CPU identification information is obtained by a structure comprising a means for transmitting to said memory unit.

即ち、メモリユニットには、TAS指示を受けると読み
出しデータをシステムバスを介し要求CPUへ送出すると
ともに、読み出しデータの最上位ビットの内容を判別
し、同ビットが“0"であった場合に限り、メモリ上の上
記データ読み出し番地に全ビット“1"のデータを書込む
TAS処理手段をもち、又、CPUには、TAS命令を実行する
際、先ず、システムバスを介しメモリユニットへTAS指
示を送出し、メモリユニットより受けた読み出しデータ
の最上位ビットが“0"であった場合に限り、システムバ
スを介してメモリユニットへ同じアドレスへのライト指
示を送出し、CPU識別情報を書込むファームウェア手段
をもつ構成として、CPU識別情報を書込み可能としたTAS
命令を実現したものである。
That is, upon receiving the TAS instruction, the memory unit sends the read data to the request CPU via the system bus, determines the contents of the most significant bit of the read data, and only when the bit is “0”. Writes data of all bits "1" to the above data read address on the memory
When executing the TAS instruction, the CPU first sends a TAS instruction to the memory unit via the system bus, and the CPU sends the TAS instruction to the CPU. A TAS module that has a firmware unit that sends a write instruction to the same address to the memory unit via the system bus and writes the CPU identification information only when
It is an instruction.

このような構成とすることにより、メモリユニットに
於いて、通常のライト指示とTAS指示が同じタイミング
で制御でき、制御回路を簡単に構成できる。又、CPU識
別情報を書込まないTAS命令を用いるシステムと、シス
テムバスの互換がとれているため、バスインターフェイ
ス部等が共通化できる。
With such a configuration, in the memory unit, the normal write instruction and the TAS instruction can be controlled at the same timing, and the control circuit can be simply configured. Further, since the system using the TAS instruction without writing the CPU identification information is compatible with the system bus, the bus interface unit and the like can be shared.

(実施例) 以下図面を参照して本発明の一実施例を説明する。(Embodiment) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図に於いて、1はエラー訂正/検出後のメモリ読
出しデータを保持するレジスタである。2はシステムバ
ス9より受け取った書込みデータ(例えば第7図(b)
にCPU−IDとして示すCPU識別情報)を保持するレジスタ
である。3はメモリ読出しデータを保持するレジスタで
ある。4はチェックビットを付加した書込みデータを保
持するレジスタである。5は上記レジスタ3の内容のエ
ラー訂正/検出、又はレジスタ2の内容のチェックビッ
ト生成を行なうECC回路である。6は上記レジスタ4の
データ、又は全ビット“1"のデータ(TASフラグ)のい
ずれか一方を選択し、メモリへ出力するセレクタであ
る。7はTAS処理ルーチン71に従い後述するTAS命令処理
を実行するメモリユニットの制御部であり、8はバスイ
ンターフェイス部、9はシステムバスである。
In FIG. 1, reference numeral 1 denotes a register for holding memory read data after error correction / detection. 2 is write data received from the system bus 9 (for example, FIG. 7 (b)
Is a register for holding CPU identification information shown as CPU-ID. Reference numeral 3 denotes a register for holding memory read data. Reference numeral 4 denotes a register for holding write data to which a check bit has been added. An ECC circuit 5 performs error correction / detection of the contents of the register 3 or generates a check bit of the contents of the register 2. A selector 6 selects either the data of the register 4 or the data (TAS flag) of all bits “1” and outputs the selected data to the memory. Reference numeral 7 denotes a control unit of a memory unit which executes TAS instruction processing described later in accordance with the TAS processing routine 71, 8 denotes a bus interface unit, and 9 denotes a system bus.

第2図は上記実施例に於けるTAS命令の処理フローを
示すフローチャートである。第2図に於いて、S10はTAS
指示を出力するステップであり、システムバスを介しメ
モリユニットへTAS指示を送出し、応答として読出しデ
ータを受けとる。S11は最上位ビットをチェックするス
テップであり、TAS指示の応答として受けとった読出し
データの最上位ビットが“0"であるか“1"であるかを判
断する。S12はCPU識別情報(第7図(b)参照)をライ
ト指示するステップであり、システムバス9及びバスイ
ンターフェイス部8を介してメモリユニットへライト指
示を送出し、書込みデータとしてCPU識別情報を送出す
る。
FIG. 2 is a flowchart showing a processing flow of the TAS instruction in the above embodiment. In Figure 2, S10 is TAS
In this step, the TAS instruction is sent to the memory unit via the system bus, and the read data is received as a response. S11 is a step of checking the most significant bit, and determines whether the most significant bit of the read data received in response to the TAS instruction is "0" or "1". S12 is a step of instructing writing of CPU identification information (see FIG. 7 (b)), sends a write instruction to the memory unit via the system bus 9 and the bus interface unit 8, and sends CPU identification information as write data. I do.

ここで上記第1図及び第2図を参照して本発明の一実
施例を説明する。
An embodiment of the present invention will now be described with reference to FIGS. 1 and 2.

TAS命令の処理動作に於いて、先ずCPUは、システムバ
ス9を介してメモリユニットへ所要アドレスとともにTA
S指示を送出する(第2図ステップS10)。
In the processing operation of the TAS instruction, first, the CPU sends the TA to the memory unit via the system bus 9 together with the required address.
An S instruction is transmitted (step S10 in FIG. 2).

メモリユニットは上記TAS指示を受け取ると、メモリ
ユニット制御部7内のTAS処理ルーチン71により、先
ず、上記所要アドレスに従うデータをメモリより読出
し、レジスタ3に格納する。更にこのレジスタ3に格納
したデータをECC回路5にてエラー訂正/検出処理した
後、レジスタ1に格納し、システムバス9を介して要求
元CPUへ送出するとともに、最上位ビットの検査を行な
い、同ビット内容が“0"であった場合に限り、セレクタ
1にて全ビット“1"のデータとこれに対応するチェック
ビットを選択し、上記所要アドレスへ書込む。
When the memory unit receives the TAS instruction, the TAS processing routine 71 in the memory unit control unit 7 first reads data according to the required address from the memory and stores it in the register 3. Further, after the data stored in the register 3 is subjected to error correction / detection processing by the ECC circuit 5, the data is stored in the register 1 and transmitted to the requesting CPU via the system bus 9, and the most significant bit is checked. Only when the bit content is "0", the selector 1 selects the data of all bits "1" and the corresponding check bit, and writes the data to the required address.

又、上記最上位ビットの検査で同ビットの内容が“1"
であった場合は書込み動作を行なわず処理を終了する。
In addition, in the inspection of the most significant bit, the content of the same bit is "1".
If so, the process ends without performing the write operation.

CPUは、TAS指示の応答としてシステムバス9を介しメ
モリユニットより送られてきた読出しデータを受け取る
と、最上位ビットの検査を行ない(第2図ステップS1
1)、同ビットの内容が“1"であれば、TAS命令の処理を
終了する。
When the CPU receives the read data sent from the memory unit via the system bus 9 as a response to the TAS instruction, the CPU checks the most significant bit (step S1 in FIG. 2).
1) If the content of the bit is "1", the processing of the TAS instruction is terminated.

又、上記最上位ビットの内容が“0"であれば、上記所
要アドレスとCPU識別情報をライト指示とともにシステ
ムバスを介してメモリユニットへ送出する(第2図ステ
ップS12)。
If the content of the most significant bit is "0", the required address and CPU identification information are sent to the memory unit via the system bus together with the write instruction (step S12 in FIG. 2).

この際のCPU識別情報をもつ書込みデータは、第7図
(b)のような形式となっており、最上位ビットを含ま
ない所定のフィールドにCPU識別情報(CPU−ID)を保持
し、その他のフィールドは全て“1"となる。
At this time, the write data having the CPU identification information has a format as shown in FIG. 7B, and holds the CPU identification information (CPU-ID) in a predetermined field not including the most significant bit. Are all "1".

メモリユニットはライト指示を受けると、制御簡素化
のためリードモディファイライトを行ない、上記CPU識
別情報をもつ書込みデータをレジスタ2へ格納し、上記
所要アドレスの読出しデータをレジスタ3へ格納して、
ECC回路5によりレジスタ2の内容にチェックビットを
付加し、レジスタ4、及びセレクタ6を介してメモリへ
書込む。
Upon receiving the write instruction, the memory unit performs a read-modify-write operation for control simplification, stores the write data having the CPU identification information in the register 2, and stores the read data of the required address in the register 3.
A check bit is added to the contents of the register 2 by the ECC circuit 5 and written into the memory via the register 4 and the selector 6.

このようにしてTAS命令を実行する構成としたことに
より、メモリユニットに於いて、通常のライト指示と、
TAS指示が同じタイミングで制御でき、従って制御回路
を簡単に構成できる。又、CPU識別情報を書込まないTAS
命令を用いるシステムと、システムバスの互換がとれて
いるため、バスインターフェイス部等が共通化できる。
With the configuration for executing the TAS instruction in this manner, a normal write instruction and a
The TAS instruction can be controlled at the same timing, so that the control circuit can be simply configured. TAS without writing CPU identification information
Since the system using the instruction is compatible with the system bus, the bus interface unit and the like can be shared.

[発明の効果] 以上詳記したように本発明のテストアンドセット方式
によれば、複数のCPUと単一のメモリユニットとが互い
にシステムバスを介して接続された情報処理システムに
於いて、上記メモリユニットには、CPUから特定命令を
受けたとき、その相手CPUより送付されたアドレスに従
うデータをメモリから読出し、同データを上記相手CPU
に転送するとともに、読出したデータの特定ビットを検
査し、同ビットがオフのとき、特定ビットをオンとした
所定のデータを上記メモリの上記アドレスに従う記憶番
地に書込み、上記特定ビットがオンのとき、書込みを実
行せず上記特定命令の処理を終了する手段を有し、上記
CPUには、上記メモリユニットより受けたデータの特定
ビットを検査し、同ビットがオフのとき、特定ビットが
オンで、かつ特定ビットを除く所定フィールドにCPU識
別情報をもつデータを書込み指示とともに上記メモリユ
ニットに送出する手段を有してなる構成としたことによ
り、CPU識別情報を書込むことのできるTAS命令を簡単な
制御回路で実現できる。
[Effects of the Invention] As described in detail above, according to the test and set method of the present invention, in the information processing system in which a plurality of CPUs and a single memory unit are connected to each other via a system bus, When a specific instruction is received from the CPU, the memory unit reads out data according to the address sent from the partner CPU from the memory, and stores the data in the above-mentioned CPU.
And when a specific bit of the read data is checked, and when the specific bit is off, predetermined data with the specific bit turned on is written to a storage address of the memory according to the address, and when the specific bit is on. Having means for terminating the processing of the specific instruction without executing writing,
The CPU checks a specific bit of the data received from the memory unit, and when the bit is off, the specific bit is on, and the data having the CPU identification information in a predetermined field excluding the specific bit is written together with the write instruction. With the configuration including the means for sending to the memory unit, a TAS instruction capable of writing CPU identification information can be realized with a simple control circuit.

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

第1図は本発明の一実施例を示すブロック図、第2図は
上記実施例に於けるTAS命令のCPU側の処理フローを示す
フローチャート、第3図乃至第6図はそれぞれ従来のTA
S命令処理手段を説明するためのブロック図、第7図
(a),(b)はそれぞれ従来のTAS命令処理手段を説
明するための書込みデータ(TASフラグ)の構成例を示
す図、第8図(a),(b)はそれぞれ従来のTAS命令
処理手段を説明するためのタイミングチャートである。 1,2,3,4……レジスタ、5……ECC回路、6……セレク
タ、7……メモリユニット制御部、71……TAS処理ルー
チン、8……バスインターフェイス部、9……システム
バス。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing a processing flow on the CPU side of a TAS instruction in the above embodiment, and FIGS.
FIGS. 7 (a) and 7 (b) are block diagrams for explaining the S instruction processing means, and FIGS. 7 (a) and 7 (b) are diagrams each showing an example of the configuration of write data (TAS flag) for explaining the conventional TAS instruction processing means. FIGS. 1A and 1B are timing charts for explaining conventional TAS instruction processing means. 1, 2, 3, 4,... Registers, 5... ECC circuit, 6... Selector, 7... Memory unit control section, 71... TAS processing routine, 8.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】メモリの共有領域アクセス時に同領域をイ
ンターロックするための特定命令の発生機能をもつ複数
のCPUと、同CPUから受けた特定命令に従うメモリアクセ
ス制御と状態表示制御を行なう単一のメモリユニットと
を互いにバス接続してなる情報処理システムであって、
上記メモリユニットには、CPUから特定命令を受けたと
き、その相手CPUより送付されたアドレスに従うデータ
をメモリから読出し、同データを上記相手CPUに転送す
るとともに、読出したデータの特定ビットを検査し、同
ビットがオフのとき、特定ビットをオンとした所定のデ
ータを上記メモリの上記アドレスに従う記憶番地に書込
み、上記特定ビットがオンのとき、書込みを実行せず上
記特定命令の処理を終了する手段を有し、上記CPUに
は、上記メモリユニットより受けたデータの特定ビット
を検査し、同ビットがオフのとき、特定ビットがオン
で、かつ特定ビットを除く所定フィールドにCPU識別情
報をもつデータを書込み指示とともに上記メモリユニッ
トに送出する手段を有してなることを特徴とするテスト
アンドセット方式。
A plurality of CPUs having a function of generating a specific instruction for interlocking the shared area when accessing a shared area of a memory, and a single CPU for performing memory access control and status display control according to the specific instruction received from the CPU. An information processing system in which memory units are connected to each other by a bus,
When the memory unit receives a specific instruction from the CPU, it reads data according to the address sent from the partner CPU from the memory, transfers the data to the partner CPU, and checks a specific bit of the read data. When the bit is off, the predetermined data with the specific bit turned on is written to a storage address according to the address of the memory, and when the specific bit is on, the writing is not executed and the processing of the specific instruction is terminated. Means, the CPU checks a specific bit of the data received from the memory unit, and when the bit is OFF, the specific bit is ON and the CPU has CPU identification information in a predetermined field excluding the specific bit. A test and set method comprising means for sending data to the memory unit together with a write instruction.
JP24593288A 1988-09-30 1988-09-30 Test and set method Expired - Fee Related JP2735246B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24593288A JP2735246B2 (en) 1988-09-30 1988-09-30 Test and set method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24593288A JP2735246B2 (en) 1988-09-30 1988-09-30 Test and set method

Publications (2)

Publication Number Publication Date
JPH0293854A JPH0293854A (en) 1990-04-04
JP2735246B2 true JP2735246B2 (en) 1998-04-02

Family

ID=17141001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24593288A Expired - Fee Related JP2735246B2 (en) 1988-09-30 1988-09-30 Test and set method

Country Status (1)

Country Link
JP (1) JP2735246B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124167A (en) * 1996-10-17 1998-05-15 Miyagi Oki Denki Kk System clock switching device

Also Published As

Publication number Publication date
JPH0293854A (en) 1990-04-04

Similar Documents

Publication Publication Date Title
JP2996440B2 (en) Diagnosis method of data processing system
JP2735246B2 (en) Test and set method
JP2513615B2 (en) Storage device with ECC circuit
JP2883091B2 (en) Multiprocessor system
JP2635637B2 (en) In-system memory test equipment
JPS6258354A (en) Test method for main memory
JP3012402B2 (en) Information processing system
JPH01270157A (en) Multiplex memory device
JP3341738B2 (en) Memory error detection method
JPS5827531B2 (en) System operation control device in data transmission system
JP2000348001A (en) Memory control circuit, detection of memory fault used for the same and recording medium recording its control program
JPS5831680B2 (en) Control method for multiplexed storage device
JPH0398140A (en) Parallel bus system
JPS63223946A (en) Data memory system
JPH0514293B2 (en)
JPH0474254A (en) Microprocessor diagnostic system
JPS61256449A (en) Bus diagnosis system
JPH01292561A (en) Test-and-set system
JPH0253169A (en) Trouble detecting device for multi-microprocessor system
JPS6130296B2 (en)
JPH01113838A (en) Checking system
JPS6132153A (en) Memory controller
JPH06124242A (en) Duplex shared memory equivalency guarantee system
JPH11149416A (en) Data assurance device
JPS6043549B2 (en) Data transfer control method

Legal Events

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