JPS6282438A - Control system for interruption of debug in information processor - Google Patents

Control system for interruption of debug in information processor

Info

Publication number
JPS6282438A
JPS6282438A JP60222738A JP22273885A JPS6282438A JP S6282438 A JPS6282438 A JP S6282438A JP 60222738 A JP60222738 A JP 60222738A JP 22273885 A JP22273885 A JP 22273885A JP S6282438 A JPS6282438 A JP S6282438A
Authority
JP
Japan
Prior art keywords
comparison
data
comparison information
interrupt
address
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
JP60222738A
Other languages
Japanese (ja)
Inventor
Toshiyuki Uda
右田 俊幸
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 JP60222738A priority Critical patent/JPS6282438A/en
Publication of JPS6282438A publication Critical patent/JPS6282438A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To acquire a desired request to start an interrupt for debugging while reproducing the same state as actual circumstance by controlling the start of the interrupt for debugging in accordance with contents of write data with respect to a write request to a specific address of a memory. CONSTITUTION:A command and an address sent from a memory access control part 2 through a signal line 201 are compared with comparison information in a comparison command and address register 4 by a comparing circuit 6. Write data sent from the memory access control part 2 through a signal line 202 is compared with comparison information in a comparison data register 5 by a comparing circuit 7. In this case, mask data, which has the same bit width as write information in the comparison data register 5 and write data sent from the memory access control part 2, is stored in a mask data register 9. Its output 901 is used for control of a mask circuit 10. An output 801 of and AND gate 8 is sent to an operation control part 1 as a control signal of the start of the interrupt for debugging.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に関し、特に情報処理装置におけ
るデバッグ割込みの制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to a control method for debug interrupts in an information processing device.

〔従来の技術〕[Conventional technology]

従来、情報処理装置において、プログラムの論理的ミス
やハードウェアの故障に起因して引き起こされる誤動作
の解析のために、メモリアクセス動作に着目してデバッ
グ作業を実行することが行なわれている。このようなデ
バッグ作業に対し従来は、検出したいメモリリクエスト
の種類やアクセスアドレスをセントする特殊なレジスタ
を有し、デバッグモードにセットされた情報処理装置の
プログラムの実行に伴い所望のメモリアクセスが為され
たときにそれを検出し、ソフトウェアにデバッグ割込み
条件の発生を報告するようなハードウェアサポートが備
えられていた。
2. Description of the Related Art Conventionally, in information processing devices, debugging work has been carried out by focusing on memory access operations in order to analyze malfunctions caused by logical mistakes in programs or hardware failures. Conventionally, for such debugging work, a special register is used to store the type of memory request to be detected and the access address, and the desired memory access is performed as the program is executed on the information processing device set to debug mode. hardware support was provided to detect when a debug interrupt condition occurred and report it to software.

〔発明が解決しようとする問題点) このような従来のデバノグ力弐番91、メモリの特定ア
ドレスへのアクセス自体がデバッグすべき問題点と直接
に結びついた動イ1である場合にkl充分に役ケつもの
である。しかし、その特定の7トレスヘアクセスするケ
ースが?tf R存在するときは、その何れにおいても
デバッグ割込ylがtti告され()(るので、実際に
は無意味4「ケースなのかどうかをソフトウェアのデバ
ッグ割込)l処理ルーチン内で判定したりする必要が?
トシる。この判定は、例えばメモリへの書込めリフニス
Iでのア1′L・ス−・致が報告されたときには、その
γl゛レスのデータがどういう値に書き換えられたかと
いうことが重要な判定材料となることが多い。このよう
lfデータのチェ・7りはソフトピノエアにより可能で
あるが、所望のケースが出現する簡に余分なデバッグ割
込めの処理が動作することにより、通常上−1゛では発
生していた情報収集したいケースがデバッグモードでは
再現しなくなって、結局せっかくのデバッグ機能が有効
に活用されないという欠点がある。
[Problems to be Solved by the Invention] Such conventional debugging capabilities are of great use when accessing a specific memory address itself is an action directly linked to the problem to be debugged. It's an asshole. But what about the case of accessing that particular 7 tres? When tf R exists, the debug interrupt yl is notified () (tti) in any of them, so it is actually meaningless to determine whether it is a case 4 (software debug interrupt) l processing routine. Do you need to do something?
Toshiru. In this judgment, for example, when an a1'L-S-- error is reported in memory write rifnis I, the important judgment material is what value the data of that γl-response was rewritten to. It often happens. This kind of check/7ing of lf data is possible with soft pino air, but it usually occurs at -1゛ due to the extra debugging interrupt processing that occurs easily when the desired case appears. The disadvantage is that the case for which you want to collect information cannot be reproduced in debug mode, and the debug function is not effectively utilized.

