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
JPH0727474B2 - Data flow program debug device - Google Patents
[go: Go Back, main page]

JPH0727474B2 - Data flow program debug device - Google Patents

Data flow program debug device

Info

Publication number
JPH0727474B2
JPH0727474B2 JP63165690A JP16569088A JPH0727474B2 JP H0727474 B2 JPH0727474 B2 JP H0727474B2 JP 63165690 A JP63165690 A JP 63165690A JP 16569088 A JP16569088 A JP 16569088A JP H0727474 B2 JPH0727474 B2 JP H0727474B2
Authority
JP
Japan
Prior art keywords
program
data flow
data
information
execution
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
JP63165690A
Other languages
Japanese (ja)
Other versions
JPH0214334A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP63165690A priority Critical patent/JPH0727474B2/en
Priority to US07/374,060 priority patent/US5038348A/en
Publication of JPH0214334A publication Critical patent/JPH0214334A/en
Publication of JPH0727474B2 publication Critical patent/JPH0727474B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はデータフロープログラムのデバッグ装置に関
し、特に、データフロープログラムに展開されるソース
プログラムを変数表示することにより、ソースプログラ
ムのデバッグを可能にするようなデバッグ装置に関す
る。
Description: TECHNICAL FIELD The present invention relates to a data flow program debugging device, and in particular, enables source program debugging by displaying the source program expanded in the data flow program as variables. And a debugging device.

[従来の技術] 従来のコンピュータは、プログラムとして種々の命令を
プログラムメモリに記憶しておき、プログラムカウンタ
によってプログラムメモリのアドレスを逐次指定して順
次命令を読出し、その命令を実行するというノイマン型
計算機が大部分である。
[Prior Art] In a conventional computer, various instructions are stored in a program memory as a program, addresses of the program memory are sequentially designated by a program counter, the instructions are sequentially read, and the Neumann computer is executed. Is the majority.

一方、データフロー型情報処理装置は、プログラムカウ
ンタによる逐次的な命令の実行という概念を持たない非
ノイマン型計算機の一種である。このようなデータフロ
ー型情報処理装置は、命令が並列に処理されることを前
提にしたアーキテクチャに従っている。そして、演算の
対象になるデータが揃い次第、命令の実行が可能とな
り、データによって複数の命令を同時に駆動するため、
データの自然な流れに従って並列的にプログラムが実行
される。その結果、演算の所要時間が大幅に短縮できる
ことになる。
On the other hand, the data flow type information processing apparatus is a type of non-Neumann type computer that does not have the concept of sequential instruction execution by a program counter. Such a data-flow type information processing device has an architecture based on the premise that instructions are processed in parallel. Then, as soon as the data to be operated is available, the instruction can be executed, and multiple instructions are driven simultaneously by the data,
Programs are executed in parallel according to the natural flow of data. As a result, the time required for the calculation can be greatly reduced.

第5図は従来のデータフロー型情報処理装置の一例を示
す概略ブロック図であり、第6図は第5図に示した情報
処理装置の各部分を巡回するデータパケットの基本構成
を示す図であり、第7図はプログラムメモリに記憶され
るデータフロープログラムの一部を示す図である。
FIG. 5 is a schematic block diagram showing an example of a conventional data flow type information processing apparatus, and FIG. 6 is a diagram showing a basic configuration of a data packet circulating in each part of the information processing apparatus shown in FIG. FIG. 7 is a diagram showing a part of the data flow program stored in the program memory.

まず、第5図,第6図および第7図を参照して、データ
フロー型情報処理装置の構成と概略の動作について説明
する。第6図に示したデータパケットの行先フィールド
には行先情報が格納され、命令フィールドには命令情報
が格納され、データ1フィールドまたはデータ2フィー
ルドにはオペランドデータが格納される。
First, with reference to FIG. 5, FIG. 6 and FIG. 7, the configuration and schematic operation of the data flow type information processing apparatus will be described. Destination information of the data packet shown in FIG. 6 stores destination information, instruction information stores instruction information, and data 1 field or data 2 field stores operand data.

