[go: up one dir, main page]

JPH11288374A - Simulator for digital computer - Google Patents

Simulator for digital computer

Info

Publication number
JPH11288374A
JPH11288374A JP10089116A JP8911698A JPH11288374A JP H11288374 A JPH11288374 A JP H11288374A JP 10089116 A JP10089116 A JP 10089116A JP 8911698 A JP8911698 A JP 8911698A JP H11288374 A JPH11288374 A JP H11288374A
Authority
JP
Japan
Prior art keywords
instruction
execution
stage
stopped
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10089116A
Other languages
Japanese (ja)
Inventor
Manabu Kuroda
学 黒田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10089116A priority Critical patent/JPH11288374A/en
Publication of JPH11288374A publication Critical patent/JPH11288374A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily analyze simulation results by giving no instructions following an instruction that stops the execution of simulation to a pipeline when execution of simulation is stopped and accordingly eliminating influences of subsequent instructions when execution of simulation is stopped by a specific instruction. SOLUTION: It's decided whether the instruction of a stage A, i.e., the first one of pipeline processing stages satisfies the execution termination condition (instruction 1). If the instruction does not satisfy the instruction 1, execution of simulation is carried on as it is. If the instruction satisfies the instruction 1, a flag, i.e., a NOPFLG 21 is set to make the next instruction wait for the stage A. Then the subsequent instructions are stopped until the instruction 1 finishes the final stage D or the steps are carried on with insertion of the substitute NOP steps. Then the NOPFLG 21 is reset and program execution is stopped. Thus, it's possible to stop the steps in a state where the subsequent instructions are not processed at a STOP time point.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、パイプライン構造
を持つデジタル計算機の動作のためのソフトウェア開発
に用いられるデジタル計算機のシミュレータに関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital computer simulator used for developing software for operating a digital computer having a pipeline structure.

【0002】[0002]

【従来の技術】マイクロコンピュータやマイクロプロセ
ッサ等のデジタル計算機におけるソフトウェアを開発す
る上で、その動作を忠実に再現するソフトウェアシミュ
レータは必須である。この時、ソフトウェア開発の効率
化のためには、任意の命令で実行を停止させ、その結果
の内部状態を出力する機能が不可欠となる。
2. Description of the Related Art In developing software for digital computers such as microcomputers and microprocessors, a software simulator that faithfully reproduces the operation of the software is essential. At this time, in order to improve the efficiency of software development, a function of stopping execution by an arbitrary instruction and outputting the resulting internal state is indispensable.

【0003】近年では、デジタル計算機においては、そ
の動作を高速化させるため、その命令を内部的にパイプ
ライン構造にして処理する方法が一般的になっている。
そのため、命令を1つずつ順番に独立して行うシミュレ
ータ(命令実行型シミュレータ)では、パイプライン構
造に依存する動作(割り込み時の動作等)を忠実に再現
するのは不可能であり、パイプライン構造を忠実に再現
したシミュレーションをする必要がある。
In recent years, in a digital computer, in order to speed up the operation, a method of processing an instruction in a pipeline structure internally has been generally used.
Therefore, it is impossible for a simulator (instruction execution type simulator) that executes instructions independently one by one in order to faithfully reproduce an operation (operation at the time of an interrupt, etc.) that depends on a pipeline structure. It is necessary to simulate the structure faithfully.

【0004】しかし、パイプライン構造を忠実に再現し
たシミュレータの場合には、ある指定された命令が終了
した時点でシミュレーションの実行を止めてその内部状
態を出力した場合、その命令の後続命令が既にパイプラ
インに流れており、途中まで行われたその後続命令の処
理の結果が、出力に反映されてしまうという問題が発生
する。
However, in the case of a simulator that faithfully reproduces the pipeline structure, when the execution of the simulation is stopped at the time when a specified instruction is completed and the internal state is output, the instruction following the instruction is already executed. A problem arises in that the result of processing of the subsequent instruction that has flowed through the pipeline and has been performed halfway is reflected in the output.