本発明の目的は、実環境と変わらない状態を再現しなが
ら所望のリクエストを捕捉してデバッグ割込7.を起動
ずろことができるようにすることにある。
An object of the present invention is to capture a desired request while reproducing the same state as the real environment, and to interrupt debugging. The purpose is to be able to start up the system without any problems.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、メモリリフニスl
の一1マントおよびアドレスに関する比較情報を保持す
る第1の比較情報保持手段と、書込みデータに関する比
較悄幸Uを保持する第2の比較情報保持手段と、 情報処理装置で発生ずるメモリリクエストのコマンドお
よびアドレスと前記第1の比較情報保持手段6、二保持
された比較情報を比較する第1の比較手段と、 前記情報処理装置で発生する書込みデータと前記第2の
比較情報保持手段に保持された比較情報とを、両者の比
較すべきビット位置を指示するマスクデータの内容に応
じて比較する第2の比較手段と、 前記第1の比較手段と前記第2の比較手段とで所定の比
較結果が得られたときにデハソグ割込み起動の制御信号
を発4卜するデバッグ割込み起動手段とを設ける。
In order to achieve the above object, the present invention provides memory relief l
(1) a first comparison information holding means that holds comparison information regarding the cloak and address; a second comparison information holding means that holds comparison information regarding write data; and a memory request command generated in the information processing device. and address and said first comparison information holding means 6, a first comparison means for comparing the held comparison information; and write data generated in said information processing device and said second comparison information holding means a second comparing means that compares the comparison information according to the contents of mask data indicating bit positions to be compared between the two; and a predetermined comparison between the first comparing means and the second comparing means. Debug interrupt activation means is provided for generating a control signal for activating a debugging interrupt when a result is obtained.

〔作用〕[Effect]

第1の比較情報イ^持手段にコマンドの種類として書込
みコマンドを、アドレスとしてその特定のアドレスをそ
れぞれ保持させ、第2の比較情報保持手段に比較用のデ
ータを保持させ、この保持させたデータのどのビット位
置を比較対象とするかを指示するマスクデータを設定し
、■一つ、デバッグ割込み起動手段が第1および第2の
比較手段の双方で一致が検出されたときにデバッグ割込
ス起動するようにしておくと、ある特定の了1゛レスに
対し上記比較データのうらマスクデータで定まる特定の
ビット位置のデータパターンと同一のデータパターンを
有するデータが書込まれるようなメモリリクエストが発
生したときにデハソグ割込みが起動される。
The first comparison information holding means holds the write command as the command type and the specific address as the address, and the second comparison information holding means holds the data for comparison, and the held data 1) When a match is detected in both the first and second comparing means, the debug interrupt starting means starts the debug interrupt If activated, a memory request will be made in which data having the same data pattern as the data pattern at a specific bit position determined by the mask data on the back of the comparison data will be written in response to a specific response. A dehasog interrupt is activated when it occurs.

デバッグ割込み起動手段が第1の比較手段で一致が検出
されhつ第2の比較手段で一致が検出されないときにデ
バッグ割込力を起動するようにしておけば、ある特定の
アドレスに比較用データの特定ビットのデータパターン
と同一のデータパターンを有するデータjソ外のデータ
が書込まれたときにデバッグ割込みを起動することがで
きる。
If the debug interrupt activation means activates the debug interrupt when a match is detected by the first comparison means and no match is detected by the second comparison means, the comparison data will be stored at a certain address. A debug interrupt can be activated when data other than data j having the same data pattern as the data pattern of a specific bit is written.

