JPH01142836A - Debugging system for parallel processing system - Google Patents

Debugging system for parallel processing system

Info

Publication number
JPH01142836A
JPH01142836A JP62299924A JP29992487A JPH01142836A JP H01142836 A JPH01142836 A JP H01142836A JP 62299924 A JP62299924 A JP 62299924A JP 29992487 A JP29992487 A JP 29992487A JP H01142836 A JPH01142836 A JP H01142836A
Authority
JP
Japan
Prior art keywords
flag
stopped
processors
program
processor
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
JP62299924A
Other languages
Japanese (ja)
Other versions
JP2771979B2 (en
Inventor
Shigeru Koyanagi
滋 小柳
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 JP62299924A priority Critical patent/JP2771979B2/en
Publication of JPH01142836A publication Critical patent/JPH01142836A/en
Application granted granted Critical
Publication of JP2771979B2 publication Critical patent/JP2771979B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the difficulty of debugging by providing each processor with a break instruction for writing contents in a flag and a check point instruction for referring the contents of the flag and deciding whether the execution of the program is to be stopped or not. CONSTITUTION:In order to stop the whole system when a program A for a specific processor is to execute an instruction set up on a certain address, a break instruction 13 is set up in the address. On the other hand, check point instructions 14 are set up on positions to be stopped in programs B, C for other processors. When the specific processor executes the break instruction, a flag 15 is set up, the processor is stopped, and when other processors execute the check point instructions thereafter, the processors are stopped. Consequently, all the processors constituting a parallel processing system to be asynchronously processed can be stopped at a fixed position, so that the debugging of programs can be easily executed.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、複数のプロセッサ番こより構成される並列処
理システムのデバッグ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a debugging method for a parallel processing system composed of a plurality of processor numbers.

(従来の技術) プログラムのデパックにおいては、プログラムを特定の
位置で停止させ、メモリの内容等を調べる機能が重要で
ある。しかるに、複数のプロセッサが非同期で動作する
環境においては、特定のプロセッサを停止させても他の
プロセッサが停止しないためデバッグが困難となる。ま
た、特定のプロセッサを停止させるときに、他のプロセ
ッサを強制的lこ停止させる方式も考えられるが、プロ
セッサが非同期で動作する場合fζは強制的fこ停止さ
せられたプロセッサ内のプログラムの停止位置はプログ
ラムの実行毎に異り一定とはならないため、メモリの内
容が一定とはならず、デバッグが困難きなる欠点があっ
た。
(Prior Art) When depacking a program, it is important to have a function to stop the program at a specific position and check the contents of memory. However, in an environment where multiple processors operate asynchronously, debugging becomes difficult because stopping a specific processor does not stop other processors. Also, when stopping a specific processor, a method of forcibly stopping other processors can be considered, but if processors operate asynchronously, fζ is a method in which the program in the stopped processor is forcibly stopped. Since the location differs each time the program is executed and is not constant, the contents of the memory are not constant, making debugging difficult.

(発明が解決しようとする問題点) この様に従来の並列処理システムのデバッグ方式におい
ては、各プロセッサが同時に停止した場合でも各プログ
ラムの停止位置が一定とはならないという欠点が有った
(Problems to be Solved by the Invention) As described above, the conventional debugging method for parallel processing systems has the drawback that even when all processors are stopped at the same time, the stopping position of each program is not constant.

そこで、本発明は並列処理システムにおけるデバッグの
困難さを軽減することを目的としたものであり、特定の
プロセッサが停止したときに、他のプロセッサを一定の
位置で停止させることlこより、メモリの内容を一定l
こ保つことを目的としている。
Therefore, the present invention aims to reduce the difficulty of debugging in a parallel processing system. When a specific processor stops, other processors are stopped at a fixed position. Keep the content constant
The purpose is to maintain this.

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

(問題点を解決するための手段) 本発明では、並列処理システムを構成する全てのプロセ
ッサが書込み・読出し共可能なフラグを備え、このフラ
グfこ内容を書込むbreak命令と、このフラグの内
容を参照してプログラムの実行を停止するか否かを判断
するcheck point命令を各プロセッサに備え
ることにより、非同期に動作する並列処理システムを一
定の位置で停止させることを可能とする。
(Means for Solving the Problems) In the present invention, all the processors constituting the parallel processing system are provided with a flag that can be written to and read from, and a break instruction to write the contents of this flag and the contents of this flag are provided. By providing each processor with a check point instruction that refers to the check point instruction and determines whether to stop program execution, it is possible to stop a parallel processing system that operates asynchronously at a fixed position.

(作用) 特定のプロセッサのプログラムがある番地の命令を実行
するとき「こシステム全体を停止させるためlこは、そ
の番地にbreak命令を設定する。また他のプロセッ
サのプログラム中fこは停止させてもよい位置にche
ck point命令を設定する。特定のプロセッサが
break命令を実行するとフラグが設定され、そのプ
ロセッサは停止する。また、それ以降lこ他のプロセッ
サがcheck point命令を実行すると停止する
。従ってシステム全体を一定の状態で停止させることが
できる。
(Operation) When a program of a specific processor executes an instruction at a certain address, a break instruction is set at that address in order to stop the entire system. Also, programs of other processors are stopped. che in a good position
Set the ck point instruction. When a particular processor executes a break instruction, a flag is set and that processor stops. Further, if any other processor executes a check point instruction thereafter, the process will stop. Therefore, the entire system can be stopped in a constant state.

(実施例) 以下、本発明の1実施例について説明する。第1図は本
発明の1実施例のシステム構成図である。
(Example) Hereinafter, one example of the present invention will be described. FIG. 1 is a system configuration diagram of one embodiment of the present invention.

図のようfこ複数個のプロセッサ1がアクセスできるフ
ラグ2を備えている。
As shown in the figure, a flag 2 is provided that can be accessed by a plurality of processors 1.

第2図は、3つのプログラムAIO,B1t、C12が
それぞれ異るプロセッサ上lこ置かれたときの実行過程
を示した図である。図ではプログラムA中の特定の位置
lこbreak命令13が設定されておりプログラムB
、C中lこはcheck point命令14が設定さ
れている。また、フラグ15は初期値yであり、フラグ
がIになったときfこシステム全体を停止させる。以下
、第2図に沿って説明する。
FIG. 2 is a diagram showing the execution process when three programs AIO, B1t, and C12 are placed on different processors. In the figure, break command 13 is set at a specific position in program A, and program B
, a check point instruction 14 is set in C. Further, the flag 15 has an initial value y, and when the flag becomes I, the entire system is stopped. This will be explained below with reference to FIG.

初期状態でプログラムA、B、Cを同時に起動する。図
中矢印16は、現在実行中のプログラムの位置を示す。
Start programs A, B, and C at the same time in the initial state. An arrow 16 in the figure indicates the position of the program currently being executed.

状態1ではプログラムBはcheck point l
 171こ到達している。しかしフラグがyであるため
、この段階ではプログラムBは停止せず次の命令fこ移
る。
In state 1, program B checks point l
It has reached 171. However, since the flag is y, program B does not stop at this stage and moves to the next instruction f.

状態2ではプログラムAはbreak 13に到達して
いる。その結果フラグは11こ設定され、プログラムA
は停止する。しかしプログラムB、Cは実行を継続する
In state 2, program A has reached break 13. As a result, 11 flags are set, and program A
stops. However, programs B and C continue to execute.

状態3では、プロゲラABはcheck point 
21gに到達し、フラグが1であるため、この位置で停
止する。同様fこ状態4では、プログラムCはchec
kpoint3 20)こ到達し、フラグが1であるた
めこの位置で停止する。その結果、3つのプログラムが
全て停止したことになる。
In state 3, Progera AB is check point
Since it reaches 21g and the flag is 1, it stops at this position. Similarly, in state 4, program C runs check
It reaches kpoint3 20) and stops at this position because the flag is 1. As a result, all three programs have stopped.

