JPH02101545A - Coverage test device - Google Patents

Coverage test device

Info

Publication number
JPH02101545A
JPH02101545A JP63253881A JP25388188A JPH02101545A JP H02101545 A JPH02101545 A JP H02101545A JP 63253881 A JP63253881 A JP 63253881A JP 25388188 A JP25388188 A JP 25388188A JP H02101545 A JPH02101545 A JP H02101545A
Authority
JP
Japan
Prior art keywords
address
executed
instruction
coverage
source program
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
JP63253881A
Other languages
Japanese (ja)
Inventor
Kenichi Ito
堅一 伊藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63253881A priority Critical patent/JPH02101545A/en
Publication of JPH02101545A publication Critical patent/JPH02101545A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate discrimination by comparing storage information of an execution address in a tested device with the instruction of a source program and map information and deciding whether the instruction of the source program has been executed or not in a coverage-side CPU. CONSTITUTION:CPU 2 in the tested device sequentially reads and executes the programs of machine words in a memory 3. In a coverage test device 4A, an address read part 7 detects the addresses which CPU 2 executes and an address write part 6 writes that the addresses have been executed into the address storage part 7 corresponding to the addresses. In the device 4A, the source programs of the programs of the machine words which previously exist in the memory 3 of the device 1 are stored in the storage part 21, and map information are stored in a storage part 22. Coverage-side CPU 8 fetches an instruction sentence from the storage part 21, the address of the instruction sentence is read from the storage part 22, and whether the instruction sentence has been executed or not is displayed in a display part 10 with information of the storage part 7. The rate of all the executed instruction sentences and the instruction sentences which have not been executed is displayed 10.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明は、被試験装置のソフトウェアのカバレンジテ
ストを実施するカバレッジ試験装置に関するものである
The present invention relates to a coverage test device that performs a coverage test of software of a device under test.

【従来の技術】[Conventional technology]

第3図は従来のカバレッジ試験装置を示すブロック接続
図であり、図において、lは被試験装置、2は被試験装
置lのマイクロプロセッサ(以下、CPUという)、3
はメモリ、4はカバレッジ試験装置、5はカバレッジ試
験装置4のアドレス読出部、6はアドレス書込部、7は
アドレス記憶部、8はカバレッジ側マイクロプロセッサ
(以下、CPUという)、9は表示用インクフェイス、
1゜は表示部である。 次に動作について説明する。この従来例では被試験用の
プログラムを実時間で実行させながら、カバレッジ試験
を行う。まず、被試験装置1内のCPU2は、メモリ3
に書いである機械語のプログラムを順次読み出し、実行
する。一方、カバレッジ試験装置4はCPU2が実行し
ているアドレスを、アドレス読出部5にて読み取り、ア
ドレス書込部6にてそのアドレスが実行されたことを、
そのアドレスに対応するアドレス記憶部7に書き込む。 カバレッジ試験装置4内のカバレンジ側CPU8は被試
験装置1内のメモリ3に割り付けられた全てのアドレス
に対し、実行されたアドレスとそうでないアドレス及び
それぞれの割合を表示用インクフェイス9を通し表示部
10に表示する。 また、第4図は従来の大型計算機を用いた他のカバレッ
ジ試験装置を示すブロック接続図であり、図において、
11は大型計算機、12は大型計算機11に設けたシミ
ュレーションプログラム記憶部、13はヒツト記憶部、
14はCPU、15はソースプログラム記憶部であり、
このほかの第2図に示したものと同一のブロックには、
同一符号を付しである。 この大型計算機のCPU14は、シミュレーションプロ
グラム記憶部12にあるシミヱレーションプログラムに
より、第5図に示すフローチャートの手順で以下の動作
が実行される。まず、ソースプログラム記憶部15にあ
る被試験プログラムの命令文を取り出す(ステップ5T
II)。そして、この命令文が最初の命令文から数えて
何番目の命令文であるかを検出しくステップ5T12)
、ヒツト記憶部13に何番目の命令文かを記憶する(ス
テップ5T13)。その後、その命令文をシミュレート
しくステップ5T14)、次に命令文が終りか否か判定
しくステップ5T15)、終りでないと判定された場合
には、次の命令文を取り出し、以下上記の動作を繰り返
す。一方、命令文が終りの場合には、CPU14は命令
文対応に実行されたか否かの結果と各々の割合とを、表
示用インタフェイス9を通し表示部10に表示する。
FIG. 3 is a block connection diagram showing a conventional coverage test device.
is a memory, 4 is a coverage test device, 5 is an address read section of the coverage test device 4, 6 is an address write section, 7 is an address storage section, 8 is a coverage side microprocessor (hereinafter referred to as CPU), 9 is for display ink face,
1° is the display section. Next, the operation will be explained. In this conventional example, a coverage test is performed while a program under test is executed in real time. First, the CPU 2 in the device under test 1 uses the memory 3
Read and execute the machine language program written in . On the other hand, the coverage test device 4 uses the address reading section 5 to read the address being executed by the CPU 2, and the address writing section 6 reads the address being executed by the address writing section 6.
The address is written into the address storage section 7 corresponding to the address. The coverage-side CPU 8 in the coverage test device 4 displays executed addresses, non-executed addresses, and their respective ratios on a display unit through an ink face 9 for all addresses allocated to the memory 3 in the device under test 1. 10. Moreover, FIG. 4 is a block connection diagram showing another coverage test device using a conventional large-scale computer, and in the figure,
11 is a large computer, 12 is a simulation program storage section provided in the large computer 11, 13 is a human storage section,
14 is a CPU, 15 is a source program storage unit,
Other blocks that are the same as those shown in Figure 2 include:
The same reference numerals are given. The CPU 14 of this large-sized computer executes the following operations according to the procedure of the flowchart shown in FIG. 5 by the simulation program stored in the simulation program storage section 12. First, the instruction statement of the program under test stored in the source program storage unit 15 is retrieved (step 5T).
II). Step 5T12)
, the number of the instruction statement is stored in the hit storage unit 13 (step 5T13). After that, the instruction statement is simulated (Step 5T14), and then it is determined whether the instruction statement is the end or not (Step 5T15). If it is determined that it is not the end, the next instruction statement is extracted and the above operations are performed. repeat. On the other hand, when the command statement is the end, the CPU 14 displays the result of whether the command statement has been executed or not and the respective ratios on the display unit 10 through the display interface 9.

【発明が解決しようとする課題】[Problem to be solved by the invention]

従来のカバレッジ試験装置は以上のように構成されてい
るので、ハードウェアとしてみると、メモリ内のすべて
のアドレスに対し実行されたアドレスおよび実行されな
いアドレスと、これらの割合が容易にわかるものの、ソ
フトウェアとしてみると、ソースプログラムの中でどの
命令文が実行されたか不明であるなどの問題点があった
。 また、大型計算機11を使用した従来のカバレッジ試験
装置では、プログラムにシミュレーションを行うため、
被試験用プログラムを実時間で実行させながら試験が行
えないほか、すべてのプログラムをシミュレーションで
きない場合があるなどの問題点があった。 この発明は上記のよう問題点を解消するためになされた
もので、被試験用のプログラムを実時間で実行させなが
ら、ソースプログラムの命令文単位でカバレッジ試験を
実施できるカバレッジ試験装置を得ることを目的とする
Conventional coverage test equipment is configured as described above, so from a hardware perspective, it is easy to see which addresses are executed and which are not executed for all addresses in memory, and the proportions of these. However, there were problems such as it was unclear which statement was executed in the source program. In addition, in the conventional coverage test device using the large computer 11, in order to perform simulation on the program,
In addition to not being able to perform tests while running the program under test in real time, there were other problems such as not being able to simulate all programs. This invention was made to solve the above-mentioned problems, and aims to provide a coverage test device that can perform a coverage test for each instruction statement of a source program while executing the program under test in real time. purpose.

【課題を解決するための手段】[Means to solve the problem]