〔実施例〕〔Example〕

図は本発明の実施例における情報処理装置の要部ブロッ
ク図であり、1は演算の制御や実行などの主要回路を全
て含む演算制御部、2は演算制御    ゛部1の内部
にあって、主記憶装置3とのインタフェイズを有するメ
モリアクセス制御部、4は実際のメモリアクセスのコマ
ンド及びアドレスとの比較情報を保持するだめの比較コ
マンド・アドレスレジスタ、5はメモリアクセスが書込
みコマンドの場合における実際の書込みデータとの比較
情報を保持するための比較データレジスタ、6はメモリ
アクセス制御部2から信号線201を通して主記憶装置
3に送出されるコマンド及びアドレスを比較コマンド・
アドレスレジスタ4に保持された比較情報と比較するた
めの比較回路、7はメモリアクセス制御部2から信号線
202を通して主記憶装置3に送出される書込みデータ
を比較データレジスタ5に保持された比較情報と比較す
るだめの比較回路、8はアントゲ−1・である。このア
ンドゲート8の出力801がデバッグ割込み起動の制御
信号として演算制御部1へ送出されている。
The figure is a block diagram of the main parts of an information processing device according to an embodiment of the present invention, in which 1 is an arithmetic control section including all main circuits for controlling and executing arithmetic operations, 2 is an arithmetic control section inside the arithmetic control section 1, A memory access control unit having an interface with the main storage device 3; 4 a comparison command/address register for holding comparison information with actual memory access commands and addresses; 5 a memory access register for use when the memory access is a write command; A comparison data register 6 is used to hold comparison information with actual write data, and a comparison data register 6 is used to store the command and address sent from the memory access control unit 2 to the main storage device 3 through the signal line 201.
A comparison circuit 7 compares the write data sent from the memory access control unit 2 to the main storage device 3 through the signal line 202 with the comparison information held in the comparison data register 5. The comparator circuit to be compared with 8 is Antogame 1. An output 801 of this AND gate 8 is sent to the arithmetic control section 1 as a control signal for activating a debug interrupt.

また図において、9は比較データレジスタ5およびメモ
リアクセス制御部2からの信号線202を介した書込み
データと同一ビット幅をもつマスクデータを格納される
マスクデータレジスタであり、このマスクデータレジス
タ9の出力901がマスク回路10の制御に用いられる
。即ち、マスクデータレジスタ9の各ビットのうち“l
”に対応する部分は比較回路7での比較の対象となるが
、“0”に対応する部分は比較の対象から外されて人力
データとしては一致しているイ)のとして取り扱われる
Further, in the figure, reference numeral 9 denotes a mask data register in which mask data having the same bit width as the write data from the comparison data register 5 and the memory access control unit 2 via the signal line 202 is stored. Output 901 is used to control mask circuit 10. That is, “l” of each bit of the mask data register 9
The portions corresponding to "0" are compared in the comparator circuit 7, but the portions corresponding to "0" are excluded from the comparison and are treated as human data that match (b).

本実施例の情報処理装置におけるデバッグ割込みの起動
の制御は、以下のようにして行なわれる。
The activation of the debug interrupt in the information processing apparatus of this embodiment is controlled as follows.

今、検出したいメモリリクエストが書込みのコマンドで
然も特定アドレスの一部のビット位置が予め分かってい
る特定のデータパターンに書き換えられたときだけデバ
ッグ割込みを起こしたいとする。このようなことは、例
えばあるプログラムを動かすと本来はあり得ないような
特殊なパターンで特定アドレスの内容が乱されるといっ
た現象が発生ずるときに有効であり、従来よりデバッグ
に非常に時間がかかる事象の一つである。
Suppose now that the memory request to be detected is a write command, and that we want to cause a debug interrupt only when some bit positions of a specific address are rewritten to a specific data pattern that is known in advance. This is effective when, for example, when a certain program runs, the contents of a specific address are disturbed by a special pattern that would normally not exist, and debugging takes much longer than before. This is one such event.

上記のようなデバッグ割込みを行なわせる場合、先ずプ
ログラムによって検出したいメモリリクエストのコマン
ドとアクセスするアドレス値を比較情報として比較コマ
ンド・アドレスレジスタ4に信号線101を介して格納
し、また上記特定のデータパターンを含むデータを比較
情報として比較データレジスタ5に信号線102を介し
て格納する。
When performing a debug interrupt as described above, first, the program stores the command of the memory request to be detected and the address value to be accessed as comparison information in the comparison command/address register 4 via the signal line 101, and also stores the above-mentioned specific data as comparison information. Data including the pattern is stored as comparison information in the comparison data register 5 via the signal line 102.

更に、メモリへの書込みデータのうち比較したいビット
位置に対応するところだけ“1”をセントし他は“0″
にしたマスクデータを信号線105を介してマスクデー
タレジスタ9に格納する。そしてデバッグモードをセッ
トすることによりアンドゲート8の入力信号綿104を
“1“とじ、以後比較回路6.7による比較一致信号6
01,701のチェックが開始される。なお、このとき
比較回H7の動作を有効にするためにプログラムの指定
により信号線103を”1”にしておく。
Furthermore, among the data written to the memory, only the bit position corresponding to the bit position to be compared is marked with "1", and the rest are "0".
The resulting mask data is stored in the mask data register 9 via the signal line 105. Then, by setting the debug mode, the input signal 104 of the AND gate 8 is set to "1", and from then on, the comparison circuit 6.7 outputs the comparison match signal 6.
The check for 01,701 is started. At this time, in order to enable the operation of the comparison circuit H7, the signal line 103 is set to "1" as specified by the program.

上記の状態で、問題となっているプログラムを実行開始
する。このプログラムは正常な状態でも比較コマンド・
アドレスレジスタ4にセットされているアドレスに対し
て書込みが行なわれるが、そのアドレスに対しメモリア
クセス制御部2から信号綿202を介して送出されるデ
ータのうちマスクデータレジスタ9により比較対象とな
っているフィールドが正常な値であれば、比較データレ
ジスタ5との一致がとれないからアンドゲート8の出力
801は0′であり、余分なデバッグ割込みは発生しな
い。従って、デバッグモードを設定していない通常の動
作モードで起きたのと同じ環境が保証される。また、マ
スクデータレジスタ9とマスク回路10とを設けたので
、特定アドレスのワードのうち正常動作であるときの書
き換えパターンが予め予想できないフィールドの比較を
行わないよ・うにすることができるので、余分なデータ
割込みの発生は更に確立が低くなる。
In the above state, start executing the program in question. Even under normal conditions, this program cannot use the comparison command.
Writing is performed to the address set in the address register 4, but among the data sent from the memory access control unit 2 via the signal wire 202 to that address, the data is compared by the mask data register 9. If the current field is a normal value, there is no match with the comparison data register 5, so the output 801 of the AND gate 8 is 0', and no extra debugging interrupt is generated. Therefore, the same environment as would occur in normal operating mode without setting debug mode is guaranteed. In addition, since the mask data register 9 and the mask circuit 10 are provided, it is possible to avoid comparing fields in which the rewrite pattern during normal operation cannot be predicted in advance among the words of a specific address. The probability of a data interrupt occurring is even lower.

一方、所望のメモリリクエスト、即ちこの場合は予期し
ていなかったルーチンでの異常データの書込みなどが発
生すると、比較回路6.7の出力601 、701が共
に“1″となってアンドゲート8の出力801によりデ
バッグ割込みがかけられ、プログラムのバグ乃至はハー
ドウェアの障害をつきとめる貴重な情報を得ることが可
能となる。
On the other hand, when a desired memory request occurs, that is, abnormal data is written in an unexpected routine in this case, the outputs 601 and 701 of the comparison circuit 6.7 both become "1" and the AND gate 8 A debugging interrupt is generated by the output 801, making it possible to obtain valuable information for locating program bugs or hardware failures.