【0005】図1はパイプラインが4段構造になってい
る場合の処理の流れを一例として示している。縦方向に
示しているA〜Dは、パイプライン処理段階(以下、ス
テージと記す)を示していおり、命令の処理は、1ステ
ップずつA,B,C,Dの順番で行われる。また、全体
の処理が1ステップ進むごとに図では右の方向に1つず
つ進む。上に書いてある数字は命令の番号で、0,1,
2,3のように順番に実行されるようにプログラムされ
ているとする。
FIG. 1 shows an example of a processing flow when a pipeline has a four-stage structure. A to D shown in the vertical direction indicate pipeline processing stages (hereinafter, referred to as stages), and instruction processing is performed step by step in the order of A, B, C, and D. In addition, every time the entire process advances by one step, the process advances by one in the right direction in the figure. The numbers written above are the instruction numbers, 0, 1,
It is assumed that the program is executed so as to be executed in order as shown in 2 and 3.

【0006】例えば、図1中のステップ11では、命令
3はステージAの段階の処理を、命令2はステージBの
段階の処理を、命令1はステージCの段階の処理を、命
令0はステージDの段階の処理を、それぞれ同時に行っ
ていることを示す。次のステップ(図1中のステップ1
2)では、それぞれの命令は1つずつ進んで、命令3は
ステージBの処理を、命令2はステージCの処理を、命
令1はステージDの処理を行い、新しく命令4もステー
ジAの処理に入る。命令1は、ここで全ての処理を終え
たことになり、もし、「命令1が終了した時点で実行を
止めたい」とした場合は、ここで実行を止めることにな
る。
For example, in step 11 in FIG. 1, instruction 3 executes the processing of the stage of stage A, instruction 2 executes the processing of the stage of stage B, instruction 1 executes the processing of the stage of stage C, and instruction 0 executes the processing of the stage of stage C. This indicates that the processes in the stage D are performed simultaneously. Next step (Step 1 in FIG. 1)
In 2), each instruction proceeds one by one, and instruction 3 performs the processing of stage B, instruction 2 performs the processing of stage C, instruction 1 performs the processing of stage D, and instruction 4 newly performs the processing of stage A. to go into. The instruction 1 has completed all the processing here, and if "I want to stop the execution at the end of the instruction 1", the execution is stopped here.

【0007】図8は、ある特定の命令が終わった時点で
実行が止まるように作った従来のシステムの構成を、フ
ローチャートに表したものである。命令を1ステップ実
行するたびに、ステップ81で指定された命令が終了し
たかどうか判断し、もし終了していれば、ステップ82
で全ての処理を止め、終了していなければ実行を継続
し、次のステップに進む。
FIG. 8 is a flow chart showing the configuration of a conventional system which is designed to stop execution when a specific instruction is completed. Each time the instruction is executed one step, it is determined whether or not the instruction specified in step 81 has been completed.
To stop all processing, and if not finished, continue execution and go to the next step.

【0008】[0008]

【発明が解決しようとする課題】しかしながら上記のよ
うな従来のシステムの構成では、図1のステップ12を
見て解る通り、命令1が終了した時点で、命令2,3,
4の処理が既に始まってしまっていることになる。
However, in the configuration of the conventional system as described above, as can be seen from step 12 in FIG.
This means that the processing of 4 has already started.

【0009】この結果、ここで内部状態を出力しても、
ユーザーは、後続命令2,3,4の影響も考慮して出力
結果を解析しなくてはならなくなり、ソフトウエアのデ
バッグが困難になってしまうという問題点を有してい
た。
As a result, even if the internal state is output here,
The user has to analyze the output result in consideration of the influence of the subsequent instructions 2, 3, and 4, which causes a problem that software debugging becomes difficult.

【0010】本発明は、上記従来の問題点を解決するも
ので、パイプライン構造を再現したシミュレーションに
おける特定命令での停止の際に、後続命令による影響が
出ないようにして、シミュレーション結果の解析を容易
にすることができ、ユーザーによるソフトウェア開発に
おける開発効率を向上することができるデジタル計算機
のシミュレータを提供する。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems. The present invention solves the above problem by analyzing the simulation result by preventing the subsequent instruction from being affected when a specific instruction is stopped in a simulation reproducing a pipeline structure. And a digital computer simulator that can improve the development efficiency in software development by the user.