第5図において、プログラム記憶部(PS)1はプログラ
ムメモリを含み、そのプログラムメモリには第7図に示
すように、行先情報と命令情報とからなるデータフロー
プログラムが記憶されている。プログラム記憶部1はデ
ータパケットの行先情報に基づくアドレス指定によって
行先情報および命令情報を読出し、各情報をデータパケ
ットの行先フィールドおよび命令フィールドに格納し
て、FIFOからなる入力バッフア2a,2bに出力する。
In FIG. 5, the program storage unit (PS) 1 includes a program memory, and as shown in FIG. 7, a data flow program including destination information and instruction information is stored in the program memory. The program storage unit 1 reads out the destination information and the instruction information by addressing based on the destination information of the data packet, stores each information in the destination field and the instruction field of the data packet, and outputs it to the input buffers 2a, 2b made of FIFO. .

対データ検出器(FC)2は、プログラム記憶部1から入
力バッフア2aおよび2bを介して入力されるデータパケッ
トの待合わせを行ない、行先情報が一致する2つのデー
タパケットのうち、一方のデータパケットのオペランド
データを他方のデータパケットの所定のデータフィール
ドに格納して、FIFOからなる入力バッフア3aに出力す
る。なお、このとき、上述の一方のデータパケットは消
滅する。
The counter data detector (FC) 2 waits for a data packet input from the program storage unit 1 via the input buffers 2a and 2b, and selects one of the two data packets having the same destination information. The operand data of is stored in a predetermined data field of the other data packet and is output to the input buffer 3a composed of FIFO. At this time, the one data packet described above disappears.

演算処理部(FP)3は対データ検出部2から入力バッフ
ア3aを介して入力されるデータパケットの命令情報を解
読し、その2つのオペランドデータに対して所定の演算
処理を施し、その結果をデータパケットのデータフィー
ルドに格納して分岐部4に出力する。
The arithmetic processing unit (FP) 3 decodes the command information of the data packet input from the paired data detection unit 2 via the input buffer 3a, performs a predetermined arithmetic processing on the two operand data, and outputs the result. The data is stored in the data field of the data packet and output to the branch unit 4.

分岐部4はデータパケットの行先情報に基づいて、その
データパケットをFIFOからなる入力バッフア1aに与える
か、あるいはFIFOからなる入力バッフア5aを介して外部
データメモリ(EDS)6に与える。入力バッフア1aから
のデータパケットまたは外部データメモリ5から出力バ
ッファ5bを介して出力されるデータパケットは合流部6
に与えられ、合流部6はそれらのデータパケットを先着
順にプログラム記憶部1に与える。
Based on the destination information of the data packet, the branching unit 4 gives the data packet to the input buffer 1a made up of FIFO, or gives it to the external data memory (EDS) 6 via the input buffer 5a made up of FIFO. The data packet from the input buffer 1a or the data packet output from the external data memory 5 via the output buffer 5b is the merging unit 6
And the merging unit 6 supplies the data packets to the program storage unit 1 in the order of arrival.

第5図に示されたデータフロー型情報処理装置において
は、データパケットが、プログラム記憶部1→対データ
検出部2→演算処理部3→分岐部4(→外部データメモ
リ5)→合流部6→プログラム記憶部1…のように回り
続けることにより、プログラム記憶部1に記憶されたプ
ログラムに基づく演算処理が進行する。
In the data flow type information processing apparatus shown in FIG. 5, the data packet is stored in the program storage unit 1-> pair data detection unit 2-> arithmetic processing unit 3-> branching unit 4 (-> external data memory 5)-> merging unit 6 → By continuing to rotate like the program storage unit 1, the arithmetic processing based on the program stored in the program storage unit 1 proceeds.