なお上記の実施例では、比較回路7は主記憶装置3への
書込みデータと比較データレジスタ5の保持データとの
一致を検出するとその出カフ01が′1”となるよう構
成し、比較情報と同一フィールドを有するデータが書込
まれたときにデバッグ割込みを起動するようにしたが、
例えば比較回路7が不一致を検出したときにその出カフ
01を“1”とするよう構成するか或いはアンドゲート
8の入力信号線701上の信号を反転してアンドゲート
8に入力する構成にすることにより、ある特定アドレス
の特定ビット位置が本来!!J1持されている特定の値
以外で破壊されるようなケースが発4Iシたときるこデ
ハソグ割込めを起動するように構成することもできる。
In the above embodiment, the comparator circuit 7 is configured so that when it detects a match between the data written to the main memory 3 and the data held in the comparison data register 5, the output cuff 01 becomes '1', and the comparison information and I set the debug interrupt to start when data with the same field is written, but
For example, when the comparator circuit 7 detects a mismatch, the output cuff 01 is set to "1", or the signal on the input signal line 701 of the AND gate 8 is inverted and input to the AND gate 8. By doing so, the specific bit position of a specific address is originally! ! It is also possible to configure a circuit deharsing interrupt to be activated when a case in which J1 is destroyed due to a value other than the specific value held is generated.

また、メモリリクエストの:1−7ン1゛が読出しコマ
ンドの場合は、信号線103を“0゛にして比較器87
の出カフ01をデ〜りに関係なく常に“1”とすること
C1:より、11S較回#I6の出力の状態のみに応し
てデータ割込めを発ノ1−さセることかできる。
If the :1-7 pin 1 of the memory request is a read command, the signal line 103 is set to "0" and the comparator 87
By always setting the output cuff 01 to "1" regardless of the data C1:, it is possible to generate a data interrupt only according to the state of the output of the 11S comparison circuit #I6. .

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、メモリの特定のアドレ
スへの書込みリクエストに関して、書込みデータの内容
に従ってデバッグ割込みの起動をコントロールすること
により、実環境と変わらない状態を再現しながら所望の
リクエストをtdi jにしてデバッグ割込みを起重)
1することが可能となり、デバッグ効率を向上させ得る
効果がある。また、第2の比較手段は書込みデータと第
2の比較情報保持手段に保持された比較情報とを、両者
の比較すべきビット位置を指示するマスクデータの内容
に応じて比較するので、特定アドレスのIノード内のう
ら正常動作であるときの書き換えパターンが予め予想で
きないフィールドが存在する等のデータに対しても有効
なデバッグ割込みを発生させることができる。
As explained above, the present invention controls the activation of debug interrupts according to the contents of the write data regarding a write request to a specific address in memory, thereby allowing the desired request to be executed while reproducing the same state as the actual environment. tdi j and trigger debug interrupt)
1, which has the effect of improving debugging efficiency. Further, since the second comparing means compares the written data and the comparison information held in the second comparison information holding means according to the contents of the mask data indicating the bit positions to be compared between the two, the specific address An effective debug interrupt can be generated even for data in which there is a field whose rewrite pattern cannot be predicted in advance during normal operation in the I-node.

【図面の簡単な説明】 図は本発明の実施例におi−+る情報処理装置の要部ブ
1コック図である。 図において、】は演算制御部、2はメモリアクセス制御
部、3は主記憶装置、4は比較コマンド・アドレスレジ
スタ、5は比較データレジスタ、6.7ば比較回路、8
はアンドゲート、9はマスクデータレジスタ、10はマ
スク回路、801 はデータ割込め起動の制御信号であ
る。
BRIEF DESCRIPTION OF THE DRAWINGS The figure is a block diagram of main parts of an information processing apparatus according to an embodiment of the present invention. In the figure, ] is an arithmetic control unit, 2 is a memory access control unit, 3 is a main memory, 4 is a comparison command/address register, 5 is a comparison data register, 6.7 is a comparison circuit, and 8 is a comparison circuit.
9 is an AND gate, 9 is a mask data register, 10 is a mask circuit, and 801 is a data interrupt activation control signal.