【0011】[0011]

【課題を解決するための手段】上記の課題を解決するた
めに本発明のデジタル計算機のシミュレータは、パイプ
ライン処理の初期のステージで、あらかじめシミュレー
タ実行停止条件に合致する命令かどうか調べ、合致した
場合、その命令の動作が完全に終了してシミュレーショ
ンが止まるまで後続命令を実行しないようにするか、ま
たは何もしない命令(以下NOP)を挿入し、再度実行
する際には、実行を止めていた後続命令を、その止めた
ステージから再度実行するようにしたものであり、シミ
ュレータ実行停止の際に、その停止させる命令の後続命
令をパイプラインに流さないようにすることにより、そ
の後続命令の影響を排除して、ユーザーにパイプライン
動作を意識せずに実行結果を解析できるようにすること
を特徴とする。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, a digital computer simulator according to the present invention checks in advance in an initial stage of pipeline processing whether an instruction satisfies a simulator execution stop condition. In such a case, the subsequent instruction is not executed until the operation of the instruction is completely completed and the simulation is stopped, or an instruction that does nothing (hereinafter, NOP) is inserted, and the execution is stopped when the instruction is executed again. The subsequent instruction is executed again from the stage where the instruction was stopped. When the simulator execution is stopped, the instruction following the instruction to be stopped is not sent to the pipeline, so that the subsequent instruction is not executed. It is characterized in that the effect can be eliminated and the execution result can be analyzed without the user being aware of the pipeline operation.

【0012】以上により、パイプライン構造を再現した
シミュレーションにおける特定命令での停止の際に、後
続命令による影響が出ないようにして、シミュレーショ
ン結果の解析を容易にすることができ、ユーザーによる
ソフトウェア開発における開発効率を向上することがで
きる。
As described above, when stopping at a specific instruction in a simulation that reproduces a pipeline structure, the effect of a subsequent instruction does not occur, and the analysis of the simulation result can be facilitated. Can improve development efficiency.

【0013】[0013]

【発明の実施の形態】本発明の請求項1に記載のデジタ
ル計算機のシミュレータは、パイプライン構造を持つデ
ジタル計算機の動作のためのソフトウェア開発に用いら
れるデジタル計算機のシミュレータであって、前記パイ
プライン構造における処理の初期段階で、実行の停止条
件を満たす命令が来たかどうかを調べ、満たしていた場
合、その命令が完了するまで後続命令の実行を止める処
理をするか、または何もしない命令を挿入するように構
成する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A digital computer simulator according to claim 1 of the present invention is a digital computer simulator used for developing software for operating a digital computer having a pipeline structure, wherein the pipeline computer has a pipeline structure. At the initial stage of processing in the structure, it checks whether an instruction that satisfies the condition for stopping execution has been received, and if so, stops the execution of the subsequent instruction until the instruction is completed, or executes an Configure to be inserted.

【0014】この構成によると、シミュレータ実行停止
の際に、その停止させる命令の後続命令をパイプライン
に流さないようにすることにより、その後続命令の影響
を排除して、ユーザーにパイプライン動作を意識せずに
実行結果を解析できるようにする。
According to this configuration, when the execution of the simulator is stopped, the instruction following the instruction to be stopped is not sent to the pipeline, so that the influence of the instruction following the instruction is eliminated, and the user can execute the pipeline operation. Make it possible to analyze execution results without being conscious.