第8図は第5図に示したプログラム記憶部1の概略の構
成を示す図である。第8図において、入力データラッチ
部11はデータパケットの行先情報およびオペランドデー
タを保持するものであり、命令情報は消去される。保持
されたオペランドと、行先情報をもとにしてプログラム
メモリ13から読出された新しい行先情報と命令情報とが
出力データラッチ部14に与えられてラッチされる。入力
データラッチ部11でラッチされた行先情報はアドレス計
算部12に与えられ、その行先情報からプログラムメモリ
13のアドレスが計算される。プログラムメモリ13は前述
の第7図に示したような行先情報と命令情報からなるデ
ータフロープログラムを記憶しており、上述のアドレス
により新しい行先情報と命令情報が出力データラッチ部
14に与えられる。
FIG. 8 is a diagram showing a schematic configuration of the program storage unit 1 shown in FIG. In FIG. 8, the input data latch unit 11 holds the destination information and operand data of the data packet, and the command information is erased. The held operand and the new destination information and instruction information read from the program memory 13 based on the destination information are given to the output data latch unit 14 and latched. The destination information latched by the input data latch unit 11 is given to the address calculation unit 12, and the destination memory information is used to program memory.
13 addresses are calculated. The program memory 13 stores the data flow program including the destination information and the instruction information as shown in FIG. 7, and the new destination information and the instruction information are output by the above-mentioned address.
Given to 14.

[発明が解決しようとする課題] 上述のデータフロー型情報処理装置においては、演算の
対象となるデータが揃い次第命令の実行が可能となり、
データの自然な流れに従って並列的にかつ非同期にプロ
グラムが実行される。そのため、通常のノイマン型計算
機において実行される場合に書かれたようなソースプロ
グラムをデータフロープログラムに展開して実行する場
合、その実行順序はノイマン型計算機における実行順序
とは必ずしも一致しないため、単純にプログラムを辿る
だけでは、そのソースプログラムの誤りを発見し、正す
ことができないという問題点があった。また、展開され
たデータフロープログラムを実行するときに誤りを発見
することはさらに困難であり、またソースプログラムと
の対応関係を知ることにも大変な困難が生じるという問
題点があった。
[Problems to be Solved by the Invention] In the above-mentioned data flow type information processing apparatus, it becomes possible to execute an instruction as soon as data to be operated is prepared,
Programs are executed in parallel and asynchronously according to the natural flow of data. Therefore, when a source program such as the one written when it is executed in a normal Neumann computer is developed and executed in a data flow program, the execution order does not always match the execution order in the Neumann computer, so it is simple. There was a problem that the error of the source program could not be found and corrected only by following the program. In addition, it is more difficult to find an error when executing the expanded data flow program, and it is also very difficult to know the correspondence with the source program.

それゆえに、この発明の主たる目的は、データフロー型
情報処理装置上で実行可能なデータフロープログラムの
デバッグを効率良く行なうためのデバッグ装置を提供す
ることである。
Therefore, a main object of the present invention is to provide a debug device for efficiently debugging a data flow program executable on a data flow type information processing device.

[課題を解決するための手段] この発明に係るデータフロープログラムのデバッグ装置
は、プログラム記憶手段に記憶されているデータフロー
プログラムの実行する処理装置における複数の構成部分
に対応する機能を模擬的に実行するとともに、データフ
ロープログラムを逐次実行するプログラム実行手段を含
み、状態記憶手段によってプログラム実行時のデータフ
ロープログラム実行状況の情報を得るとともに、データ
遷移記憶手段によってプログラム実行時のデータフロー
プログラムのデータの情報を得て、その情報をデバッグ
情報記憶手段に記憶されているデバッグ情報からそのソ
ースプログラムの各変数に対応させ、プログラム記憶手
段からソースプログラムの各変数に関する情報を読出し
てデバッグ情報表示手段に表示する。
[Means for Solving the Problem] A debugging device for a dataflow program according to the present invention simulates functions corresponding to a plurality of components in a processing device that executes a dataflow program stored in a program storage means. Data flow program data at the time of program execution is obtained by the data transition storage means while including program execution means for executing the data flow program one after another and executing the data flow program sequentially by the state storage means. Is obtained, the information is made to correspond to each variable of the source program from the debug information stored in the debug information storage means, the information relating to each variable of the source program is read from the program storage means, and is displayed in the debug information display means. indicate.