次に本発明の第2の実施例(こついて説明する。Next, a second embodiment of the present invention will be explained.

第3図は第2の実施例のシステム構成図である。FIG. 3 is a system configuration diagram of the second embodiment.

ここでは複数のプロセッサ1が各々フラグ2を備えてい
る。第4図は第2の実施例において、3っのプログラム
AIO,Bl 1 、C12がそれぞれ異るプロセッサ
上に置かれたときの実行過程を示した図である。
Here, each of the plurality of processors 1 is provided with a flag 2. FIG. 4 is a diagram showing the execution process when three programs AIO, Bl 1 and C12 are respectively placed on different processors in the second embodiment.

ここでも、プログラムA中の特定の位置にbreak命
令13が設定されており、プログラムB、C中fこはc
heck point命令14が設定されている。また
、フラグA、B、C15は初期値グであり、フラグが1
fこなったときにシステム全体を停止させる。
Again, break command 13 is set at a specific position in program A, and in programs B and C, f is c.
A heck point instruction 14 is set. Also, flags A, B, and C15 are initial values, and the flag is 1.
When this happens, the entire system is stopped.

以下、第4図に沿って同様に説明する。The same explanation will be given below with reference to FIG.

初期状態でプログラムA、B、Cを同時に起動する。図
中矢印16は現在実行中のプログラムの位置を示す。
Start programs A, B, and C at the same time in the initial state. An arrow 16 in the figure indicates the position of the program currently being executed.

状態1ではプロゲラABはcheck point 1
 17に到達している。しかしフラグBがグであるため
この段階ではプログラムBは停止せず次の命令fこ移る
In state 1, Progera AB is check point 1
It has reached 17. However, since flag B is OFF, program B does not stop at this stage and moves to the next instruction f.

状態2ではプログラムAはbreck 18 fこ到達
している。その結果全プロセッサのフラグはIIこ設定
され、プログラムAは停止する。しかしプログラムB、
Cは実行を継続する。
In state 2, program A has reached breck 18 f. As a result, the flags of all processors are set, and program A is stopped. However, program B
C continues execution.

状態3では、プログラムBはcheck point 
2191こ到達し、フラグBが1であるため、この位置
で停止する。同様に状態4ではプログラムCはchec
kpoint 320に到達し、フラグCが1であるた
めこの位置で停止する。その結果、3つのプログラムが
全て停止したことになる。
In state 3, program B checks the check point
2191 is reached and flag B is 1, so it stops at this position. Similarly, in state 4, program C runs check
It reaches kpoint 320 and stops at this position because flag C is 1. As a result, all three programs have stopped.

また、本方式を拡張してフラグをn bitすることに
より、プログラムの停止を柔軟に制御することができる
。例えば、break命令、check point命
令共に引数をもたせる。break命令が実行されたと
きは、この引数の値をフラグに設定する。
Furthermore, by extending this method to include n bits of flags, program termination can be flexibly controlled. For example, both the break command and the check point command have arguments. When the break instruction is executed, the value of this argument is set to a flag.

check point命令が実行されたときlこは、
その引数の値とフラグとを比較し、引数の値よりフラグ
の値が大きい時のみ停止するように拡張することができ
る。また、check point命令の引数の値とフ
ラグの値とが一致したときのみ停止するようにしてもよ
い。更にここで云うプロセッサは抽象概念であり、1プ
ロセツサを1台の処理装置と対応させてもよく、複数の
プロセッサを1台の処理装置上のプロセスと対応させて
もよい。
When the check point instruction is executed,
It can be expanded to compare the value of the argument with the flag and stop only when the value of the flag is greater than the value of the argument. Alternatively, the process may be stopped only when the value of the argument of the check point instruction and the value of the flag match. Furthermore, the processor referred to here is an abstract concept, and one processor may correspond to one processing device, or a plurality of processors may correspond to processes on one processing device.

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

以上の説明から明らかなようlこ、本発明fこよれば非
同期で動作する並列処理システムを構成するプロセッサ
をすべて一定の位置で停止させることができ、プログラ
ムのデバッグを容易lこすることができる。
As is clear from the above description, according to the present invention, all the processors that make up a parallel processing system that operates asynchronously can be stopped at a fixed position, making it easier to debug programs. .

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

第1図は本発明の第1の実施例のシステム構成図、第2
図は本発明の第1の実施例の実行過程を示す図、第3図
は本発明の第2の実施例のシステム構成図、第4図は本
発明の第2の実施例の実行過程を示す図である。
Figure 1 is a system configuration diagram of the first embodiment of the present invention;
The figure shows the execution process of the first embodiment of the present invention, Figure 3 is a system configuration diagram of the second embodiment of the invention, and Figure 4 shows the execution process of the second embodiment of the invention. FIG.

Claims (2)

【特許請求の範囲】[Claims] (1)複数のプロセッサにより構成される並列処理シス
テムにおいて、各プロセッサにより読出し書込み可能な
フラグと、プロセッサが前記フラグに情報を書込んだ場
合に当該プロセッサのプログラム実行を停止させる手段
と、それ以外の各プロセッサに対し前記フラグの情報を
読出し、これに応じてプログラムを停止させる手段とを
具備したことを特徴とする並列処理システムのデバッグ
方式。
(1) In a parallel processing system composed of a plurality of processors, a flag that can be read and written by each processor, a means for stopping program execution of the processor when a processor writes information to the flag, and other things. A debugging method for a parallel processing system, comprising means for reading the flag information for each processor and stopping the program accordingly.
(2)フラグは、各プロセッサに対して夫々設けられた
ものである特許請求の範囲第1項記載の並列処理システ
ムのデバッグ方式。
(2) A debugging method for a parallel processing system according to claim 1, wherein the flag is provided for each processor.
JP62299924A 1987-11-30 1987-11-30 Parallel processing method Expired - Fee Related JP2771979B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62299924A JP2771979B2 (en) 1987-11-30 1987-11-30 Parallel processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62299924A JP2771979B2 (en) 1987-11-30 1987-11-30 Parallel processing method

Publications (2)

Publication Number Publication Date
JPH01142836A true JPH01142836A (en) 1989-06-05
JP2771979B2 JP2771979B2 (en) 1998-07-02

Family

ID=17878573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62299924A Expired - Fee Related JP2771979B2 (en) 1987-11-30 1987-11-30 Parallel processing method

Country Status (1)

Country Link
JP (1) JP2771979B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164362A (en) * 1981-04-02 1982-10-08 Matsushita Electric Ind Co Ltd Debugging device in multi-processor system
JPS5887645A (en) * 1981-11-20 1983-05-25 Hitachi Ltd Correspondence system between computers
JPS61282937A (en) * 1985-06-07 1986-12-13 Matsushita Electric Ind Co Ltd Information processing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164362A (en) * 1981-04-02 1982-10-08 Matsushita Electric Ind Co Ltd Debugging device in multi-processor system
JPS5887645A (en) * 1981-11-20 1983-05-25 Hitachi Ltd Correspondence system between computers
JPS61282937A (en) * 1985-06-07 1986-12-13 Matsushita Electric Ind Co Ltd Information processing device

Also Published As

Publication number Publication date
JP2771979B2 (en) 1998-07-02

Similar Documents

Publication Publication Date Title
JPH01124031A (en) Microcomputer
JPH01142836A (en) Debugging system for parallel processing system
JP2671160B2 (en) Exception handling method
JPH0713884A (en) Method for diagnosing input/output device
JPS61138361A (en) Parallel processing system
JPS62254237A (en) Inter-printer type branch instruction executing system
JPH02281341A (en) Write data confirming method for debugging
JPS62293372A (en) Master and slave processor
JPS61103245A (en) Extension system of machine word instruction system
JPH04167146A (en) Address tracing system for information processor
JPS5936838A (en) Controlling method of interface
JPS62202234A (en) Advance control system
JPH01201730A (en) Information processor
JPS6249454A (en) Debug supporting circuit for microprogram
JPS63170752A (en) Trace circuit
JPH04264632A (en) Execution tracing system for parallel arithmetic processing unit
JPH027129A (en) Arithmetic processing unit
JPS6218073B2 (en)
JPS60193046A (en) Detecting system for instruction exception
JPH02183342A (en) Interruption controller
JPH0113131B2 (en)
JPH02110744A (en) Information processor
JPS59177658A (en) Debugging control system
JPH0133865B2 (en)
JPH04181321A (en) Microprogram loading system

Legal Events

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