【0015】以下、本発明の実施の形態を示すデジタル
計算機のシミュレータについて、図面を参照しながら具
体的に説明する。図2は、4段構成のパイプラインを想
定し、プログラムを例えば命令1の命令が完全に終了し
た時点で実行を停止させたい場合の命令の流れを表した
ものであり、その実現のための処理手順を図9のフロー
チャートに示す。なお、図2において、21〜26はN
OP挿入処理を加えた通常命令での実行停止の処理に関
して付した符号であり、21はフラグ(NOPFLG)
を示し、22〜26は各処理を示す。また、図9におい
て、91〜99、9a、9bはNOP挿入処理を加えた
フラグを使用した場合の実行停止の各処理に付した符号
である。
Hereinafter, a digital computer simulator according to an embodiment of the present invention will be specifically described with reference to the drawings. FIG. 2 shows the flow of instructions when the execution of a program is to be stopped when the instruction of instruction 1 is completely completed, assuming a pipeline having a four-stage configuration. The processing procedure is shown in the flowchart of FIG. In FIG. 2, 21 to 26 represent N
The reference numeral 21 denotes a code attached to the processing for stopping the execution of the normal instruction to which the OP insertion processing has been added, and 21 denotes a flag (NOPFLG)
, And 22 to 26 indicate each processing. In FIG. 9, reference numerals 91 to 99, 9a, and 9b denote the respective processes of the execution stop when the flag to which the NOP insertion process is added is used.

【0016】まず、パイプライン処理の中で最初の処理
段階であるステージAにある命令が、実行終了条件(命
令番号=1であり、単に命令1と記す)を満たしている
かを判断する。その際、もし条件を満たしていなけれ
ば、シミュレーションの実行をそのまま進める。もし条
件を満たしていれば、次の命令がステージAに来るのを
待たせるフラグ(以下、NOPFLGと記す)をセット
する。
First, it is determined whether or not the instruction at the stage A, which is the first processing stage in the pipeline processing, satisfies the execution end condition (instruction number = 1, simply referred to as instruction 1). At this time, if the conditions are not satisfied, the execution of the simulation proceeds as it is. If the condition is satisfied, a flag (hereinafter, referred to as NOPFLG) for waiting for the next instruction to come to stage A is set.

【0017】そして、命令1が最終ステージ(ステージ
D)を完了するまで後続命令を止めるか、変わりにNO
Pステップを挿入しながらステップを進め、そのあとN
OPFLGをリセットしてプログラムの実行を止める。
Then, the subsequent instruction is stopped until the instruction 1 completes the final stage (stage D), or NO
Step forward while inserting P step, then N
Reset the OPFLG to stop the program execution.

【0018】その結果、図2のように、STOPの時点
で後続命令の処理は全く実行されていない状態で停止さ
せることができる。その後、再び実行を再開させるとき
には、後続命令をステージAから実行させる。
As a result, as shown in FIG. 2, the processing of the subsequent instruction can be stopped at the time of the STOP without any execution. Thereafter, when the execution is resumed again, the subsequent instruction is executed from the stage A.

【0019】図3は、もし停止させたい命令が複数サイ
クル命令であった場合の命令の流れをあらわしたもので
ある。なお、図3において、31〜35はNOP挿入処
理を加えた複数サイクルでの実行停止の各処理に付した
符号である。
FIG. 3 shows an instruction flow when the instruction to be stopped is a multi-cycle instruction. In FIG. 3, reference numerals 31 to 35 denote the respective processes of the execution stop in a plurality of cycles including the NOP insertion process.

【0020】命令1がステージAに来たと判断しても、
そのステージAでの処理が完全には終了していない1ス
テップ目ではフラグ(NOPFLG)の設定を行わな
ず、ステージAの処理が全て終了する次サイクルでフラ
グ(NOPFLG)を設定する。
Even if it is determined that instruction 1 has reached stage A,
The flag (NOPFLG) is not set in the first step in which the processing in the stage A is not completely completed, and the flag (NOPFLG) is set in the next cycle in which all the processing in the stage A is completed.

【0021】また、停止させたい命令がパイプラインの
流れに依存する命令であった場合の命令の流れを示した
のが図4である。なお、図4において、41〜45はN
OP挿入処理を加えたNOP挿入不可能な命令の場合の
実行停止の各処理に付した符号である。
FIG. 4 shows the flow of instructions when the instruction to be stopped is an instruction dependent on the flow of the pipeline. In addition, in FIG.
This is a code attached to each process of stopping execution in the case of an instruction that cannot be inserted with NOP added with OP insertion processing.