[作用] この発明に係るデバッグ装置は、ソースプログラムとデ
ータフロープログラムとの対応関係およびそのソースプ
ログラム中の変数とデータフロープログラムとして実行
されるときの変数との対応関係などを示すファイルを作
成するため、逐次実行されるデータフロープログラムに
対応して変数の処理状況が表示できる。また、プログラ
ムの模擬的な実行に際しては、或る命令の実行によりい
ずれかの変数が決定されるごとに逐次プログラムが進行
させられ、データフロー型情報処理装置の各構成部分の
状態およびデータの遷移が順次状態記憶手段およびデー
タ遷移記憶手段に記憶される。
[Operation] The debug device according to the present invention creates a file showing a correspondence relationship between a source program and a data flow program and a correspondence relationship between variables in the source program and variables when the data flow program is executed. Therefore, the processing status of the variables can be displayed corresponding to the data flow programs that are sequentially executed. Further, during the simulated execution of the program, the program is sequentially advanced every time any variable is determined by the execution of a certain instruction, and the state of each component of the data flow type information processing device and the transition of the data are transferred. Are sequentially stored in the state storage means and the data transition storage means.

その結果、データフロープログラムに対応するソースプ
ログラムの実行順序および実行情報が得られることにな
る。
As a result, the execution order and execution information of the source program corresponding to the data flow program can be obtained.

[実施例] 第1図はこの発明の一実施例の概略ブロック図である。[Embodiment] FIG. 1 is a schematic block diagram of an embodiment of the present invention.

第1図において、デバッグ実行装置10はデータフロー型
情報処理装置の内部動作をシミュレートする部分であ
り、データフロー型情報処理装置の各構成部分の動作を
実行するものである。このデバッグ実行装置10として
は、一般の情報処理装置(ノイマン型計算機)が用いら
れる。デバッグ実行装置10には入力ファイル20とコマン
ドファイル30とコンソール40と内部ファイル50とデバッ
グ表示ファイル60と結果ファイル70とディスプレイ80と
が接続される。
In FIG. 1, the debug execution device 10 is a part that simulates the internal operation of the data flow type information processing device, and executes the operation of each component of the data flow type information processing device. As the debug execution device 10, a general information processing device (Neumann computer) is used. An input file 20, a command file 30, a console 40, an internal file 50, a debug display file 60, a result file 70 and a display 80 are connected to the debug execution device 10.

入力ファイル20はデバッグ実行装置10に、データフロー
プログラムを実行させ、デバッグを行なわせるのに必要
なデータを入力する部分である。この入力ファイル20は
プログラムファイル21およびデバッグ情報ファイル22を
含む。プログラムファイル21はデータフロープログラム
のオブジェクトプログラムおよびそれに使用されるデー
タなどを記憶している。また、デバッグ情報ファイル22
には、ソースプログラムリストおよびソースプログラム
とデータフロー型に展開されたオプジェクトプログラム
との対応関係を示す情報などが記憶されている。コマン
ドファイル30はデバッグに関する各種命令を記憶するも
のであり、このコマンドファイル30にはバッチ処理によ
り実行されるコマンド群が格納されている。
The input file 20 is a part for inputting data necessary for causing the debug execution device 10 to execute a data flow program and perform debugging. The input file 20 includes a program file 21 and a debug information file 22. The program file 21 stores an object program of the data flow program and data used for the object program. Also, debug information file 22
Stores a source program list and information indicating the correspondence between the source program and the object program expanded in the data flow type. The command file 30 stores various instructions related to debugging, and the command file 30 stores a command group executed by batch processing.

コンソール40はデバッグに関する各種指定をキー入力す
るためのものである。内部ファイル50はデバッグ実行装
置10の内部において用いられる各種情報を記憶するもの
であり、PSファイル51とデータパケットファイル52とED
Sファイル・EDSマップファイル(以下、EDSファイルと
称する)53を含む。PSファイル51はプログラムファイル
21から与えられたオプジェクトプログラムをデバッグ実
行装置10において実行可能な形式に変換したデータフロ
ープログラムを記憶するものである。データパケットフ
ァイル52に記憶されたデータパケットは、前述の第5図
に示したデータフロー型情報処理装置の各部分を巡回す
るデータパケットに対応している。EDSファイル53は第
5図に示した外部データメモリ5に対応する部分の記憶
内容および記憶領域の割当に関する情報を記憶する。
The console 40 is for inputting various designations relating to debugging. The internal file 50 stores various information used inside the debug execution device 10, and includes a PS file 51, a data packet file 52, and an ED.
Includes S file and EDS map file (hereinafter referred to as EDS file) 53. PS file 51 is a program file
It stores a data flow program obtained by converting the object program given from 21 into a format executable by the debug execution device 10. The data packet stored in the data packet file 52 corresponds to the data packet circulating in each part of the data flow type information processing apparatus shown in FIG. The EDS file 53 stores the storage contents of the portion corresponding to the external data memory 5 shown in FIG.

