JPS61161556A - Information processor - Google Patents

Information processor

Info

Publication number
JPS61161556A
JPS61161556A JP60002850A JP285085A JPS61161556A JP S61161556 A JPS61161556 A JP S61161556A JP 60002850 A JP60002850 A JP 60002850A JP 285085 A JP285085 A JP 285085A JP S61161556 A JPS61161556 A JP S61161556A
Authority
JP
Japan
Prior art keywords
address
debugging
contents
operand
address register
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
JP60002850A
Other languages
Japanese (ja)
Inventor
Yoshihiro Kudo
工藤 義浩
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60002850A priority Critical patent/JPS61161556A/en
Publication of JPS61161556A publication Critical patent/JPS61161556A/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

Abstract

PURPOSE:To investigate easily a program bug hard to be resolved by setting a debugging interrupt to stop an operating part if an instruction execution address does not coincide with an address group set from the external as the result of comparison. CONSTITUTION:In the program debugging mode, contents of an operand address register 11 which instructs execution and contents of a designated address register 12 where an operand address designated preliminarily from the external is stored are compared with each other by a comparing circuit 13. If both operand addresses coincide with each other, debugging interrupt is reported to a service supporting device interface part 14. The service supporting device interface part 14 reports it to a service supporting device 30. A comparing circuit 32 of the service supporting device 30 compares the execution address from an interface control part 31 with an instruction address group from an input device 40, and debugging interrupt is set to stop the operating part if the execution address does not coincide with any instruction address.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理装置に関し、特に論理装置用プログラ
ムのデバグ機能を備えた情報処理装置に関する。・ (従来の技術) 一般的に情報処理装置では情報処理分野でのソフトウェ
アの比重がますます大きくなる傾向にあり、プログラム
の信頼性向上、ならびに品質確保がより一層重要な課題
に壜ってきている。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an information processing apparatus, and more particularly to an information processing apparatus equipped with a function for debugging a program for a logical device.・ (Conventional technology) In general, in information processing equipment, the proportion of software in the information processing field tends to increase, and improving program reliability and ensuring quality have become even more important issues. There is.

従来の情報処理に具備されているプログラムデバグ機能
は特定アドレスの命令の実行直前で特定アドレスの一致
、あるいは格納の直前で割込みを行うことによシ達成さ
れていt。
The program debug function provided in conventional information processing is achieved by interrupting a specific address immediately before execution or immediately before a specific address is stored.

(発明が解決しようとする問題点) しかし、プログラムに含まれたバグの中には、データに
破壊が生じ九九めに全熱予期しないところでプログラム
割込みの現象が生ずることとなるものかあつ九。斯かる
場合には従来技術により具備されているプログラムバグ
機能を利用すれば、成る程度のプログラムバグの究明は
達成できる。しかし、データの破壊値が種々に変化する
ような場合には、プログラムバグの究明に要する時間が
多大になり、非常に効率が悪いという欠点があった。
(Problem to be solved by the invention) However, some bugs included in the program may cause data to be destroyed, resulting in a program interrupt occurring unexpectedly. . In such a case, the program bug can be investigated to a certain extent by using the program bug function provided by the prior art. However, when the value of data destruction varies, it takes a lot of time to investigate program bugs, resulting in very low efficiency.

本発明の目的は、データ破壊領域にデータを書込む九め
の命令アドレスをすべて設定し、設定以外の命令アドレ
スからのデータの書込みに対して演算部を停止状態にす
ることによ)上記欠点を解決し、プログラムのデバグの
効率をあげることができるように構成し九情報処理装置
を提供することにある。
An object of the present invention is to set all the ninth instruction addresses for writing data in the data destruction area, and to bring the operation unit into a halt state for writing data from instruction addresses other than those set. The object of the present invention is to provide an information processing device configured to solve the above problems and improve the efficiency of program debugging.

(問題点を解決するための手段) 本発明による情報処理装置は中央処理装置と、サービス
支援装置とを具備して構成したものである。
(Means for Solving the Problems) An information processing device according to the present invention includes a central processing unit and a service support device.

中央処理装置は、オペランドアドレスを保持するための
オペランドアドレスレジスタ、外部から指定されたアド
レスを格納するための指定アドレスレジスタ、ならびに
オペランドアドレスレジスタの内容と指定アドレスレジ
スタの内容とを比較するための第4の比較回路を備えて
第1の比較回路の出力をサービス支援装置に送出するこ
とができるものである。
The central processing unit has an operand address register for holding an operand address, a specified address register for storing an externally specified address, and a register for comparing the contents of the operand address register with the contents of the specified address register. The first comparison circuit includes four comparison circuits, and the output of the first comparison circuit can be sent to the service support device.

サービス支援装置は、外部から任意の値を設定すること
ができるデバグ用レジスタ群、ならびに中央処理装置の
第1の比較回路から送出された出力と上記デバグ用レジ
スタ群の出力とを比較するための第2の比較回路を備え
、第2の比較回路の出力が不一致を表わすときにデパグ
割込みとして実行演算を停止状態にすることができるも
のである。
The service support device includes a group of debugging registers to which arbitrary values can be set from the outside, and a register for comparing the output sent from the first comparison circuit of the central processing unit with the output of the aforementioned group of debugging registers. A second comparison circuit is provided, and when the output of the second comparison circuit indicates a mismatch, execution calculations can be stopped as a debugging interrupt.

(実 施 例) 次に、本発明について図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明による情報処理装置の一実施例を示すブ
ロック図である。第1図に示す情報処理装置は、中央処
理装置10と、サービス支援装置(SVP)aoと、入
力装置40とから構成される。中央処理装置10はオペ
ランドアドレスレジスタ11と、外部から指定されたア
ドレスを格納する之め9指定アドレスレジスタ12と、
上記両レジスタ11 、12の内容を比較するための第
1の比較回路13と、サービス支援装置インターフェー
ス部14とから成る。信号線15は比較の結果が一致し
たときに演算部(図示してない)のクロック信号の停止
を指示するためのクロックストップ信号線であり、信号
線16はデバグ割込みを指示するデバグ割込み信号線で
あり、信号線17は演算部のクロックをスタートするた
めのクロックスタート信号線であシ、信号線20はサー
ビス支援装置インターフニース部14トサービス支援装
置30とを接続するインターフェース信号線である。サ
ービス支援装置30はインターフェース制御部31と、
第2の比較回路32と、外部からの指定されたアドレス
を格納するためのデバグ用レジスタ群33とから構成さ
れている。
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention. The information processing device shown in FIG. 1 includes a central processing unit 10, a service support device (SVP) ao, and an input device 40. The central processing unit 10 includes an operand address register 11, a specified address register 12 for storing an address specified from the outside,
It consists of a first comparison circuit 13 for comparing the contents of both registers 11 and 12, and a service support device interface section 14. The signal line 15 is a clock stop signal line for instructing the arithmetic unit (not shown) to stop the clock signal when the comparison results match, and the signal line 16 is a debug interrupt signal line for instructing a debug interrupt. The signal line 17 is a clock start signal line for starting the clock of the calculation section, and the signal line 20 is an interface signal line for connecting the service support device interface section 14 to the service support device 30. The service support device 30 includes an interface control section 31,
It consists of a second comparison circuit 32 and a group of debugging registers 33 for storing externally specified addresses.

第2の比較回路32は、インターフェース制御部31の
出力とデバグ用レジスタ群33の内容とを比較するもの
である。
The second comparison circuit 32 compares the output of the interface control section 31 and the contents of the debugging register group 33.

次に、第1図を参照して上記実施例の動作について詳細
に説明する。
Next, the operation of the above embodiment will be explained in detail with reference to FIG.

プログラムデバグモードにおいて、実行を命令するため
のオペランドアドレスレジスタ11の内容とあらかじめ
外部から指定されtオペランドアドレスを格納するため
の指定アドレスレジスタ12の内容とを比較回路13に
より比較する。
In the program debug mode, the comparator circuit 13 compares the contents of the operand address register 11 for instructing execution with the contents of the specified address register 12 for storing a t-operand address designated in advance from the outside.

両オペランドアドレスが一致したときには演算部(図示
してない)のクロック信号の停止を指示するため、クロ
ックストップ信号線15f、オン状態とし、デバグ割込
み信号線16をオン状態にしてサービス支援装置インタ
ーフェース部14に対してデバグ割込みを通知する。デ
バグ割込みを受取ると、サービス支援装置インターフェ
ース部14はインターフェース信号線20を介してサー
ビス支援装置30のインターフェース制御11s31へ
上記の旨を通知する。サービス支援装置30ではインタ
ーフェース制御部31から送出され次実行命令アドレス
と、あらかじめ入力装置40よフ併給されている命令ア
ドレス群が格納されているデバグ用レジスタ群33の内
容とを比較回路32で比較する。比較の結果、両者間で
一致するものがあれば、インターフェース信号線20を
介して演算部のクロックをスタートするため、クロック
スタート信号線17をオン状態にする。比較の結果、一
致するものがなければデバグ割込みとして演算部は停止
状態にムシ、デバグを効率的に実行する。
When both operand addresses match, the clock stop signal line 15f is turned on and the debug interrupt signal line 16 is turned on to instruct the clock signal of the arithmetic section (not shown) to be stopped, so that the service support device interface section 14 of the debug interrupt. Upon receiving the debug interrupt, the service support device interface section 14 notifies the interface control 11s31 of the service support device 30 via the interface signal line 20 of the above. In the service support device 30, the comparison circuit 32 compares the next execution instruction address sent from the interface control unit 31 with the contents of the debugging register group 33, which stores a group of instruction addresses that have been previously supplied from the input device 40. do. As a result of the comparison, if there is a match between the two, the clock start signal line 17 is turned on in order to start the clock of the arithmetic unit via the interface signal line 20. As a result of the comparison, if there is no match, a debug interrupt is generated and the arithmetic unit is stopped, allowing efficient debugging.