【0022】ステージAで命令1が来たと判断した場
合、NOPを挿入することによる弊害がないかどうか調
べ、もし弊害があれば、そのことをユーザーに警告し、
停止命令を次命令(命令2)にずらす例外処理を行った
後、NOPを挿入せずに実行を継続する。そして、命令
2がステージAに来た時点で改めてフラグ(NOPFL
G)を設定し、命令2がステージDを終えた時点でフラ
グ(NOPFLG)をリセットして実行を止める。
If it is determined that the instruction 1 has arrived at the stage A, it is checked whether there is any harm caused by inserting the NOP, and if so, the user is warned of the harm,
After performing the exception processing for shifting the stop instruction to the next instruction (instruction 2), the execution is continued without inserting the NOP. When the instruction 2 reaches the stage A, the flag (NOPFL) is renewed.
G) is set, and when the instruction 2 has completed the stage D, the flag (NOPFLG) is reset to stop the execution.

【0023】また、本発明の実施の形態では、上記のN
OPFLGのようなフラグではなく、カウンタを使って
NOPを挿入する方法でも実現できる。図5はカウンタ
を使った場合の命令の流れとカウンタの変化を表したも
のであり、図10はそれを実現するための処理手順をフ
ローチャートにしたものである。なお、図5において、
51〜56はNOP挿入処理を加えたカウンタを使用し
た場合の実行停止の処理に関して付した符号であり、5
3はカウンタを示し、その他は各処理を示す。また、図
10において、101〜109、10a〜10cはNO
P挿入処理を加えたカウンタを使用した場合の実行停止
の各処理に付した符号である。
In the embodiment of the present invention, the above N
Instead of using a flag like OPFLG, a counter can be used to insert a NOP. FIG. 5 shows the flow of instructions and changes in the counter when a counter is used, and FIG. 10 is a flowchart showing a processing procedure for realizing the flow. In FIG. 5,
Numerals 51 to 56 denote symbols attached to the execution stop processing when the counter to which the NOP insertion processing is added is used.
Numeral 3 indicates a counter, and others indicate each processing. In FIG. 10, reference numerals 101 to 109 and 10a to 10c denote NO.
This is a code given to each processing of execution stop when the counter to which the P insertion processing is added is used.

【0024】まず、カウンタは通常ゼロに設定してお
く。そして、停止対象命令がステージAにきたとき、カ
ウンタを(パイプラインの段数−1)に設定する。その
後それがゼロのなるまで1ステップに1ずつカウンタを
減らしていき、NOPを挿入するか後続命令を止めるよ
うにすれば、停止対象命令がステージDに来るまで後続
命令がパイプラインに入らなくなる。
First, the counter is usually set to zero. Then, when the instruction to be stopped comes to the stage A, the counter is set to (the number of pipeline stages -1). Thereafter, the counter is decreased by one at a time until the value becomes zero, and if the NOP is inserted or the subsequent instruction is stopped, the subsequent instruction does not enter the pipeline until the instruction to be stopped comes to stage D.

【0025】図6は、カウンタを利用した方法で、停止
させたい命令が複数サイクル命令であった場合の命令の
流れを表したものである。なお、図6において、61〜
66はNOP挿入処理を加えたカウンタを使用した場合
の複数サイクル命令での実行停止の処理に関して付した
符号であり、64はカウンタを示し、その他は各処理を
示す。
FIG. 6 shows the flow of instructions when the instruction to be stopped is a multi-cycle instruction by a method using a counter. In addition, in FIG.
Reference numeral 66 denotes a code attached to processing for stopping execution of a plurality of cycle instructions when a counter to which NOP insertion processing is added is used, reference numeral 64 denotes a counter, and the other denotes each processing.

【0026】命令1がステージAに来たと判断しても、
そのステージAでの処理が終了していない1ステップ目
ではカウンタの設定を行わなず、ステージAが全て終了
した次サイクルでフラグ(NOPFLG)を設定する。
Even if it is determined that instruction 1 has reached stage A,
In the first step where the processing in the stage A is not completed, the counter is not set, and the flag (NOPFLG) is set in the next cycle in which all the stages A are completed.