デバッグ表示ファイル60はデバッグ実行装置10における
デバッグ実行中の表示の変化を記憶し、結果ファイル70
はデバッグ実行装置10によるデータフローグラフの実行
結果を記憶する。
The debug display file 60 stores changes in the display during debug execution in the debug execution device 10, and the result file 70
Stores the execution result of the data flow graph by the debug execution device 10.

したがって、データフロープログラムに基づく演算処理
の結果は、この結果ファイル70に記憶される。ディスプ
レイ80はデバッグ表示ファイル60の内容,結果ファイル
70の内容およびメッセージを表示する。
Therefore, the result of the arithmetic processing based on the data flow program is stored in the result file 70. Display 80 is the contents of debug display file 60, result file
Show 70 contents and message.

プログラムファイル21から与えられるオプジェクトプロ
グラムは、このデバッグ実行装置10において実行可能な
データフロープログラムに変換されてPSファイル51に記
憶される。また、プログラムファイル21から与えられる
データはデータパケットファイル52に記憶される。この
第1図に示したデバッグ実行装置10によるデバッグ処理
は、コンソール40から入力されるコマンドまたはコマン
ドファイル30に記憶されているコマンドに従って実行さ
れる。
The object program given from the program file 21 is converted into a data flow program that can be executed by the debug execution device 10 and stored in the PS file 51. Further, the data given from the program file 21 is stored in the data packet file 52. The debug processing by the debug executing device 10 shown in FIG. 1 is executed according to a command input from the console 40 or a command stored in the command file 30.

第2図は第1図に示したデバッグ装置によってデバッグ
されるソースプログラムの一例を示す図であり、第3図
は第2図に示したソースプログラムに基づくフローグラ
フを示す図であり、第4図はこの発明の一実施例による
デバッグ実行結果の一例を示す図である。
2 is a diagram showing an example of a source program debugged by the debug device shown in FIG. 1, FIG. 3 is a diagram showing a flow graph based on the source program shown in FIG. 2, and FIG. FIG. 6 is a diagram showing an example of a debug execution result according to an embodiment of the present invention.

なお、第3図に示したフローグラフにおいて、右側の丸
印内の数字は実行ランク値を示し、左側の数字はその実
行ランク値の昇順に付けられたノード番号を示してお
り、この実施例によるプログラムはそのノード番号の順
に実行されるものとする。したがって、第2図に示した
ソースプログラムに対して、ノード番号の順に実行され
ると、デバッグの実行とともに第4図に示すように表示
される。
In the flow graph shown in FIG. 3, the numbers in the circles on the right side show the execution rank values, and the numbers on the left side show the node numbers added in ascending order of the execution rank values. Programs shall be executed in the order of their node numbers. Therefore, when the source program shown in FIG. 2 is executed in the order of the node numbers, it is displayed as shown in FIG. 4 along with the execution of debugging.

まず、第4図の表示のフォーマットについて説明する。
デバッグ実行時には、第4図に示すように、100の位置
に表示される実行されたノードのノード番号と、現在見
ている関数内に属するすべての変数についての変数名21
0などが表示され、さらにその変数の属するソースプロ
グラム中のすべての行について、実行されていない行22
0および実行された行230の2つに区別されて表示され
る。
First, the display format of FIG. 4 will be described.
At the time of debug execution, as shown in Fig. 4, the node number of the executed node displayed at position 100 and the variable names of all variables belonging to the function currently being viewed 21
Lines such as 0 are displayed, and all lines in the source program to which the variable belongs are not executed.
It is displayed separately in two, 0 and the executed line 230.

実行されていない行220とは、変数名210に示される変数
が属するソースプログラム中のすべての行のうち、デー
タフロープログラムに展開された実行形式において未だ
実行されていない行のことであり、その位置にはその行
番号が示される。その行は未だ実行されていないので、
当然その行における当該変数の値は未だ決定されていな
い。
The unexecuted line 220 is a line that has not yet been executed in the execution form expanded to the data flow program among all the lines in the source program to which the variable indicated by the variable name 210 belongs, and The line number is shown in the position. Since that line hasn't been executed yet,
Of course, the value of the variable in that row has not yet been determined.