Claims (1)

【特許請求の範囲】 メモリリクエストのコマンドおよびアドレスに関する比
較情報を保持する第1の比較情報保持手段と、 書込みデータに関する比較情報を保持する第2の比較情
報保持手段と、 情報処理装置で発生するメモリリクエストのコマンドお
よびアドレスと前記第1の比較情報保持手段に保持され
た比較情報とを比較する第1の比較手段と、 前記情報処理装置で発生する書込みデータと前記第2の
比較情報保持手段に保持された比較情報とを、両者の比
較すべきビット位置を指示するマスクデータの内容に応
じて比較する第2の比較手段と、 前記第1の比較手段と前記第2の比較手段とで所定の比
較結果が得られたときにデバッグ割込み起動の制御信号
を発生するデバッグ割込み起動手段とを具備したことを
特徴とする情報処理装置におけるデバッグ割込み制御方
式。
[Claims] First comparison information holding means for holding comparison information regarding commands and addresses of memory requests; second comparison information holding means for holding comparison information regarding write data; a first comparing means for comparing a command and address of a memory request with comparison information held in the first comparison information holding means; and write data generated in the information processing device and the second comparison information holding means. a second comparing means for comparing the comparison information held in the first comparing means according to the contents of mask data indicating bit positions to be compared between the two; and the first comparing means and the second comparing means 1. A debug interrupt control method for an information processing device, comprising: debug interrupt activation means for generating a control signal for activating a debug interrupt when a predetermined comparison result is obtained.
JP60222738A 1985-10-08 1985-10-08 Control system for interruption of debug in information processor Pending JPS6282438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60222738A JPS6282438A (en) 1985-10-08 1985-10-08 Control system for interruption of debug in information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60222738A JPS6282438A (en) 1985-10-08 1985-10-08 Control system for interruption of debug in information processor

Publications (1)

Publication Number Publication Date
JPS6282438A true JPS6282438A (en) 1987-04-15

Family

ID=16787125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60222738A Pending JPS6282438A (en) 1985-10-08 1985-10-08 Control system for interruption of debug in information processor

Country Status (1)

Country Link
JP (1) JPS6282438A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0585022U (en) * 1991-04-03 1993-11-16 スタンレー電気株式会社 Transformer core

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0585022U (en) * 1991-04-03 1993-11-16 スタンレー電気株式会社 Transformer core

Similar Documents

Publication Publication Date Title
EP0638864B1 (en) Development support system for microcomputer with internal cache
JPS60159951A (en) Tracing system in information processing device
JPS6282438A (en) Control system for interruption of debug in information processor
JP2570593B2 (en) Debug device
JPS6282437A (en) Control system for interruption of debug in information processor
JP2684966B2 (en) I / O processor debug device
JPS59153247A (en) Debugging device
JPS6270947A (en) Control system for debug interruption
KR950005523B1 (en) Step-run processing method of programmable logic controller
JPS60112148A (en) Memory device
JPS63111547A (en) Memory control system
JPH04337847A (en) Program check method
JPH1021110A (en) Emulator
JPH05173829A (en) Error generating method
JPH06161804A (en) Information processor
JPH05216718A (en) Debugging method
JPH0782447B2 (en) DMA data transfer control device
JPH03223938A (en) Return address monitoring circuit for debugging device
JPH02148340A (en) System for controlling writing in control storage
JPH02166510A (en) Disk controller
JP2001508903A (en) How to check your program for errors
JPH0315948A (en) Address bus test system
JPH01184551A (en) System for debugging program
JPS62197844A (en) Disk cache device
JPS59165158A (en) Debugging device