【0027】また、カウンタを使用した方法で、停止さ
せたい命令がパイプラインの流れに依存する命令であっ
た場合の命令の流れを示したのが図7である。なお、図
7において、71〜76はNOP挿入処理を加えたカウ
ンタを使用した場合のNOP挿入不可能な命令での実行
停止の処理に関して付した符号であり、74はカウンタ
を示し、その他は各処理を示す。
FIG. 7 shows an instruction flow in the case where the instruction to be stopped is an instruction that depends on the flow of the pipeline in the method using the counter. In FIG. 7, reference numerals 71 to 76 denote symbols attached to processing for stopping execution of an instruction that cannot be inserted with NOP when a counter to which NOP insertion processing is added is used. Indicates processing.

【0028】ステージAで命令1が来たと判断した場
合、NOPを挿入することよる弊害がないかどうか調
べ、もし弊害があれば、そのことをユーザーに警告し、
停止命令を次命令(命令2)にずらす例外処理を行った
後、NOPを挿入せずに実行を継続する。そして、命令
2がステージAに来た時点で改めてカウンタを設定し、
命令2がステージDを終えた時点で実行を止める。
When it is determined that the instruction 1 has arrived in the stage A, it is checked whether there is any harm caused by inserting the NOP, and if so, the user is warned of the harm,
After performing the exception processing for shifting the stop instruction to the next instruction (instruction 2), the execution is continued without inserting the NOP. Then, when the instruction 2 reaches the stage A, the counter is set again,
Execution stops when instruction 2 finishes stage D.

【0029】[0029]

【発明の効果】以上のように本発明によれば、シミュレ
ータ実行停止の際に、その停止させる命令の後続命令を
パイプラインに流さないようにすることにより、その後
続命令の影響を排除して、ユーザーにパイプライン動作
を意識せずに実行結果を解析できるようにすることがで
きる。
As described above, according to the present invention, when the execution of the simulator is stopped, the instruction following the instruction to be stopped is not sent to the pipeline, thereby eliminating the influence of the subsequent instruction. Thus, the execution result can be analyzed without the user being aware of the pipeline operation.

【0030】そのため、パイプライン構造を再現したシ
ミュレーションにおける特定命令での停止の際に、後続
命令による影響が出ないようにして、シミュレーション
結果の解析を容易にすることができ、ユーザーによるソ
フトウェア開発における開発効率を向上することができ
る。
Therefore, when stopping at a specific instruction in a simulation reproducing the pipeline structure, it is possible to prevent the influence of a subsequent instruction from appearing and to facilitate the analysis of the simulation result. Development efficiency can be improved.

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

【図1】従来のデジタル計算機のシミュレータにおける
実行停止時のプログラムの流れの説明図
FIG. 1 is an explanatory diagram of a program flow when execution is stopped in a conventional digital computer simulator.

【図2】本発明の実施の形態のデジタル計算機のシミュ
レータにおける通常命令での実行停止時のプログラムの
流れの説明図
FIG. 2 is an explanatory diagram of a program flow when execution of a normal instruction is stopped in the digital computer simulator according to the embodiment of the present invention;

【図3】同実施の形態における複数サイクル命令での実
行停止時のプログラムの流れの説明図
FIG. 3 is an explanatory diagram of a program flow when execution is stopped by a multi-cycle instruction in the embodiment.

【図4】同実施の形態において停止対象命令にNOP挿
入を行った場合の不具合回避動作の説明図
FIG. 4 is an explanatory diagram of a trouble avoiding operation when NOP is inserted into a command to be stopped in the embodiment.

【図5】同実施の形態においてカウンタを使用した場合
の通常命令での実行停止時のプログラムの流れの説明図
FIG. 5 is an explanatory diagram of a program flow when execution of a normal instruction is stopped when a counter is used in the embodiment;

【図6】同実施の形態においてカウンタを使用した場合
の複数サイクル命令での実行停止時のプログラムの流れ
の説明図
FIG. 6 is an explanatory diagram of a program flow when execution is stopped by a multi-cycle instruction when a counter is used in the embodiment.

【図7】同実施の形態においてカウンタを使用した場合
に停止対象命令にNOP挿入を行った場合の不具合回避
動作の説明図
FIG. 7 is an explanatory diagram of a trouble avoiding operation when a NOP is inserted into a stop target instruction when a counter is used in the embodiment.