(発明の効果) 本発明は以上説明したように、命令実行アドレスと外部
から設定されているアドレス群との比較結果が不一致で
あればデバグ割込みとして演算部が停止状態となるよう
に構成することによシ、難解であったプログラムバグの
究明を容易に行うことができると云う効果がある。
(Effects of the Invention) As described above, the present invention is configured such that if the comparison result between the instruction execution address and a group of addresses set from the outside does not match, a debug interrupt is issued and the operation unit is stopped. This has the effect of making it easier to investigate program bugs, which have been difficult to understand.

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

第1図は、本発明による情報処理装置の一実施例を示す
ブロック図である。 10・・・中央処理装置  30・・・サービス支援装
置40・・・入力装置 11・嗜・オペランドアドレスレジスタ12・・・指定
アドレスレジスタ 13.32・・・比較回路 14・・・サービス支援装置インターフェース部31・
・1インタ一フエース制御部 33・・・デバグ用レジスタ群 15〜17.20・・・信号線
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention. 10...Central processing unit 30...Service support device 40...Input device 11, input device, operand address register 12...Specification address register 13.32...Comparison circuit 14...Service support device interface Part 31・
・1 interface control unit 33...Debug register group 15 to 17.20...Signal line

Claims (1)

【特許請求の範囲】[Claims] オペランドアドレスを保持するためのオペランドアドレ
スレジスタ、外部から指定されたアドレスを格納するた
めの指定アドレスレジスタ、ならびに前記オペランドア
ドレスレジスタの内容と前記指定アドレスレジスタの内
容とを比較するための第1の比較回路を備えて前記第1
の比較回路の出力を送出することができる中央処理装置
と、外部から任意の値を設定することができるデバグ用
レジスタ群、ならびに前記中央処理装置における前記第
1の比較回路から送出された出力と前記デバグ用レジス
タ群の出力とを比較するための第2の比較回路を備え、
前記第2の比較回路の出力が不一致のときにデバグ割込
みとして実行演算を停止状態にすることができるサービ
ス支援装置とを具備して構成したことを特徴とする情報
処理装置。
an operand address register for holding an operand address, a specified address register for storing an externally specified address, and a first comparison for comparing the contents of the operand address register with the contents of the specified address register. said first comprising a circuit;
a central processing unit that can send out the output of the first comparison circuit in the central processing unit, a group of debugging registers that can set arbitrary values from the outside, and an output that is sent out from the first comparison circuit in the central processing unit. a second comparison circuit for comparing the output of the debugging register group;
An information processing device comprising: a service support device capable of stopping execution of calculations as a debug interrupt when the outputs of the second comparison circuits do not match.
JP60002850A 1985-01-11 1985-01-11 Information processor Pending JPS61161556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60002850A JPS61161556A (en) 1985-01-11 1985-01-11 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60002850A JPS61161556A (en) 1985-01-11 1985-01-11 Information processor

Publications (1)

Publication Number Publication Date
JPS61161556A true JPS61161556A (en) 1986-07-22

Family

ID=11540870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60002850A Pending JPS61161556A (en) 1985-01-11 1985-01-11 Information processor

Country Status (1)

Country Link
JP (1) JPS61161556A (en)

Similar Documents

Publication Publication Date Title
JPH02156334A (en) Information processor
JPS61161556A (en) Information processor
JPH0675819A (en) Microprocessor
JPH04123235A (en) Debugging method and system for microprogram
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JPS6356742A (en) Interruption request signal generating circuit
JPH01136251A (en) Self-diagnosing system
JPS59183443A (en) Debug device
JPH02135545A (en) Execution control processing system for debugger
JPS61194531A (en) Instruction execution controller
JPH08179958A (en) Electronic device for control
JPH0395638A (en) Debugging device
JPH09160800A (en) Emulator
JPS6273340A (en) Central processing unit
JPH01121950A (en) Microprocessor with trace function
JPS6214240A (en) Program inspecting system
JPH02103643A (en) Interruption generation circuit for debug
JPH03257638A (en) Multiprocessor control system
JPH0628218A (en) Program development assisting device for microcomputer
JPH04167032A (en) Program debugging system
JPS61187044A (en) Information processor
JPS63200243A (en) Debugging device
JPS63124143A (en) Information processor
JPS59202550A (en) Debugging device
JPS60246443A (en) Procedure debug supporting system