この発明に係るカバレッジ試験装置は、被試験装置のC
PUが実行しているアドレスをアドレス読出部で検出し
、この検出アドレスが実行されたことを、アドレス書込
部によってそのアドレスに対応するアドレス記憶部に書
き込み、一方、上記被試験装置のソースプログラムをソ
ースプログラム記憶部に記憶させ、かつソースプログラ
ムを構成する命令文をアドレス対応のマツプ情報とじて
マツプ記憶部に記憶させておき、上記ソースプログラム
から取り出した命令文対応の上記マツプ情報と上記アド
レス記憶部の実行アドレスの記憶情報との対比により、
カバレッジ側CPUが上記命令文を実行したか否かを判
定するようにしたものである。
The coverage test device according to the present invention provides C
The address reading section detects the address being executed by the PU, and the address writing section writes the fact that the detected address has been executed into the address storage section corresponding to the address, while writing the source program of the device under test. is stored in the source program storage unit, and the instruction sentences constituting the source program are stored in the map storage unit as map information corresponding to the addresses, and the map information corresponding to the instruction sentences extracted from the source program and the address are stored in the map storage unit. By comparing the storage information of the execution address of the storage unit,
It is arranged to determine whether the coverage side CPU has executed the above statement.

【作 用】[For use]

この発明におけるカバレッジ側CPUは、アドレス記憶
部に記憶させた実行アドレスの記憶情報と、ソースプロ
グラム記憶部およびマツプ記憶部から得られるソースプ
ログラムおよびマツプ情報とを対比して、ソースプログ
ラムの命令文が実行されたか否かをソフトウェア的に判
定し、その結果を表示部などに表示させるようにする。
The coverage side CPU in this invention compares the storage information of the execution address stored in the address storage section with the source program and map information obtained from the source program storage section and the map storage section, and determines the instruction statement of the source program. It is determined by software whether or not the execution has been executed, and the result is displayed on a display unit or the like.

【実施例】【Example】

以下、この発明の一実施例を図について説明する。第1
図において、1は被試験装置、2はマイクロプロセッサ
(以下、CPUという)、3はメモリ、4Aはカバレッ
ジ試験装置、5はアドレス読出部、6はアドレス書込部
、7はアドレス記憶部、8はカバレッジ側CPU、9は
表示用インタフェイス、10は表示部であり、これらは
従来の第3図に示すものと同様である。また、2工はソ
ースプログラム記憶部、22はマツプ記憶部であり、こ
れらはカバレッジ側cpusに接続されている。 次に動作について説明する。被試験装置1内のCP U
 2は、メモリ3に書いである機械語のプログラムの順
次読み出しを実行する。カバレッジ試験装置4Aでは、
CPU2が実行しているアドレスをアドレス読出部5に
て検出し、アドレス書込部6によりそのアドレスが実行
されたことを、そのアドレスに対応するアドレス記憶部
7に書き込む。 以上の動作は、従来のカバレッジ試験装置4の動作と同
一である。この発明では上記動作に続いて、第2図に示
すフローチャートに従った動作を実行する。ここで、こ
の発明のカバレッジ試験装置4Aでは、あらかじめ被試
験装置lのメモリ3にある機械語のプログラムの基であ
るソースプログラムを、ソースプログラム記憶部21に
格納してあり、一方、それを構成する命令文がどのアド
レスに対応するかを示すマツプ情報を、マツプ記憶部2
2に格納しである。そこで、カバレッジ側CPtJ8は
図示されていない制御プログラムに従い、ソースプログ
ラム記憶部21から命令文を1つ取り出しくステップ5
TI)、マツプ記憶部22の情報より、その命令文が何
番地のアドレスに記憶されているかを読み出す(ステッ
プ5T2)。 さらに、アドレス記憶部7の情報と合せて、読み出され
たアドレスが実行されたか否かを読み出しくステップ5
T3)、その命令文が実行されたか否かの結果を、表示
用インタフェイス9を通して表示部10に表示する(ス
テップ5T4)。続いて、順次命令文を取り出して上記
の動作を繰り返しくステップ5T5)、最終的に全ての
実行命令文と実行されない命令文との割合を上記表示部
10に表示する(ステップ5T6)。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, 1 is a device under test, 2 is a microprocessor (hereinafter referred to as CPU), 3 is a memory, 4A is a coverage test device, 5 is an address reading section, 6 is an address writing section, 7 is an address storage section, 8 9 is a coverage side CPU, 9 is a display interface, and 10 is a display unit, which are the same as those shown in the conventional device shown in FIG. Further, 2 is a source program storage unit, and 22 is a map storage unit, which are connected to the CPU on the coverage side. Next, the operation will be explained. CPU in the device under test 1
2 sequentially reads out the machine language program written in the memory 3. In the coverage test device 4A,
An address reading unit 5 detects the address being executed by the CPU 2, and an address writing unit 6 writes information that the address has been executed into an address storage unit 7 corresponding to the address. The above operation is the same as that of the conventional coverage test device 4. In this invention, following the above operation, the operation according to the flowchart shown in FIG. 2 is executed. Here, in the coverage test device 4A of the present invention, the source program that is the basis of the machine language program stored in the memory 3 of the device under test l is stored in advance in the source program storage unit 21, and the Map information indicating which address the command statement corresponds to is stored in the map storage unit 2.
It is stored in 2. Therefore, the coverage side CPtJ8 extracts one instruction statement from the source program storage section 21 according to a control program (not shown) in step 5.
TI), the address at which the instruction statement is stored is read from the information in the map storage section 22 (step 5T2). Further, in step 5, it is read together with the information in the address storage section 7 whether or not the read address has been executed.
T3), the result of whether or not the statement has been executed is displayed on the display unit 10 through the display interface 9 (Step 5T4). Subsequently, the command sentences are sequentially retrieved and the above operations are repeated (step 5T5), and finally the ratio of all executed command sentences to unexecuted command sentences is displayed on the display section 10 (step 5T6).

【発明の効果】【Effect of the invention】

以上のように、この発明によればアドレス記憶部に書き
込んだ被試験装置の実行アドレスの記憶情報を、ソース
プログラム記憶部およびマツプ記憶部から得られるソー
スプログラムの命令およびマツプ情報とを対比して、ソ
ースプログラムの命令文が実行されたか否かをカバレッ
ジ側CPUにて判定するように構成したので、被試験プ
ログラムが実時間で実行されているにも抱わらず、上記
命令文ごとに実行されたか否かを、すべての命令文につ
いて容易に判別できるものが得られる効果がある。
As described above, according to the present invention, the storage information of the execution address of the device under test written in the address storage section is compared with the source program instructions and map information obtained from the source program storage section and the map storage section. Since the CPU on the coverage side is configured to determine whether or not the statement of the source program has been executed, even though the program under test is being executed in real time, each statement is not executed. This has the effect of making it possible to easily determine whether or not all commands have been executed.

【図面の簡単な説明】 第1図はこの発明の一実施例によるカバレッジ試験装置
を示すブロック接続図、第2図は第1図のカバレッジ試
験装置の動作を示す情報処理のフローチャート、第3図
および第4図は従来のカバレッジ試験装置を示すブロッ
ク接続図、第5図は第4図のカバレッジ試験装置の動作
を示す情報処理のフローチャートである。 1は被試験装置、2はマイクロプロセッサ(CPU)、
4Aはカバレッジ試験装置、5はアドレス読出部、6は
アドレス書込部、7はアドレス記憶部、8はカバレッジ
側マイクロプロセッサ(カバレッジ側CPU)、21は
ソースプログラム記憶部、22はマツプ記憶部。 なお、図中、同一符号は同一、又は相当部分を示す。 特 許 出 願 人  三菱電機株式会社第2図
[Brief Description of the Drawings] Fig. 1 is a block connection diagram showing a coverage test device according to an embodiment of the present invention, Fig. 2 is an information processing flow chart showing the operation of the coverage test device of Fig. 1, and Fig. 3 4 is a block connection diagram showing a conventional coverage test device, and FIG. 5 is an information processing flowchart showing the operation of the coverage test device shown in FIG. 1 is the device under test, 2 is the microprocessor (CPU),
4A is a coverage test device, 5 is an address reading section, 6 is an address writing section, 7 is an address storage section, 8 is a coverage side microprocessor (coverage side CPU), 21 is a source program storage section, and 22 is a map storage section. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Patent applicant Mitsubishi Electric Corporation Figure 2

Claims (1)

【特許請求の範囲】[Claims] 被試験装置のマイクロプロセッサが実行しているアドレ
スを読み出すアドレス読出部と、この読み出したアドレ
スが実行されたことを、このアドレスに対応するアドレ
ス記憶部に書き込むアドレス書込部と、上記被試験装置
のソースプログラムを記憶するソースプログラム記憶部
と、上記ソースプログラムを構成する命令文をアドレス
対応のマップ情報として記憶するマップ記憶部と、上記
ソースプログラムから取り出した命令文対応の上記マッ
プ情報と上記アドレス記憶部の実行アドレスの記憶情報
との対比により、上記命令文が実行されたか否かを判定
するカバレッジ側マイクロプロセッサとを備えたカバレ
ッジ試験装置。
an address reading unit that reads an address being executed by a microprocessor of the device under test; an address writing unit that writes information that the read address has been executed to an address storage unit corresponding to the address; and the device under test. a source program storage section that stores a source program; a map storage section that stores instruction statements constituting the source program as address-corresponding map information; and a map storage section that stores the instruction statements corresponding to the addresses extracted from the source program and the map information corresponding to the instruction statements and the addresses. A coverage test device comprising: a coverage side microprocessor that determines whether or not the instruction statement has been executed by comparing the execution address with storage information of a storage unit.
JP63253881A 1988-10-11 1988-10-11 Coverage test device Pending JPH02101545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63253881A JPH02101545A (en) 1988-10-11 1988-10-11 Coverage test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63253881A JPH02101545A (en) 1988-10-11 1988-10-11 Coverage test device

Publications (1)

Publication Number Publication Date
JPH02101545A true JPH02101545A (en) 1990-04-13

Family

ID=17257422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63253881A Pending JPH02101545A (en) 1988-10-11 1988-10-11 Coverage test device

Country Status (1)

Country Link
JP (1) JPH02101545A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5442145A (en) * 1992-10-12 1995-08-15 Ngk Spark Plug Co., Ltd. Input/output terminal for electronic circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5442145A (en) * 1992-10-12 1995-08-15 Ngk Spark Plug Co., Ltd. Input/output terminal for electronic circuit device

Similar Documents

Publication Publication Date Title
JP4472615B2 (en) Programmable device modeling method and apparatus
JP3349057B2 (en) Multitask processing device, multitask processing method, and multitask processing display method
JPH02101545A (en) Coverage test device
JP2005353020A (en) Simulation system for computer program
WO1991000575A1 (en) Computer operations recorder and training system
JP2001195275A (en) Program execution system for semiconductor testing device
JPH08263130A (en) Simulation system
JP2513401B2 (en) Method for manufacturing embedded software debug support device
JP2728002B2 (en) Embedded software debug support device
JPH01250109A (en) Robot simulation device
JPH07219980A (en) Test execution system
JPS59202546A (en) Debugging device
JPH0368037A (en) Program developing device
JPS6244299B2 (en)
JP2772999B2 (en) Experimental system
JPS6325742A (en) Microprocessor with tracing function
JPH01159743A (en) Firm soft simulator
JPH09114694A (en) Method and mechanism for parallel processing simulation
JPH06208480A (en) System program simulation system
JPH04255038A (en) Method for executing input/output by simulator in processor
JPH08221300A (en) Program simulator
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPS63300330A (en) Debugging method for firmware
JPH01274238A (en) Rom program developing device
JPS60171546A (en) Debug system of input and output device