【図8】従来の方法での特定命令で実行を止めるための
構成を示すフローチャート図
FIG. 8 is a flowchart showing a configuration for stopping execution at a specific instruction in the conventional method.

【図9】本発明の実施の形態のデジタル計算機のシミュ
レータの構成を示すフローチャート図の一例
FIG. 9 is an example of a flowchart showing a configuration of a simulator of the digital computer according to the embodiment of the present invention;

【図10】同実施の形態においてカウンタを使用した場
合のフローチャート図の一例
FIG. 10 is an example of a flowchart in the case where a counter is used in the embodiment.

【符号の説明】[Explanation of symbols]

21 フラグ(NOPFLG) 53、64、74 カウンタ 21 Flag (NOPFLG) 53, 64, 74 Counter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 パイプライン構造を持つデジタル計算機
の動作のためのソフトウェア開発に用いられるデジタル
計算機のシミュレータであって、前記パイプライン構造
における処理の初期段階で、実行の停止条件を満たす命
令が来たかどうかを調べ、満たしていた場合、その命令
が完了するまで後続命令の実行を止める処理をするか、
または何もしない命令を挿入するようにしたことを特徴
とするデジタル計算機のシミュレータ。
1. A simulator for a digital computer used for developing software for operating a digital computer having a pipeline structure, wherein an instruction that satisfies an execution stop condition is received at an initial stage of processing in the pipeline structure. Check if it is satisfied, and if it satisfies, perform processing to stop execution of the subsequent instruction until the instruction is completed,
Or a digital computer simulator characterized by inserting an instruction to do nothing.
JP10089116A 1998-04-02 1998-04-02 Simulator for digital computer Pending JPH11288374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10089116A JPH11288374A (en) 1998-04-02 1998-04-02 Simulator for digital computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10089116A JPH11288374A (en) 1998-04-02 1998-04-02 Simulator for digital computer

Publications (1)

Publication Number Publication Date
JPH11288374A true JPH11288374A (en) 1999-10-19

Family

ID=13961932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10089116A Pending JPH11288374A (en) 1998-04-02 1998-04-02 Simulator for digital computer

Country Status (1)

Country Link
JP (1) JPH11288374A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006331415A (en) * 2005-05-09 2006-12-07 Sony Computer Entertainment Europe Ltd Data processor and data processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006331415A (en) * 2005-05-09 2006-12-07 Sony Computer Entertainment Europe Ltd Data processor and data processing method

Similar Documents

Publication Publication Date Title
US20080209405A1 (en) Distributed debugging for a visual programming language
JPH11513512A (en) Method of manufacturing digital signal processor
JPH09259153A (en) Device and method for generating batch execution control program
US7711535B1 (en) Simulation of hardware and software
US7016826B2 (en) Apparatus and method of developing software for a multi-processor chip
US7085964B2 (en) Dynamic test program generator for VLIW simulation
CN103713977B (en) Microprocessor IP (internet protocol) kernel comparison and verification implementation method
US6622238B1 (en) System and method for providing predicate data
WO2018154657A1 (en) Equivalence checking device and equivalence checking program
JPH11288374A (en) Simulator for digital computer
Bensaid et al. Work in progress: Automatic construction of pipeline datapaths from high-level HDL code
JP2000268074A (en) Device and method for automatically generating verification program and device and method for automatically generating property
JP2828590B2 (en) Microprogram verification method
JP2514922B2 (en) Performance control method for information processing equipment
CN112445587A (en) Task processing method and task processing device
JPH02231634A (en) Method for maintaining interchangeability of software
JP2001236247A (en) Software simulator and simulation processing method
JP2570119B2 (en) Software simulator
JP2000076094A (en) Simulator
CN111752829A (en) Dynamic Debugging Method of Embedded System Firmware Program
JPS6143347A (en) Vector instruction simulation method
JPH04324525A (en) Program transplantation supporting device
JP2000276376A (en) Software simulator for pipeline type processor
JPH06222951A (en) Debugging method for processor for pipeline system
JPH10154084A (en) Instruction simulation method and instruction simulation system