また、実行された行230とは、変数名210に示される変数
が属するソースプログラム中のすべての行のうち、既に
実行された行のことであり、その位置にはその行番号が
示される。その行は既に実行済であり、( )内にはそ
の行が実行された結果、その変数がどのような値を持っ
たか、その値が示されている。なお、実行されていない
行220も実行された行230のいずれも同一の変数に対して
複数個存在することが考えられ、そこで複数の値が記号
“,"で区切って順に表示されている。
The executed line 230 is a line that has already been executed among all the lines in the source program to which the variable indicated by the variable name 210 belongs, and the line number is indicated at that position. The line has already been executed, and in (), the value that the variable has as a result of the execution of the line is shown. It should be noted that there may be a plurality of unexecuted lines 220 and executed lines 230 for the same variable, and a plurality of values are delimited by the symbol “,” and displayed in order.

上述のごとく実行されたノード番号100,変数名210,実行
されていない行220,実行された行230がデータフロープ
ログラムの実行に伴ない、第4図に示すように表示が変
化してゆく。つまり第3図に示すノード10の実行により
表示された各情報がノード13の実行により変数名211,実
行されていない行221,実行された行231のように変更さ
れ、最終的にはノード16の実行にり、変数名212,実行さ
れていない行222,実行された行232と変わり、デバッグ
に必要な行が順次提供される。
As described above, the node number 100, the variable name 210, the unexecuted line 220, and the executed line 230 change as the data flow program is executed, as shown in FIG. That is, the information displayed by the execution of the node 10 shown in FIG. 3 is changed to the variable name 211, the unexecuted line 221, and the executed line 231 by the execution of the node 13, and finally the node 16 is executed. In execution of, the variable name 212, unexecuted line 222, and executed line 232 are changed, and the lines required for debugging are sequentially provided.

次に、各ノードの実行に従って、表示がどのように変化
していくのかを詳細に説明する。ノード10の実行により
変数“x"の値が決定されるので、実行されていない行22
0の位置に表示されていた変数“x"に関する行番号10行
が実行された行230の位置にその計算結果(91)ととも
に表示される。同時にその10行に属する変数“inp",
“a",“b",“c"についても同様に実行されていない行22
0の位置から実行された行230の位置へと表示が移動す
る。ただし、それら変数“x"以外の変数については値が
変更されるわけではないので、( )内に示される変数
値は10行以前での値と同じである。
Next, how the display changes according to the execution of each node will be described in detail. Execution of node 10 determines the value of the variable “x”, so the line
The line number 10 regarding the variable "x" displayed at the position of 0 is displayed at the position of the executed line 230 together with the calculation result (91). At the same time, the variable “inp” that belongs to the 10th row,
Lines that are not executed for "a", "b", and "c"
The display moves from the 0 position to the executed line 230 position. However, the values of variables other than those variables "x" are not changed, so the variable values shown in () are the same as the values before line 10.

次に、第3図に示すノード13の実行により11行目の式が
終了し、変数“w"の値が決定されるので、その変数につ
いて実行されていない行221より実行された行231へと表
示が移動し、( )内にはその計算結果(95)が表示さ
れる。また、その11行目に属するその他の変数“c",
“x"についても表示が移動する。
Next, the execution of the node 13 shown in FIG. 3 terminates the expression on the 11th line, and the value of the variable “w” is determined. Therefore, from the line 221 not executed for that variable to the line 231 executed. The display moves, and the calculation result (95) is displayed in (). In addition, the other variable “c”, which belongs to the 11th line,
The display also moves for "x".

最終的にはノード16の実行により、14行目の式が終了
し、変数名212の位置に表示された出力変数“out"の値
は実行済を示す行232の位置に記述されているように(2
370)と決定され、例として挙げたデータフロープログ
ラムが終了する。また、その変数“out"に加えて変数
“y",“z"についても実行されいない行222より実行され
た行232へと表示が移動する。その結果、すべての変数
について値が確定し、表示が移動したことになる。
Finally, the execution of node 16 completes the expression on the 14th line, and the value of the output variable "out" displayed at the position of variable name 212 appears to be written at the position of line 232 indicating execution. To (2
370), and the data flow program given as an example ends. Further, in addition to the variable “out”, the display moves to the executed line 222 from the unexecuted line 222 for the variables “y” and “z”. As a result, the values have been fixed for all variables, and the display has moved.

