JPH0214334A - Debug device for data flow program - Google Patents
Debug device for data flow programInfo
- Publication number
- JPH0214334A JPH0214334A JP63165690A JP16569088A JPH0214334A JP H0214334 A JPH0214334 A JP H0214334A JP 63165690 A JP63165690 A JP 63165690A JP 16569088 A JP16569088 A JP 16569088A JP H0214334 A JPH0214334 A JP H0214334A
- Authority
- JP
- Japan
- Prior art keywords
- program
- data flow
- data
- executed
- file
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明はデータフロープログラムのデバッグ装置に関
し、特に、データフロープログラムに展開されるソース
プログラムを変数表示することにより、ソースプログラ
ムのデバッグを可能にするようなデバッグ装置に関する
。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a debugging device for a data flow program, and in particular, it is possible to debug a source program by displaying a source program expanded into a data flow program as a variable. Related to debugging equipment.
[従来の技術]
従来のコンピュータは、プログラムとして種々の命令を
プログラムメモリに記憶しておき、プログラムカウンタ
によってプログラムメモリのアドレスを逐次指定して順
次命令を読出し、その命令を実行するというノイマン型
計算機が大部分である。[Prior Art] A conventional computer is a Neumann type computer in which various instructions are stored as programs in a program memory, and a program counter sequentially specifies addresses in the program memory to sequentially read out the instructions and execute the instructions. is the majority.
一方、データフロー型情報処理装置は、プログラムカウ
ンタによる逐次的な命令の実行という概念を持たない非
ノイマン型計算機の一種である。On the other hand, a data flow type information processing device is a type of non-Neumann type computer that does not have the concept of sequential execution of instructions using a program counter.
このようなデータフロー型情報処理装置は、命令が並列
に処理されることを前提にしたアーキテクチャに従って
いる。そして、演算の対象になるデータが揃い次第、命
令の実行が可能となり、データによって複数の命令を同
時に駆動するため、データの自然な流れに従って並列的
にプログラムが実行される。その結果、演算の所要時間
が大幅に短縮できることになる。Such a data flow type information processing device follows an architecture that assumes that instructions are processed in parallel. As soon as the data to be operated on is available, instructions can be executed. Since multiple instructions are simultaneously driven by the data, the program is executed in parallel according to the natural flow of data. As a result, the time required for calculation can be significantly reduced.
第5図は従来のデータフロー型情報処理装置の一例を示
す概略ブロック図であり、第6図は第5図に示した情報
処理装置の各部分を巡回するデータパケットの基本構成
を示す図であり、第7図はプログラムメモリに記憶され
るデータフロープログラムの一部を示す図である。FIG. 5 is a schematic block diagram showing an example of a conventional data flow type information processing device, and FIG. 6 is a diagram showing the basic structure of a data packet circulating through each part of the information processing device shown in 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, the configuration and general operation of the data flow type information processing apparatus will be described with reference to FIGS. 5, 6, and 7. Destination information is stored in the destination field of the data packet shown in FIG. 6, command information is stored in the command field, and operand data is stored in the data 1 field or data 2 field.
第5図において、プログラム記憶部(PS)1はプログ
ラムメモリを含み、そのプログラムメモリには第7図に
示すように、行先情報と命令情報とからなるデータフロ
ープログラムが記憶されている。プログラム記憶部1は
データパケットの行先情報に基づくアドレス指定によっ
て行先情報および命令情報を読出し、各情報をデータパ
ケットの行先フィールドおよび命令フィールドに格納し
て、FIFOからなる入力バッフy2a、2bに出力す
る。In FIG. 5, the program storage unit (PS) 1 includes a program memory, and as shown in FIG. 7, a data flow program consisting of destination information and command information is stored in the program memory. The program storage unit 1 reads destination information and instruction information by addressing based on the destination information of the data packet, stores each information in the destination field and instruction field of the data packet, and outputs the information to input buffers y2a and 2b consisting of FIFOs. .
対データ検出器(FC)2は、プログラム記憶部1から
入力バッファ2aおよび2bを介して入力されるデータ
パケットの待合わせを行ない、行先情報が一致する2つ
のデータパケットのうち、一方のデータパケットのオペ
ランドデータを他方のデータパケットの所定のデータフ
ィールドに格納して、FIFOからなる人力バッファ3
aに出力する。なお、このとき、上述の一方のデータパ
ケットは消滅する。A pair data detector (FC) 2 waits for data packets input from the program storage unit 1 via input buffers 2a and 2b, and selects one of the two data packets with matching destination information. The operand data of the other data packet is stored in a predetermined data field of the other data packet, and the manual buffer 3 consisting of FIFO is
Output to a. Note that at this time, one of the data packets mentioned 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 predetermined arithmetic processing on the two operand data, and outputs the result. It is stored in the data field of the data packet and output to the branching 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 either supplies the data packet to the input buffer 1a made up of FIFO, or sends the data packet to the input buffer 5a made up of FIFO.
It is applied to an external data memory (EDS) 6 via the external data memory (EDS) 6. Data packets from the input buffer 1a or data packets output from the external data memory 5 via the output buffer 5b are provided to a merging section 6, and the merging section 6 provides these data packets to the program storage section 1 on a first-come, first-served basis.
第5図に示されたデータフロー型情報処理装置において
は、データパケットが、プログラム記憶部1一対データ
検出部2−演算処理部3−分岐部4(→外部データメモ
リ5)→合流部6→プログラム記憶部1・・・のように
回り続けることにより、プログラム記憶部1に記憶され
たプログラムに基づく演算処理が進行する。In the data flow type information processing device shown in FIG. 5, a data packet is sent from program storage unit 1 to data detection unit 2 to arithmetic processing unit 3 to branching unit 4 (→external data memory 5)→merging unit 6→ As the program storage unit 1 continues to rotate, arithmetic processing based on the program stored in the program storage unit 1 progresses.
第8図は第5図に示したプログラム記憶部1の概略の構
成を示す図である。第8図において、入力データラッチ
部11はデータパケットの行先情報およびオペランドデ
ータを保持するものであり、命令情報は消去される。保
持されたオペランドと、行先情報をもとにしてプログラ
ムメモリ13から読出された新しい行先情報と命令情報
とが出力デ−タラッチ部14に与えられてラッチされる
。入力データラッチ部11でラッチされた行先情報はア
ドレス計算部12に与えられ、その行先情報からプログ
ラムメモリ13のアドレスが計算される。FIG. 8 is a diagram showing a schematic configuration of the program storage section 1 shown in FIG. 5. As shown in FIG. In FIG. 8, an input data latch section 11 holds destination information and operand data of data packets, and instruction information is erased. The retained operand, new destination information and instruction information read from the program memory 13 based on the destination information are provided to the output data latch section 14 and latched. The destination information latched by the input data latch section 11 is given to the address calculation section 12, and the address of the program memory 13 is calculated from the destination information.
プログラムメモリ13は前述の第7図に示したような行
先情報と命令情報からなるデータフロープログラムを記
憶しており、上述のアドレスにより新しい行先情報と命
令情報が出力データラッチ部14に与えられる。The program memory 13 stores a data flow program consisting of destination information and command information as shown in FIG.
[発明が解決しようとする課題]
上述のデータフロー型情報処理装置においては、演算の
対象となるデータが揃い次第命令の実行が可能となり、
データの自然な流れに従って並列的にかつ非同期にプロ
グラムが実行される。そのため、通常のノイマン型計算
機において実行される場合に書かれたようなソースプロ
グラムをデータフロープログラムに展開して実行する場
合、その実行順序はノイマン型計算機における実行順序
とは必ずしも一致しないため、単純にプログラムを辿る
だけでは、そのソースプログラムの誤りを発見し、正す
ことができないという問題点があった。[Problems to be Solved by the Invention] In the data flow type information processing device described above, an instruction can be executed as soon as the data to be subjected to an operation is prepared,
Programs are executed in parallel and asynchronously following the natural flow of data. Therefore, when a source program written to be executed on a normal von Neumann computer is expanded into a data flow program and executed, the execution order does not necessarily match the execution order on a von Neumann computer. There was a problem in that it was not possible to discover and correct errors in the source program by simply tracing the program.
また、展開されたデータフロープログラムを実行すると
きに誤りを発見することはさらに困難であり、またソー
スプログラムとの対応関係を知ることにも大変な困難が
生じるという問題点があった。Further, there are problems in that it is more difficult to discover errors when executing the developed 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 debugging device for efficiently debugging a dataflow program executable on a dataflow type information processing device.
[課題を解決するための手段]
この発明に係るデータフロープログラムのデバッグ装置
は、プログラム記憶手段と、プログラム実行手段と、状
態記憶手段と、データ遷移記憶手段と、デバッグ情報記
憶手段と、デバッグ情報表示手段と、制御手段とから構
成され、プログラム記憶手段はデータフロープログラム
を記憶し、プログラム実行手段は処理装置における複数
の構成部分に対応する機能を模擬的に実行する複数の機
能部分を含み、かつプログラム記憶手段に記憶されたデ
ータフロープログラムを逐次実行する。状態記憶手段は
プログラム実行手段の複数の機能部分のソースプログラ
ム中に定義された各変数の、変化を記憶し、データ遷移
記憶手段はデータフロープログラムの実行に用いられる
プログラム実行手段の各機能部でのソースプログラムの
各変数に対応する処理、実行の進行状況を記憶し、デバ
ッグ情報記憶手段はソースプログラムの各変数とデータ
フロープログラムの各ノードとの対応関係を示したデバ
ッグ情報を記憶し、制御手段はデバッグ情報記憶手段に
記憶されたデバッグ情報に従って、プログラム実行手段
と状態記憶手段とデータ遷移記憶手段を制御する。デバ
ッグ情報表示手段はデータフロープログラムの各ノード
の実行に関連してソースプログラムの各変数に関するデ
バッグ情報を表示する。[Means for Solving the Problems] A data flow program debugging device according to the present invention includes a program storage means, a program execution means, a state storage means, a data transition storage means, a debug information storage means, and a debug information storage means. It is composed of a display means and a control means, the program storage means stores a data flow program, the program execution means includes a plurality of functional parts that simulate functions corresponding to the plurality of component parts in the processing device, and sequentially executes the data flow program stored in the program storage means. The state storage means stores changes in each variable defined in the source program of a plurality of functional parts of the program execution means, and the data transition storage means stores changes in each variable defined in the source program of a plurality of functional parts of the program execution means, and the data transition storage means stores changes in each variable defined in the source program of a plurality of functional parts of the program execution means. The debug information storage means stores debug information indicating the correspondence between each variable of the source program and each node of the data flow program, and the debug information storage means stores the progress status of processing and execution corresponding to each variable of the source program. The means controls the program execution means, the state storage means, and the data transition storage means according to the debug information stored in the debug information storage means. The debug information display means displays debug information regarding each variable of the source program in connection with the execution of each node of the data flow program.
[作用]
この発明に係るデバッグ装置は、ソースプログラムとデ
ータフロープログラムとの対応関係およびそのソースプ
ログラム中の変数とデータフロープログラムとして実行
されるときの変数との対応関係などを示すファイルを作
成するため、逐次実行されるデータフロープログラムに
対応して変数の処理状況が表示できる。また、プログラ
ムの模擬的な実行に際しては、成る命令の実行によりい
ずれかの変数が決定されるごとに逐次プログラムが進行
させられ、データフロー型情報処理装置の各構成部分の
状態およびデータの遷移が順次状態記憶手段およびデー
タ遷移記憶手段に記憶される。[Operation] The debugging device according to the present invention creates a file indicating the correspondence between a source program and a data flow program, and the correspondence between variables in the source program and variables when executed as a data flow program. Therefore, the processing status of variables can be displayed in response to data flow programs that are executed sequentially. In addition, when executing a program in a simulated manner, the program is sequentially progressed each time a variable is determined by executing an instruction, and the state and data transition of each component of the data flow information processing device are The information is 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図はこの発明の一実施例の概略ブロック図である。[Example] FIG. 1 is a schematic block diagram of an embodiment of the present invention.
第1図において、デバッグ実行装置1oはデータフロー
情報処理装置の内部動作をシミュレートする部分であり
、データフロー型情報処理装置の各構成部分の動作を実
行するものである。このデバッグ実行装置10としては
、一般の情報処理装置(ノイマン型計算機)が用いられ
る。デバッグ実行装置10には入力ファイル20とコマ
ンドファイル30とコンソール40と内部ファイル50
とデバッグ表示ファイル60と結果ファイル70とデイ
スプレィ80とが接続される。In FIG. 1, a debug execution device 1o is a part that simulates the internal operation of the data flow information processing device, and executes the operations of each component of the data flow type information processing device. As this debug execution device 10, a general information processing device (Neumann type computer) is used. The debug execution device 10 includes an input file 20, a command file 30, a console 40, and an internal file 50.
, the debug display file 60 , the result file 70 and the display 80 are connected.
入力ファイル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. This human file 20 includes a program file 21 and a debug information file 22. The program file 21 stores object programs of data flow programs and data used therein. Further, the debug information file 22 stores a source program list and information indicating the correspondence between the source program and the object program developed in a data flow type. The command file 30 stores various instructions related to debugging.
stores a group of commands to be executed by batch processing.
コンソール40はデバッグに関する各種指定をキー人力
するためのものである。内部ファイル50はデバッグ実
行装置10の内部において用いられる各線情報を記憶す
るものであり、PSファイル51とデータパケットファ
イル52とEDSファイル・EDSマツプファイル(以
下、EDSファイルと称する)53を含む。PSファイ
ル51はプログラムファイル21から与えられたオブジ
ェクトプログラムをデバッグ実行装置10において実行
可能な形式に変換したデータフロープログラムを記憶す
るものである。データパケットファイル52に記憶され
たデータパケットは、前述の第5図に示したデータフロ
ー型情報処理装置の各部分を巡回するデータパケットに
対応している。The console 40 is used to input various specifications related to debugging. The internal file 50 stores each line information used inside the debug execution device 10, and includes a PS file 51, a data packet file 52, and an EDS file/EDS map file (hereinafter referred to as the EDS file) 53. The PS file 51 stores a data flow program obtained by converting an object program given from the program file 21 into a format executable by the debug execution device 10. The data packets stored in the data packet file 52 correspond to data packets that circulate through each part of the data flow type information processing apparatus shown in FIG. 5 described above.
EDSファイル53は第5図に示した外部データメモリ
5に対応する部分の記憶内容および記憶領域の割当に関
する情報を記憶する。The EDS file 53 stores information regarding the storage contents and storage area allocation of a 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 results of execution of the data flow graph by the debug execution device 10.
したがって、データフロープログラムに基づく演算処理
の結果は、この結果ファイル70に記憶される。デイス
プレィ80はデバッグ表示ファイル60の内容、結果フ
ァイル70の内容およびメツセージを表示する。Therefore, the results of the arithmetic processing based on the data flow program are stored in this result file 70. The display 80 displays the contents of the debug display file 60, the contents of the result file 70, and messages.
プログラムファイル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 executable by the debug execution device 10 and stored in the PS file 51. Furthermore, data given from the program file 21 is stored in a data packet file 52. The debug processing by the debug execution device 10 shown in FIG. 1 is executed according to commands input from the console 40 or commands 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. The figure 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 indicate execution rank values, and the numbers on the left side indicate node numbers assigned in ascending order of the execution rank values. It is assumed that the programs are 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, the display as shown in FIG. 4 will be displayed along with debugging.
まず、第4図に示した表示のフォーマットについて説明
する。デバッグ実行時には、第4図に示すように、10
0の位置に表示される実行されたノードのノード番号と
、現在見ている関数内に属するすべての変数についての
変数名210などが表示され、さらにその変数の属する
ソースプログラム中のすべての行について、実行されて
いない行220および実行された行230の2つに区別
されて表示される。First, the format of the display shown in FIG. 4 will be explained. When debugging, as shown in Figure 4, 10
The node number of the executed node is displayed at position 0, and the variable names 210 of all variables belonging to the currently viewed function are displayed, as well as all lines in the source program to which the variables belong. , a line that has not been executed 220 and a line that has been executed 230 are displayed separately.
実行されていない行220とは、変数名210に示され
る変数が属するソースプログラム中のすべての行のうち
、データフロープログラムに展開された実行形式におい
て未だ実行されていない行のことであり、その位置には
その行番号が示される。その行は未だ実行されていない
ので、当然その行における当該変数の値は未だ決定され
ていない。The unexecuted line 220 is a line that has not yet been executed in the executable format developed into the data flow program, among all the lines in the source program to which the variable indicated by the variable name 210 belongs. The position indicates the line number. Since that line has not yet been executed, naturally the value of the variable in that line has not yet been determined.
また、実行された行230とは、変数名210に示され
る変数が属するソースプログラム中のすべての行のうち
、既に実行された行のことであり、その位置にはその行
番号が示される。その行は既に実行済であり、()内に
はその行が実行された結果、その変数がどのような値を
持ったか、その値が示されている。なお、実行されてい
ない行220も実行された行230のいずれも同一の変
数に対して複数個存在することが考えられ、そこで複数
の値が記号“、″で区切って順に表示されている。Furthermore, the executed line 230 is a line that has already been executed among all lines in the source program to which the variable indicated by the variable name 210 belongs, and the line number is indicated at the position. That line has already been executed, and what value that variable had as a result of that line being executed is shown in parentheses. Note that it is possible that a plurality of unexecuted lines 220 and executed lines 230 exist for the same variable, and therefore, the plurality of values are separated by the symbol "," and displayed in order.
上述のごとく実行されたノード番号100.変数名21
0.実行されていない行220.実行された行、230
がデータフロープログラムの実行に伴ない、第4図に示
すように表示が変化してゆく。Node number 100. executed as described above. Variable name 21
0. Lines not executed 220. line executed, 230
As the data flow program is executed, the display changes as shown in FIG.
つまり第3図に示すノード10の実行により表示された
各情報がノード13の実行により変数名211、実行さ
れていない行221.実行された行231のように変更
され、最終的にはノード16の実行にり、変数名212
.実行されていない行222、実行された行232と変
わり、デバッグに必要な行が順次提供される。In other words, each piece of information displayed by the execution of the node 10 shown in FIG. The executed line 231 is changed, and finally the node 16 is executed, and the variable name 212
.. Instead of an unexecuted line 222 and an executed line 232, lines necessary for debugging are sequentially provided.
次に、各ノードの実行に従って、表示がどのように変化
していくのかを詳細に説明する。ノード10の実行によ
り変数“X”の値が決定されるので、実行されていない
行220の位置に表示されていた変数“X”に関する行
番号10行が実行された行230の位置にその計算結果
(91)とともに表示される。同時にその10行に属す
る変数inp 、 a 、”b’、 c”
についても同様に実行されていない行220の位置から
実行された行230の位置へと表示が移動する。ただし
、それら変数“X”以外の変数については値が変更され
るわけではないので、()内に示される変数値は10行
以前での値と同じである。Next, we will explain in detail how the display changes as each node is executed. Since the value of the variable "X" is determined by the execution of node 10, the line number 10 related to the variable "X" that was displayed at the position of the unexecuted line 220 is displayed at the position of the executed line 230. Displayed together with the result (91). At the same time, variables inp, a, "b', c" belonging to those 10 rows
Similarly, the display moves from the position of line 220 that has not been executed to the position of line 230 that has been executed. However, the values of variables other than the variable "X" are not changed, so the variable values shown in parentheses are the same as the values in the 10th line and earlier.
次に、第3図に示すノード13の実行により11行目の
式が終了し、変数“W”の値が決定されるので、その変
数について実行されていない行221より実行された行
231へと表示が移動し、()内にはその計算結果(9
5)が表示される。Next, the expression on the 11th line is completed by the execution of node 13 shown in FIG. The display moves, and the calculation result (9) is shown in parentheses.
5) will be displayed.
また、その11行目に属するその他の変数“CX”につ
いても表示が移動する。Furthermore, the display of the other variable "CX" belonging to the 11th line also moves.
最終的にはノード16の実行により、14行目の式が終
了し、変数名212の位置に表示された出力変数“ou
t”の値は実行済を示す行232の位置に記述されてい
るように(2370)と決定され、例として挙げたデー
タフロープログラムが終了する。また、その変数“ou
t“に加えて変数“Yr z″についても実行され
いない行222より実行された行232へと表示が移動
する。その結果、すべての変数について値が確定し、表
示が移動したことになる。Finally, by executing the node 16, the expression on the 14th line is completed, and the output variable “ou” displayed at the variable name 212 position is
The value of "t" is determined as (2370) as written in the position of line 232 indicating that it has been executed, and the data flow program mentioned as an example ends.
In addition to "t", the display moves from line 222, which is not executed, to line 232, which is executed for the variable "Yr z". As a result, the values of all variables are determined, and the display moves.
以上のようにしてデバッグ情報が提供され、データフロ
ー型情報処理装置で実行されるソースプログラムに関す
る実行順序および実行情報が得られることになる。As described above, debug information is provided, and the execution order and execution information regarding the source program to be executed by the data flow type information processing device are obtained.
[発明の効果]
以上のように、この発明によれば、データフロープログ
ラムの実行に対応するソースプログラムの実行順序およ
び変数値の変化の状況、すなわちソースプログラムの処
理、実行情報を得ることができる。したがって、データ
フロープログラムの開発を容品かつ正確に行なうことが
可能となる。[Effects of the Invention] As described above, according to the present invention, it is possible to obtain the execution order of the source program corresponding to the execution of the data flow program and the status of changes in variable values, that is, the processing and execution information of the source program. . Therefore, data flow programs can be developed neatly and accurately.
第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はデイスプレィを示す。
箪1回
第2図
プログ°ラム
wain (inp; 0ut)
inpu’L int inp;
out、puL int OU’C;[
int a ” +07
int b = 20;
int C= 47
irlj w、x、 Xi
X = i np −t a fb ” Ctw= c
−t−X;
ン=(b+c)傘X5
Z=WヤX;
Q ut =Z t y y
第3図
00℃
14tZj’/(1)j
第7図
第8図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 shows an example of the case where the source program shown in FIG. 2 is developed into a data flow program. FIG. 4 is a display example of the execution results of debugging according to an embodiment of the present invention. FIG. 5 is a schematic block diagram of a conventional data flow type information processing device. FIG. 6 is a diagram showing the structure of a data packet circulating through each part of the information processing apparatus shown in FIG. 5. FIG. 7 is a diagram showing a portion of the data flow program stored in the program memory. FIG. 8 is a block diagram showing the configuration of the program storage section of the data flow information processing device. In the figure, 10 is a debug execution device, 20 is a manual 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 EDS file/EDS
A map file, 60 a debug display file, 70 a result file, and 80 a display. 1st session Figure 2 Program wain (inp; 0ut) inpu'L int inp; out, puL int OU'C; [ int a ” +07 int b = 20; int C = 47 irlj w, x, Xi X = inp −t a fb ” Ctw= c
-t-X; N = (b + c) umbrella X5 Z = Wya
Claims (1)
述された変数を単位としてデバッグするデータフロープ
ログラムのデバッグ装置であって、前記データフロープ
ログラムを記憶するプログラム記憶手段、 前記データフロープログラムを実行する処理装置におけ
る複数の構成部分に対応する機能を模擬的に実行する複
数の機能部分を含み、かつ前記プログラム記憶手段に記
憶された前記データフロープログラムを逐次実行するプ
ログラム実行手段、前記プログラム実行手段の前記複数
の機能部分の、前記ソースプログラム中に定義された各
変数の変化を記憶する状態記憶手段、 前記データフロープログラムの実行に用いられるデータ
の前記プログラム実行手段の各機能部での前記ソースプ
ログラムの各変数に対応する処理、実行の進行状況を記
憶するデータ遷移記憶手段、前記ソースプログラムの各
変数と前記データフロープログラムの各ノードとの対応
関係を示したデバッグ情報を記憶するデバッグ情報記憶
手段、前記データフロープログラムの各ノードの実行に
関連して前記ソースプログラムの各変数に関するデバッ
グ情報を表示するデバッグ情報表示手段、および 前記デバッグ情報記憶手段に記憶された前記デバッグ情
報に従って、前記プログラム実行手段と前記状態記憶手
段と前記データ遷移記憶手段を制御する制御手段を備え
た、データフロープログラムのデバッグ装置。[Scope of Claims] A data flow program debugging device for debugging the operation of a data flow program in units of variables described in a source program, comprising: a program storage means for storing the data flow program; a program execution means that includes a plurality of functional parts that simulate functions corresponding to a plurality of component parts in a processing device to be executed, and that sequentially executes the data flow program stored in the program storage means; state storage means for storing changes in each variable defined in the source program of the plurality of functional parts of the means; Processes corresponding to each variable of the source program, data transition storage means for storing the execution progress status, debug information for storing debug information indicating the correspondence between each variable of the source program and each node of the data flow program storage means, debug information display means for displaying debug information regarding each variable of the source program in connection with the execution of each node of the data flow program, and the program according to the debug information stored in the debug information storage means. A debugging device for a data flow program, comprising an execution means, a control means for controlling the state storage means, and the data transition storage means.
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 true JPH0214334A (en) | 1990-01-18 |
| JPH0727474B2 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) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6383842A (en) * | 1986-09-27 | 1988-04-14 | Toshiba Corp | Program processor |
| JPH01233522A (en) * | 1988-03-14 | 1989-09-19 | Sharp Corp | Simulation device for data flow type information processing equipment |
-
1988
- 1988-07-01 JP JP63165690A patent/JPH0727474B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6383842A (en) * | 1986-09-27 | 1988-04-14 | Toshiba Corp | Program processor |
| JPH01233522A (en) * | 1988-03-14 | 1989-09-19 | Sharp Corp | Simulation device for data flow type information processing equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0727474B2 (en) | 1995-03-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5038348A (en) | Apparatus for debugging a data flow program | |
| JPS62229343A (en) | Program counter display system | |
| JPH0214334A (en) | Debug device for data flow program | |
| JPS62113244A (en) | Program test device | |
| JPH0214333A (en) | Dataflow program debugging device | |
| JPH06101045B2 (en) | Data flow type information processing device simulation device | |
| KR100423742B1 (en) | Exclusive control system by sequential function chart | |
| JPS6033640A (en) | Data monitoring system | |
| JPH01223504A (en) | Sampling trace system for programmable controller | |
| JP3413860B2 (en) | Debug method | |
| JPH03109603A (en) | Programming device for programmable controller | |
| JPH02202643A (en) | Debug device for data driving type information processor | |
| JPS63201736A (en) | Programming device for programmable controller | |
| JPH064348A (en) | Program debugging system | |
| JPH01177137A (en) | Computer execution diagnostic device | |
| JPH0468446A (en) | Debugging support device | |
| JPH0695910A (en) | Interactive debugging control system for abnormality processing | |
| JPH0320835A (en) | Debugging system | |
| JPH0277902A (en) | Sampling trace system for programmable controller | |
| JPH09190364A (en) | Method for debugging program | |
| JPS63317840A (en) | Program debug system | |
| JPH02242442A (en) | Program debugging system | |
| JPH06161734A (en) | Software execution display device | |
| JPH1124905A (en) | How to develop a program | |
| Clemente et al. | A Threaded Code Based Programming Environment For Robotics |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |