JPS607552A - Program test device - Google Patents

Program test device

Info

Publication number
JPS607552A
JPS607552A JP58115582A JP11558283A JPS607552A JP S607552 A JPS607552 A JP S607552A JP 58115582 A JP58115582 A JP 58115582A JP 11558283 A JP11558283 A JP 11558283A JP S607552 A JPS607552 A JP S607552A
Authority
JP
Japan
Prior art keywords
circuit
address
register
contents
computer
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
JP58115582A
Other languages
Japanese (ja)
Inventor
Kazushi Iwahashi
岩橋 一志
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 JP58115582A priority Critical patent/JPS607552A/en
Publication of JPS607552A publication Critical patent/JPS607552A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To know easily and accurately the cause of a fault by designating an address where the fault occurs and its range. CONSTITUTION:The address where a fault occurs is set by an address setting circuit 5, and the upper and lower allowance levels are set by a comparison data range setting circuit 6 for the contents of an address memory. While the value of a program counter 2 is read by a register circuit 7 synchronously with the replacement of the counter 2 of a computer 1. At the same time, the value of a data register 3 which shows the contents of an address set by the circuit 5 is read by a register circuit 8. A comparator 9 compares the value read by the circuit 8 with the value set by the circuit 6. Then the contents of the counter 2 held at the circuit 7 are displayed at a display circuit 10 together with the contents of the register 3 held at the circuit 8 by the output of the comparator 9.

Description

【発明の詳細な説明】 この発明はプログラムのテスト装置に関する。[Detailed description of the invention] The present invention relates to a program testing device.

プログラムでは、メモリ内の予定外の情報の発生によっ
て様々な障害を起こす場合が多く存在する。
In programs, various failures often occur due to the occurrence of unexpected information in memory.

そこで異常内容がどこで書き込まれたのか、その原因を
知ることが重要なこととなる。従来は、プログラムの一
命令実行毎に実行結果を出力するトレース機能あるいは
特定番地の命令を実行したときに、実行結果を出力する
スナップショットダンプ機能などをプログラムとして組
込んで使用していたが、確実に意図したデータの変化時
期を知ることができない欠点があった。また、原プログ
ラムに変更を必要とする場合もある。
Therefore, it is important to know where the abnormal content was written and the cause thereof. Conventionally, a trace function that outputs the execution result every time a program instruction is executed, or a snapshot dump function that outputs the execution result when an instruction at a specific address is executed, etc., were incorporated into the program and used. There was a drawback that it was not possible to know with certainty when the intended data changed. Additionally, changes may be required to the original program.

この発明はかかる欠点を除去し、異常が発生したアドレ
スとそのデータの範囲を指定することによシ、簡単に、
しかも確実に異常の原因を知ることができるハードウェ
アによるプログ2ムのテスト装置を提供するものである
This invention eliminates such drawbacks and allows you to easily specify the address where the abnormality has occurred and the range of its data.
Moreover, the present invention provides a hardware-based program testing device that can reliably determine the cause of an abnormality.

以下2図面によシこの発明の実施例を詳細に説明する。Embodiments of the present invention will be described in detail with reference to the following two drawings.

図は、この発明の一実施例を示すブロック図であ、!t
、(X)はテストするプログラムがロードされているマ
イクロプログラム化された計算機。
The figure is a block diagram showing one embodiment of the present invention. t
, (X) is a microprogrammed computer loaded with the program to be tested.

(2)は計算機内のプログラムカウンタ、(3)は計算
機内のデータレジスタ、(4)は計算機内のアドレスレ
ジスタ、(5)は参照すべき計算機内のメモリのアドレ
スを設定するだめのアドレス設定回路、(6)は比較デ
ータ値の範囲を設定するだめの比較データ範囲設定回路
、(7)はプログラムカウンタの内容を読込み保持する
ためのレジスタ回路、(8)はアドレス設定回路(5)
で、設定され′たアドレスに対応する計算機内のデータ
レジスタ(3)の内容を格納するレジスタ回路、(9)
はデータレジスタ(3)の内容が比較データ設定回路で
設定された範囲にあるかをチェックする比較回路、α〔
はプログラムカウンタ及びデータレジスタの内容を表示
するだめの表示回路。
(2) is the program counter in the computer, (3) is the data register in the computer, (4) is the address register in the computer, and (5) is the address setting for setting the address of the memory in the computer to be referenced. (6) is a comparison data range setting circuit for setting the range of comparison data values, (7) is a register circuit for reading and holding the contents of the program counter, (8) is an address setting circuit (5)
(9) a register circuit that stores the contents of the data register (3) in the computer corresponding to the set address;
α is a comparison circuit that checks whether the contents of the data register (3) are within the range set by the comparison data setting circuit;
is a display circuit that displays the contents of the program counter and data register.

(11a)、 (1l b)は比較データ範囲の許容上
限値、許容下限値を示すレジスタである。
(11a) and (1lb) are registers indicating the allowable upper limit value and allowable lower limit value of the comparison data range.

このような構成において、まずアドレス設定回路(5)
によシ異常が発生したアドレスを設定し、当該アドレス
のメモリの内容の許容上限値及び下限値を比較データ範
囲設定回路(6)で設定しておく。
In such a configuration, first, the address setting circuit (5)
The address where the error occurred is set, and the allowable upper and lower limits of the memory contents at the address are set in the comparison data range setting circuit (6).

一方、計算機(1)のプログラムカウンタ(2)の更新
に同期して、計算機(1)からプログラムカウンタ(2
)の値を第1のレジスタ回路(7)によシ読込み、また
On the other hand, in synchronization with the update of the program counter (2) of the computer (1), the program counter (2) is updated from the computer (1).
) is read into the first register circuit (7).

前記アドレス設定回路(5)で設定されたアドレスの内
容を示すデータレジスタ(3)の値を第2のレジスタ回
路(8)によシ読込む。そして、第2のレジスタ回路(
8)に読込まれた値と、前記比較データ範囲設定回路(
6)で設定された許容上限値を示すレジスタ(11a)
と許容下限値を示すレジスタ(1l b)とを比較回路
(9)で比較する。もし第2のレジスタ回路(8)に読
込まれた値が、レジスタ(11a)の内容よシ大きいか
、又はレジスタ(1l b)の内容よシ小さい場合には
比較回路(9)からの制御信号によシ、第1のレジスタ
回路(7)に保持されたプログラムカウンタ(2)の内
容及び第2のレジスタ回路(8)に保持されたデータレ
ジスタ(3)の内容を表示回路0〔を通して表示する。
The value of the data register (3) indicating the contents of the address set by the address setting circuit (5) is read into the second register circuit (8). Then, the second register circuit (
8) and the comparison data range setting circuit (
Register (11a) indicating the allowable upper limit value set in 6)
A comparator circuit (9) compares the value and the register (1lb) indicating the allowable lower limit value. If the value read into the second register circuit (8) is larger than the contents of the register (11a) or smaller than the contents of the register (1lb), a control signal from the comparator circuit (9) is sent. Then, the contents of the program counter (2) held in the first register circuit (7) and the contents of the data register (3) held in the second register circuit (8) are displayed through the display circuit 0. do.

なおマイクロプログラム化された計算機(1)において
は、マイクロプログラムによシアアドレスレジスタ(4
)で示されるアドレスの内容がデータレジスタ(3)に
、常に格納されている。
In addition, in the microprogrammed computer (1), the shear address register (4) is set by the microprogram.
) is always stored in the data register (3).

以上のように、この発明によれば、指定した計算機内の
メモリの値が所定の範囲外の異常値となったとき、どこ
のプログラムで書込んだかを容易に知ることができ、プ
ログラムをテストする場合に有効である。
As described above, according to the present invention, when the value of the memory in the specified computer becomes an abnormal value outside the predetermined range, it is possible to easily know which program was used to write the data, and the program can be tested. It is effective when

【図面の簡単な説明】[Brief explanation of the drawing]

図は本発明にかかるプログラムテスト装置の一実施例を
示すブロック図であυ2図中、(1)は計算機、(2)
は計算機内のプログラムカウンタ、(3)は計算機内の
データレジスタ、(4)は計算機内のアドレスレジスタ
、(5)はアドレス設定回路、(6)は比較データ範囲
設定回路、(7)は第1のレジスタ回路、(8)は第2
のレジスタ回路、(9)は比較回路、顛は表示回路、(
11a)、 (11b)はレジスタである。 代理人 大岩増雄
The figure is a block diagram showing an embodiment of the program test device according to the present invention. In the figure, (1) is a computer, (2)
is the program counter in the computer, (3) is the data register in the computer, (4) is the address register in the computer, (5) is the address setting circuit, (6) is the comparison data range setting circuit, and (7) is the data register in the computer. 1 register circuit, (8) is the second register circuit.
(9) is a comparison circuit, (9) is a display circuit, (9) is a display circuit, (
11a) and (11b) are registers. Agent Masuo Oiwa

Claims (1)

【特許請求の範囲】 計算機のメモリ内の内容を取シ出すべくアドレスを設定
するためのアドレス設定回路と、前記アドレス設定回路
で設定した計算機内のメモリの内容及び計算機内のプロ
グラムカウンタを読み取シ。 その内容を格納する手段と、読み取ったメモリの内容を
チェックするだめの許容上限値及び許容下限値を設定す
る比較データ範囲設定回路と、読み取ったメモリの内容
が上記の設定回路で設定した許容上限値及び許容下限値
の範囲を満足するか否かを比較する比較回路とを備えだ
ことを特徴とするプログラムテスト装置。
[Scope of Claims] An address setting circuit for setting an address to retrieve contents in the memory of a computer, and a system for reading the contents of the memory in the computer and the program counter in the computer set by the address setting circuit. . means for storing the content, a comparison data range setting circuit for setting the allowable upper limit value and allowable lower limit value for checking the read memory content, and a comparison data range setting circuit for setting the allowable upper limit value and allowable lower limit value for checking the read memory content, and the allowable upper limit value set by the above setting circuit for checking the read memory content. 1. A program test device comprising: a comparison circuit for comparing whether or not a value and a range of allowable lower limit values are satisfied.
JP58115582A 1983-06-27 1983-06-27 Program test device Pending JPS607552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58115582A JPS607552A (en) 1983-06-27 1983-06-27 Program test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58115582A JPS607552A (en) 1983-06-27 1983-06-27 Program test device

Publications (1)

Publication Number Publication Date
JPS607552A true JPS607552A (en) 1985-01-16

Family

ID=14666155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58115582A Pending JPS607552A (en) 1983-06-27 1983-06-27 Program test device

Country Status (1)

Country Link
JP (1) JPS607552A (en)

Similar Documents

Publication Publication Date Title
EP1086423B1 (en) Testing device driver reliability
KR940003318B1 (en) Processor having cache memory
JPH0314033A (en) Inspection system for microprocessor comparison checking function
JPS607552A (en) Program test device
JPS6039253A (en) Program test device
US20230315612A1 (en) In-circuit emulator device
JPS6153579A (en) Tester for function of logical circuit
JP2005327175A (en) Incircuit emulator device and stack access abnormality detection method
JPH06161804A (en) Information processor
JPS6195456A (en) Testing device of microcomputer
JPH01156834A (en) Diagnosing system for check circuit
JPS6223336B2 (en)
JPH01296355A (en) Data processor
JPS60132249A (en) Data processor
JPS63201737A (en) Method and device for supporting development of computer program
JPS6175440A (en) Program quality evaluating device
JPH0353654B2 (en)
JPS59140570A (en) Program testing device
JPS6236578B2 (en)
JPH064349A (en) Test system for pipeline mechanism
JPH04147356A (en) Bus monitor
JPS59160243A (en) Debugging device
JPS61110245A (en) Operation history device
JPS63204444A (en) Data processing system
JPS62208138A (en) Program counter information storage circuit