以上のようにしてデバッグ情報が提供され、データフロ
ー型情報処理装置で実行されるソースプログラムに関す
る実行順序および実行情報が得られることになる。
As described above, the debug information is provided, and the execution order and the execution information regarding the source program executed by the data flow type information processing apparatus are obtained.

[発明の効果] 以上のように、この発明によれば、データフロープログ
ラムの実行に対応するソースプログラムの実行順序およ
び変数値の変化の状況、すなわちソースプログラムの処
理、実行情報を得ることができる。したがって、データ
フロープログラムの開発を容易かつ正確に行なうことが
可能となる。
[Effects of the Invention] As described above, according to the present invention, it is possible to obtain the execution order of source programs corresponding to the execution of a data flow program and the status of changes in variable values, that is, the processing and execution information of source programs. . Therefore, it becomes possible to easily and accurately develop the data flow program.

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

第1図はこの発明の一実施例の概略ブロック図である。
第2図はソースプログラムの一例を示す図である。第3
図は第2図に示したソースプログラムをデータフロープ
ログラムに展開した場合の一例を示す図である。第4図
はこの発明の一実施例によるデバッグ実行結果の表示例
である。第5図は従来のデータフロー型情報処理装置の
概略ブロック図である。第6図は第5図に示した情報処
理装置の各部分を巡回するデータパケットの構成を示す
図である。第7図はプログラムメモリに記憶されるデー
タフロープログラムの一部を示す図である。第8図はデ
ータフロー型情報処理装置のプログラム記憶部の構成を
示すブロック図である。 図において、10はデバッグ実行装置、20は入力ファイ
ル、21はプログラムファイル、22はデバッグ情報ファイ
ル、30はコマンドファイル、40はコンソール、50は内部
ファイル、51はPSファイル、52はデータパケットファイ
ル、53はEDSファイル・EDSマップファイル、60はデバッ
グ表示ファイル、70は結果ファイル、80はディスプレイ
を示す。
FIG. 1 is a schematic block diagram of an embodiment of the present invention.
FIG. 2 is a diagram showing an example of a source program. Third
The figure is a diagram showing an example in which the source program shown in FIG. 2 is expanded into a data flow program. FIG. 4 is a display example of the debug execution result according to the embodiment of the present invention. FIG. 5 is a schematic block diagram of a conventional data flow type information processing apparatus. FIG. 6 is a diagram showing a structure of a data packet circulating in each part of the information processing apparatus shown in FIG. FIG. 7 is a diagram showing a part of the data flow program stored in the program memory. FIG. 8 is a block diagram showing the configuration of the program storage unit of the data flow type information processing apparatus. In the figure, 10 is a debug execution device, 20 is an input file, 21 is a program file, 22 is a debug information file, 30 is a command file, 40 is a console, 50 is an internal file, 51 is a PS file, 52 is a data packet file, 53 is an EDS file / EDS map file, 60 is a debug display file, 70 is a result file, and 80 is a display.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データフロープログラムの動作をソースプ
ログラムに記述された変数を単位としてデバッグするデ
ータフロープログラムのデバッグ装置であって、 前記データフロープログラムを記憶するプログラム記憶
手段、 前記データフロープログラムを実行する処理装置におけ
る複数の構成部分に対応する機能を模擬的に実行する複
数の機能部分を含み、かつ前記プログラム記憶手段に記
憶された前記データフロープログラムを逐次実行するプ
ログラム実行手段、 前記プログラム実行手段の前記複数の機能部分の、前記
ソースプログラム中に定義された各変数の変化を記憶す
る状態記憶手段、 前記データフロープログラムの実行に用いられるデータ
の前記プログラム実行手段の各機能部での前記ソースプ
ログラムの各変数に対応する処理,実行の進行状況を記
憶するデータ遷移記憶手段、 前記ソースプログラムの各変数と前記データフロープロ
グラムの各ノードとの対応関係を示したデバッグ情報を
記憶するデバッグ情報記憶手段、 前記状態記憶手段によってプログラム実行時のデータフ
ロープログラムの実行状況の情報を得るとともに、デー
タ遷移記憶手段によってプログラム実行時のデータフロ
ープログラムのデータの情報を得て、それらの情報を前
記デバッグ情報記憶手段に記憶されているデバッグ情報
からそのソースプログラムの各変数に対応させ、前記プ
ログラム記憶手段から前記ソースプログラムの各変数に
関する情報を読出すための制御手段、および 前記制御手段によって得られた前記ソースプログラムの
各変数に関するデバッグ情報を表示するデバッグ情報表
示手段を備えた、データフロープログラムのデバッグ装
置。
1. A debug device for a dataflow program, which debugs the operation of a dataflow program in units of variables described in a source program, wherein the program storage means stores the dataflow program, and executes the dataflow program. Program executing means for sequentially executing the data flow program stored in the program storage means, the program executing means including a plurality of functional parts for simulating functions corresponding to a plurality of constituent parts of the processing device. State storage means for storing changes of each variable defined in the source program of the plurality of functional parts of the source program, the source of data used for executing the data flow program in each functional part of the program executing means. Processing corresponding to each variable of the program A data transition storage means for storing the progress of execution, a debug information storage means for storing debug information indicating a correspondence relationship between each variable of the source program and each node of the data flow program, and a program by the state storage means The information of the execution status of the data flow program at the time of execution is obtained, and the information of the data of the data flow program at the time of the program execution is obtained by the data transition storage means, and the information is debugged in the debug information storage means. Control means for reading information on each variable of the source program from the program storage means in association with each variable of the source program from information, and debug information on each variable of the source program obtained by the control means Debug information to display With a Display means, debugging device data flow program.
JP63165690A 1988-07-01 1988-07-01 Data flow program debug device Expired - Fee Related JPH0727474B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63165690A JPH0727474B2 (en) 1988-07-01 1988-07-01 Data flow program debug device
US07/374,060 US5038348A (en) 1988-07-01 1989-06-30 Apparatus for debugging a data flow program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63165690A JPH0727474B2 (en) 1988-07-01 1988-07-01 Data flow program debug device

