JPH03154132A - In-circuit emulator - Google Patents
In-circuit emulatorInfo
- Publication number
- JPH03154132A JPH03154132A JP1292781A JP29278189A JPH03154132A JP H03154132 A JPH03154132 A JP H03154132A JP 1292781 A JP1292781 A JP 1292781A JP 29278189 A JP29278189 A JP 29278189A JP H03154132 A JPH03154132 A JP H03154132A
- Authority
- JP
- Japan
- Prior art keywords
- program
- output
- result
- circuit emulator
- storage device
- 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
Links
Landscapes
- Tests Of Electronic Circuits (AREA)
- Testing Or Measuring Of Semiconductors Or The Like (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野]
この発明は、マイクロコンピュータで実行されるプログ
ラムを開発する場合等に用いるインサーキットエミュレ
ータに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an in-circuit emulator used for developing programs to be executed on a microcomputer.
〔発明の概要J
この発明は、マイクロコンピュータで実行されるプログ
ラムを開発する場合等に用いるインサーキットエミュレ
ータにおいて、プログラム実行により期待される出力結
果を、あらかじめ記憶する記憶装置と該記憶装置の内容
と、プログラム実行による実際の出力結果を比較する手
段と、該比較結果により、プログラム実行の制御や、装
置の制[卸を行う手段とを備えることにより、該インサ
ーキットエミュレータを用いた、マイクロコンピュータ
で実行されるプログラムの、開発効率が向上するように
したものである。[Summary of the Invention J This invention provides an in-circuit emulator used for developing a program to be executed on a microcomputer, and a storage device that stores in advance the output results expected from program execution, and the contents of the storage device. , a means for comparing the actual output results of program execution, and a means for controlling the program execution and controlling the device based on the comparison results. This improves the development efficiency of programs to be executed.
〔従来の技術]
従来、第2図に示す様に、インサーキットエミュレータ
用CPU9と、この出力信号であるプログラムアドレス
13と、これによりアドレッシングされ、プログラムデ
ータ14を出力するプログラムメモリ10とでプログラ
ム実行を可能とし、また、プログラムアドレス13と、
あらかじめ停止すべきプログラムアドレスの値を記憶す
る記憶装置11の出力信号15を比較する比較装置12
と、該比較結果の出力信号16が接続され、インサーキ
ットエミュレータ用CPU9ヘプログラム実行の停止を
指示する信号17を出力する停止装置4とで構成される
インサーキットエミュレータが知られていた。[Prior Art] Conventionally, as shown in FIG. 2, a program is executed using a CPU 9 for an in-circuit emulator, a program address 13 which is an output signal of the in-circuit emulator, and a program memory 10 addressed by the program address 13 and outputting program data 14. Also, the program address 13 and
A comparison device 12 that compares the output signal 15 of the storage device 11 that stores the value of the program address to be stopped in advance.
An in-circuit emulator has been known which includes a stop device 4 to which an output signal 16 of the comparison result is connected and outputs a signal 17 instructing the in-circuit emulator CPU 9 to stop program execution.
[発明が解決しようとする課題]
しかし、従来の技術の第2図に示す構成の、インサーキ
ットエミュレータは、プログラム実行による実際の出力
結果が、期待される出力結果と異なっていても、これを
検知する事が困難であるという欠点があった。[Problems to be Solved by the Invention] However, the conventional in-circuit emulator with the configuration shown in FIG. The disadvantage is that it is difficult to detect.
〔課題を解決するための手段]
上記問題点を解決する−ために、この発明は、第1図に
示すように、プログラム実行により期待される出力結果
と、プログラム実行による実際の出力結果を比較し、該
比較結果により、プログラム実行の制御や、装置の制御
を行う事が可能な構成とするようにした。[Means for Solving the Problems] In order to solve the above problems, the present invention compares the expected output result of program execution with the actual output result of program execution, as shown in FIG. However, the configuration is such that it is possible to control program execution and control the device based on the comparison results.
[作用]
第1図に示すように、プログラム実行により期待される
出力結果と、プログラム実行による実際の出力結果を比
較し、該比較結果により、プログラム実行の制御や、装
置の制御を行う事が可能な構成としたインサーキットエ
ミュレータは、プログラム実行による実際の出力結果が
、期待される出力結果と異なった場合の検出が容易であ
るため該インサーキットエミュレータを用いた、プログ
ラムの開発効率が向上する。[Function] As shown in Figure 1, the expected output result from program execution and the actual output result from program execution are compared, and based on the comparison result, program execution and device control can be performed. An in-circuit emulator with a possible configuration can easily detect when the actual output result of program execution differs from the expected output result, which improves the efficiency of program development using the in-circuit emulator. .
〔実施例1
以下に、この発明の実施例を図面にもとづいて説明する
。第1図は、インサーキットエミュレータの構成図であ
る。第1図において、従来のインサーキットエミュレー
タ18に、プログラム実行により期待される出力結果を
、あらかじめ記憶する記憶装置lと、これを制御する信
号6を出力する装置2と、プログラム実行により期待さ
れる出力結果を、あらかじめ記憶する記憶装置の出力信
号7と、プログラムアドレス13とを比較する比較装置
3が追加される。なお、制御I装置2は、インサーキッ
トエミュレータ用CPU9と制御信号5で接続され、比
較装置3の出力信号8は、停止装置4と接続される。[Embodiment 1] An embodiment of the present invention will be described below based on the drawings. FIG. 1 is a configuration diagram of an in-circuit emulator. In FIG. 1, a conventional in-circuit emulator 18 includes a storage device 1 for storing in advance output results expected by program execution, a device 2 for outputting a signal 6 to control the output results, and a device 2 for outputting a signal 6 to control the output results expected by program execution. A comparator 3 is added that compares the output signal 7 of the storage device, which stores the output result in advance, with the program address 13. The control I device 2 is connected to the in-circuit emulator CPU 9 via a control signal 5, and the output signal 8 of the comparator 3 is connected to the stop device 4.
以下に、この発明のさらに詳細な実施例を、第3図、第
4図にもとづいて説明する。第3図は、インサーキット
エミュレータの図である。第3図は、第1図を詳細に表
わしている。第3図において、プログラムメモリ1oは
、第4図の様なプログラムが格納されているものとする
。該プログラムを0番地から実行すると、プログラムア
ドレス13の値は、0、l、2.3.4.0.1.2・
・・となる事が期待される。この期待される出力結果を
、記憶装置lへあらかじめ記憶しておく。Below, more detailed embodiments of the present invention will be described based on FIGS. 3 and 4. FIG. 3 is a diagram of an in-circuit emulator. FIG. 3 shows FIG. 1 in detail. In FIG. 3, it is assumed that the program memory 1o stores a program as shown in FIG. When the program is executed from address 0, the value of program address 13 is 0, l, 2.3.4.0.1.2.
It is expected that... This expected output result is stored in advance in the storage device l.
記憶装置1のアドレス19に対する、おのおのの内容2
0が、該期待される出力結果である。Each content 2 for address 19 of storage device 1
0 is the expected output result.
記憶装置lのアドレスは、制御装置2の出力信号6によ
りアドレッシングされる。制御装置2は、プログラムが
1ステップ実行すると、その内容が1増加するアップカ
ウンタ等で構成する。カウントのためのパルス5はイン
サーキットエミュレータ用CPU9から出力される。The address of the storage device I is addressed by the output signal 6 of the control device 2. The control device 2 is composed of an up counter or the like whose contents increase by 1 when the program executes one step. Pulse 5 for counting is output from the in-circuit emulator CPU 9.
比較装置3は、記憶装置lの出力信号7と、プログラム
アドレス13を比較する。該比較回路の出力信号8は、
従来のインサーキットエミュレータの比較装置12の出
力信号16とともに、停止装置4に入力される。停止装
置4と、実行の停止を指示する信号17をインサーキッ
トエミュレータ用CPU9へ出力する。The comparison device 3 compares the output signal 7 of the storage device I with the program address 13. The output signal 8 of the comparison circuit is
Together with the output signal 16 of the comparison device 12 of a conventional in-circuit emulator, it is input to the stop device 4. A stop device 4 and a signal 17 instructing to stop execution are output to the in-circuit emulator CPU 9.
この様に構成された第3図に示すインサーキットエミュ
レータにおいて、プログラムの内容に誤りがあり、該プ
ログラムを実行させ、実際に出力されたプログラムアド
レス13の値と、記憶装置lにあらかじめ記憶した、期
待される出力結果とが、異なると、インサーキットエミ
ュレータ用CPU9へ、プログラム実行の停止を指示す
る信号17が出力され、プログラム実行が停止する。In the in-circuit emulator shown in FIG. 3 configured in this way, if there is an error in the content of the program, the program is executed and the value of the program address 13 actually output and the value stored in advance in the storage device l are If the expected output result differs, a signal 17 instructing to stop program execution is output to the in-circuit emulator CPU 9, and the program execution is stopped.
以上説明したように、この発明のインサーキットエミュ
ータは、マイクロコンピュータで実行されるプログラム
を開発する場合等で、プログラム実行による実際の出力
結果が、期待される出力結果と異なった場合の検出が容
易であり、プログラムの開発効率が向上する効果がある
。As explained above, the in-circuit emulator of the present invention can detect when the actual output result of program execution differs from the expected output result when developing a program to be executed on a microcomputer. It is easy and has the effect of improving program development efficiency.
第1図は、この発明にかかるインサーキットエミュレー
タの構成図、第2図は、従来のインサーキットエミュレ
ータの構成図、第3図は、第1図を詳細に表わした、こ
の発明にかかるインサーキットエミュレータ図、第4図
は、1例として、プログラムメモリの内容の図である。
11 ・
12 ・
l 5 ・
l 6 ・
・記憶装置
・記憶装置の制御装置
・比較装置
停止装置
・カウントパルス
・制御装置の出力信号
・記憶装置の出力信号
・比較装置の出力信号
・インサーキットエミュレータ
用CPU
第1図
第2図
・プログラムメモリ
・プログラムアドレス
・プログラムデータ
・プログラム実行停止信号
・従来のインサーキットエミユ
レータ
19・・・・・・記憶装置のアドレス
20・・・・・・記憶装置の内容
以上FIG. 1 is a block diagram of an in-circuit emulator according to the present invention, FIG. 2 is a block diagram of a conventional in-circuit emulator, and FIG. 3 is a detailed illustration of the in-circuit emulator according to the present invention. The emulator diagram, FIG. 4, is a diagram of the contents of the program memory, by way of example. 11 ・ 12 ・ l 5 ・ l 6 ・Storage device・Storage device control device・Comparison device stop device・Count pulse・Output signal of control device・Output signal of storage device・Output signal of comparison device・For in-circuit emulator CPU Figure 1 Figure 2 Program memory Program address Program data Program execution stop signal Conventional in-circuit emulator 19...Storage device address 20...Storage device address More than content
Claims (1)
じめ記憶する記憶装置を有し、該記憶装置の内容と、プ
ログラム実行による実際の出力結果を比較する手段を有
し、該比較結果により、プログラム実行の制御や、装置
の制御を行う手段とを備えた事を特徴とするインサーキ
ットエミュレータ。It has a storage device that stores in advance the output results expected from program execution, and it has means for comparing the contents of the storage device with the actual output results from program execution, and controls the program execution based on the comparison results. An in-circuit emulator characterized by having a device and a means for controlling the device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1292781A JPH03154132A (en) | 1989-11-10 | 1989-11-10 | In-circuit emulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1292781A JPH03154132A (en) | 1989-11-10 | 1989-11-10 | In-circuit emulator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03154132A true JPH03154132A (en) | 1991-07-02 |
Family
ID=17786253
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1292781A Pending JPH03154132A (en) | 1989-11-10 | 1989-11-10 | In-circuit emulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03154132A (en) |
-
1989
- 1989-11-10 JP JP1292781A patent/JPH03154132A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4040294A1 (en) | Process scheduling method and apparatus of vision software | |
| JPH0283749A (en) | Microprocessor internal interrupt control method | |
| JPS62145426A (en) | Microprograms processing unit | |
| KR200182542Y1 (en) | Reset circuit of micom | |
| JPS61240341A (en) | Microprogram controller | |
| JPH01121950A (en) | Microprocessor with trace function | |
| JPH03296146A (en) | Back-up device for program development | |
| JPS60209851A (en) | Program sequence stop system | |
| JPS6356742A (en) | Interruption request signal generating circuit | |
| JPS63163543A (en) | Information processor | |
| JPH01201762A (en) | Micro computer | |
| JPS6476236A (en) | Simulator device with pseudo-operating function of input/ output device | |
| JPH0240734A (en) | Program development support device | |
| JPH04306741A (en) | Undefined variable detection device | |
| JPH01230145A (en) | Microprogram control device | |
| JPH06175883A (en) | Program debug device | |
| JPH04344947A (en) | Program controller | |
| JPH04310138A (en) | Debugging method for data transmitter | |
| JPH04262402A (en) | Programmable controller | |
| JPH01261741A (en) | Fa controller | |
| JPH01142948A (en) | Symbolic debugger for microcomputer | |
| JPS63165931A (en) | Storing system for information on discontinuous instruction fetch address | |
| JPH04284544A (en) | Micro-controller | |
| JPS5739455A (en) | Program debug device | |
| JPS61221943A (en) | Arithmetic processor |