Publications (2)

Publication Number Publication Date
JPH0214334A JPH0214334A (en) 1990-01-18
JPH0727474B2 true JPH0727474B2 (en) 1995-03-29

Family

ID=15817192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63165690A Expired - Fee Related JPH0727474B2 (en) 1988-07-01 1988-07-01 Data flow program debug device

Country Status (1)

Country Link
JP (1) JPH0727474B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6383842A (en) * 1986-09-27 1988-04-14 Toshiba Corp Program processor
JPH06101045B2 (en) * 1988-03-14 1994-12-12 シャープ株式会社 Data flow type information processing device simulation device

Also Published As

Publication number Publication date
JPH0214334A (en) 1990-01-18

Similar Documents

Publication Publication Date Title
US5038348A (en) Apparatus for debugging a data flow program
JPS62229343A (en) Program counter display system
JPS6116100B2 (en)
JPH0727474B2 (en) Data flow program debug device
JPH0727473B2 (en) Data flow program debug device
JPH06101045B2 (en) Data flow type information processing device simulation device
JPH02202643A (en) Debug device for data driving type information processor
JPS63131238A (en) Logic simulator
JP2866143B2 (en) Dynamic pipeline processing unit
JPH01310444A (en) Parallel arithmetic processor
JPH0750460B2 (en) Graph display device
JPS61143855A (en) Program test system
JPH01306932A (en) Method for testing data processor
JPS58134338A (en) Controlling system of digital computer
JPH06175883A (en) Program debug device
JPS6222153A (en) Microprocessor operation analysis method and device
JPS6051903A (en) Generating method of process control program
JPS63147202A (en) Verifying system for programmable controller
JPS6326416B2 (en)
JPS63217433A (en) Control system for execution of program
JPS59165128A (en) Interactive data input system
JPH0264827A (en) Data processor
JPS6344251A (en) Diagnosing system
JPS62262151A (en) Diagnostic system
JPS6361341A (en) Program debugging device

Legal Events

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