JPH02181236A - Debug device - Google Patents

Debug device

Info

Publication number
JPH02181236A
JPH02181236A JP64000607A JP60789A JPH02181236A JP H02181236 A JPH02181236 A JP H02181236A JP 64000607 A JP64000607 A JP 64000607A JP 60789 A JP60789 A JP 60789A JP H02181236 A JPH02181236 A JP H02181236A
Authority
JP
Japan
Prior art keywords
instruction
circuit
processing
debug
signal
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
JP64000607A
Other languages
Japanese (ja)
Inventor
Shoshiro Ono
大野 正志郎
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 JP64000607A priority Critical patent/JPH02181236A/en
Publication of JPH02181236A publication Critical patent/JPH02181236A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To efficiently execute the debug even if a software for a test is not developed, and also, to easily execute the debug by a software used by a general user by providing an instruction prefetching circuit and an OR gate, etc. CONSTITUTION:When an instruction prefetch instruction signal is inputted through a signal line 101, an instruction prefetching circuit 1 prefetches one piece of instruction and sends it out to an arithmetic circuit 2. The circuit 2 executes a processing of an instruction prefetched by the circuit 1, and outputs an instruction processing end signal to an OR gate 3, when the processing is ended. The gate 3 takes OR of the instruction processing end signal from the circuit 2, a debug mode signal from a mode register 4 inputted through an inverter 5, and an instruction processing start signal from an external debug instructing circuit 6, and outputs an instruction prefetch instructing signal to the circuit 1. In this regard, to the register 4, a debug mode is set from the circuit 6. In such a way, even if a software for a test is not developed, the debug can be executed efficiently, and also, the debug can be executed easily by a software used by a general user.

Description

【発明の詳細な説明】 玖Jdト野 本発明はデバッグ装置に関し、特に情報処理装置のデバ
ッグ処理に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a debugging device, and particularly to debugging processing for an information processing device.

従来技術 従来、命令先取り手段を有する情報処理装置においては
、同じ命令を処理する場合でも前後の命令によって内部
動作が異なる場合がある。
BACKGROUND ART Conventionally, in an information processing apparatus having an instruction prefetching means, internal operations may differ depending on the previous and subsequent instructions even when processing the same instruction.

たとえば、処理17ようとしている命令が特定のレジス
タを用いる場合、先行命令でその特定のレジスタの内容
が書換えられたならば、該命令の処理はその特定のレジ
スタの内容か更新されるまで待たなければならない。
For example, if the instruction to be processed 17 uses a specific register, and the contents of that specific register have been rewritten by the preceding instruction, processing of that instruction must wait until the contents of that specific register are updated. Must be.

上記のように、同じ命令を処理する場合でも命令の順序
関係などによっては内部動作が異なるため、ソフトウェ
アを用いて命令列の処理を行うことにより得られた出力
と、該命令列の間に出力結果に影響を与えないような命
令[たとえばN0P(no operation 1n
struction)ステップなど]を挿入し、その命
令列の処理を行うことにより得られた出力とを比較して
装置のデバッグを行っていた。
As mentioned above, even when processing the same instruction, the internal operation differs depending on the order of the instructions, so the output obtained by processing the instruction sequence using software and the output between the instruction sequence Instructions that do not affect the result [for example, N0P (no operation 1n
The device was debugged by inserting a step (struction) step, etc., and comparing the output obtained by processing the instruction sequence.

このような従来の情報処理装置では、ソフトウェアを用
いて命令列の処理を行うことにより得られた出力と、該
命令列の間に出力結果に影響を与えないような命令を挿
入し、その命令列の処理を行うことにより得られた出力
とを比較して装置のデバッグを行っていたので、その命
令列だけが異常なく動作することが確認されるだけで、
他の多くの命令列の動作を確3.2するためには多くの
ラフ1〜ウエアを作成しなければならないために効率か
悪いという欠点がある。
In such conventional information processing devices, an instruction that does not affect the output result is inserted between the output obtained by processing a sequence of instructions using software and the sequence of instructions. Since we were debugging the device by comparing the output obtained by processing the sequence, we could confirm that only that sequence of instructions was working without any errors.
3.2 In order to ensure the operation of many other instruction sequences, many rough pieces of software must be created, which has the disadvantage of poor efficiency.

よな、上記の方法では一般ユーザで使用されるラフ1〜
ウエアがW常なく動作することの確認とはならないなめ
、デバッグの効果が低いという欠点がある。
Okay, the above method uses rough 1~ used by general users.
This has the drawback that it does not confirm that the software is working properly, and debugging is less effective.

発明の目的 本発明は上記のような&1.来のものの欠点を除去すべ
くなされたもので、テスト用のソフトウェアを開発する
ことなく、効率よくデバッグを行うことかでき、一般ユ
ー→ノ′て′(中圧jされるソフトウェアによって容易
にデバッグを行うことができるデバVり装置の提1%を
目的とする。
OBJECTS OF THE INVENTION The present invention provides &1. This was developed to eliminate the shortcomings of the previous version, and allows for efficient debugging without developing test software. The aim is to provide 1% of devices that can perform this.

発明の構成 本発明によるデバッグ装置は、命令先取り手段にtつ先
取りされたイ1j令の処理を行う情報処理装;ξのデハ
ソク装Byであって、デパックモード時に前記命令の処
理終了に応答1−て+iif記命令先取り手段に前記命
令の先取りを行わせるよう制クリする手段を有すること
を特徴とする。
Composition of the Invention A debugging device according to the present invention is an information processing device for processing 1j instructions prefetched by t instruction prefetching means; The present invention is characterized in that it includes means for restricting the instruction prefetching means to prefetch the instructions.

夫族ヱ 次に、本発明の一実施例について図面を参照して説明す
る。
Next, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る1図において、命令先取り回路1は信号線101を介
して命令先取り指示信号が入力されると、1個の命令を
先取りする。この先取りした命令は信号線102を介し
て演算回路2に送出される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 1, an instruction prefetch circuit 1 prefetches one instruction when an instruction prefetch instruction signal is input via a signal line 101. . This prefetched instruction is sent to the arithmetic circuit 2 via the signal line 102.

演算回路2は命令先取り口I¥81により先取りされた
命令の処理を実行し、該命令の処理が終了すると、信号
線103を介してオアゲート3に命令処理終了信号を出
力する。
The arithmetic circuit 2 executes processing of the instruction prefetched by the instruction prefetch port I\81, and when the processing of the instruction is completed, outputs an instruction processing end signal to the OR gate 3 via the signal line 103.

オアゲート3は演算回路2からの命令処理終了信号と、
インバータ5および信号線106.107を介して入力
されるモードレジスタ4がらのデバッグモード信号と、
信号線105を介して入力される外部デバッグ指示回路
6がらの命令処理開始信号との論理和をとり、信号線1
01を介して命令先取り回路1に命令先取り指示信号を
出力する。
The OR gate 3 receives an instruction processing end signal from the arithmetic circuit 2,
A debug mode signal from the mode register 4 input via the inverter 5 and signal lines 106 and 107;
The logical OR with the instruction processing start signal from the external debug instruction circuit 6 input via the signal line 105 is taken, and the signal line 1 is
An instruction prefetch instruction signal is output to the instruction prefetch circuit 1 via 01.

モードレジスタ4には外部デバッグ指示回路6から信号
線104を介してデバッグモードが設定される。
A debug mode is set in the mode register 4 from the external debug instruction circuit 6 via the signal line 104.

第2図は本発明の一実施例における通常動作時の命令処
理の流れを示す図であり、第3図は本発明の一実施例に
おけるデバッグモード時の命令処理の流れを示す図であ
る。これらの図において、Dは命令デコードサイクルを
、Aは仮想アドレス作成サイクルを、Pはベージングサ
イクルを、Cはキャッシュ言売出しサイクルを、Tはア
ラインサイクルを、Eは演算処理サイクルを、Wは書込
みサイクルを夫々示している。
FIG. 2 is a diagram showing the flow of instruction processing during normal operation in one embodiment of the present invention, and FIG. 3 is a diagram showing the flow of instruction processing in debug mode in one embodiment of the present invention. In these figures, D represents the instruction decode cycle, A represents the virtual address creation cycle, P represents the paging cycle, C represents the cache marketing cycle, T represents the align cycle, E represents the arithmetic processing cycle, and W represents the arithmetic processing cycle. A write cycle is shown respectively.

また、命令デコードサイクルDと、仮想アドレス作成サ
イクルAと、ページングサイクルPと、キャッシュ読出
しサイクルCとは夫々命令先取りのサイクルであり、こ
れらのサイクルは命令先取り回路1によって処理される
Further, the instruction decode cycle D, the virtual address creation cycle A, the paging cycle P, and the cache read cycle C are cycles for instruction prefetching, and these cycles are processed by the instruction prefetching circuit 1.

これら第1図〜第3図を用いて本発明の一実施例の動作
について説明する。
The operation of one embodiment of the present invention will be explained using these FIGS. 1 to 3.

まず、通常動作時には、モードレジスタ4にデバッグモ
ードが設定されていないので、オアゲート3にはデバッ
グモード信号として“1″か入力され、オアゲート3か
ら命令先取り回路1には命令先取り指示信号として1″
が連続して出力される。
First, during normal operation, since the debug mode is not set in the mode register 4, "1" is input to the OR gate 3 as a debug mode signal, and "1" is input from the OR gate 3 to the instruction prefetch circuit 1 as an instruction prefetch instruction signal.
is output continuously.

したがって、命令先取り回路1では命令■〜IVの命令
デコードサイクルD、仮想アドレス作成サイクルA、ペ
ージングサイクルP、キャッシュ読出しサイクルCの各
処理が夫々行われ、その出力が順次演算回路2に転送さ
れる6 演算回路2は転送されてきた命令先取り回路1からの出
力により命令1〜IVの演算処理サイクルEおよび書込
みサイクルWの処理が実行され、その命令■〜IVの実
行により演算回路2で得られた演算結果が図示せぬメモ
リに格納される。
Therefore, the instruction prefetch circuit 1 performs each of the instruction decode cycle D, virtual address creation cycle A, paging cycle P, and cache read cycle C for instructions ① to IV, and the outputs thereof are sequentially transferred to the arithmetic circuit 2. 6 The arithmetic circuit 2 executes the processing of the arithmetic processing cycle E and the write cycle W of instructions 1 to IV based on the transferred output from the instruction prefetch circuit 1, and the information obtained in the arithmetic circuit 2 by executing the instructions The calculated results are stored in a memory (not shown).

次に、デバッグを行う場合には、外部デバッグ指示回路
6からモードレジスタ4にデバッグモードとして“1″
がセットされ、外部デバッグ指示回路6からオアゲート
3に1サイクルだけ命令開始信号として“1パが出力さ
れる。
Next, when debugging, the external debug instruction circuit 6 writes “1” to the mode register 4 as the debug mode.
is set, and "1pa" is output from the external debug instruction circuit 6 to the OR gate 3 for one cycle as an instruction start signal.

これにより、オアゲート3から命令先取り回路1に命令
先取り指示信号として°′1″が出力される。
As a result, the OR gate 3 outputs °'1'' to the instruction prefetch circuit 1 as an instruction prefetch instruction signal.

命令先取り回路1では命令先取り指示信号が入力される
と、1個の命令1の先取り処理を行う。
When the instruction prefetching instruction signal is inputted to the instruction prefetching circuit 1, the instruction prefetching circuit 1 prefetches one instruction 1.

すなわち、命令先取り回路1はこの命令1の命令デコー
ドサイクルD、仮想アドレス作成サイクルA、ページン
グサイクルP、キャッシュ読出しサイクルCの各処理を
行い、演算回路2にその出力を転送する。
That is, the instruction prefetch circuit 1 performs the instruction decode cycle D, virtual address creation cycle A, paging cycle P, and cache read cycle C for this instruction 1, and transfers the output to the arithmetic circuit 2.

演算回路2では転送されてきた命令先取り回路1からの
出力により命令Tの演算処理サイクルEおよび書込みサ
イクルWの処理が実行され、この命令■の処理が終了す
ると、演算回路2からオアゲート3に命令処理終了信号
として“1″が1サイクルだけ出力される。
In the arithmetic circuit 2, the processing of the arithmetic processing cycle E and the write cycle W of the instruction T is executed based on the transferred output from the instruction prefetch circuit 1, and when the processing of this instruction "1" is output for only one cycle as a processing end signal.

オアゲート3では演算回路2からの命令処理終了信号が
入力されると、命令先取り回路1に命令先取り指示信号
として“1″を1サイクルだけ出力する。
When the OR gate 3 receives the instruction processing end signal from the arithmetic circuit 2, it outputs "1" to the instruction prefetch circuit 1 as an instruction prefetch instruction signal for one cycle.

これにより、命令先取り回路1では上述の処理と同様に
次の命令■の先取りが行われ、命令■の命令デコードサ
イクルD、仮想アドレス作成サイクルA、ベージングサ
イクルP、キャッシュ読出しサイクルCの各処理が行わ
れ、演算回路2にその出力が転送される。
As a result, the instruction prefetch circuit 1 prefetches the next instruction (2) in the same way as the above-mentioned processing, and processes the instruction decode cycle D, virtual address creation cycle A, paging cycle P, and cache read cycle C of the instruction (2). is performed, and its output is transferred to the arithmetic circuit 2.

以下同様に、演算回路2で命令■の処理が終了すると、
演算回路2からオアゲート3に命令処理終了信号として
“1パが1サイクルだけ出力され、命令先取り回路1に
おいて次の命令■の先取りが行われる。
Similarly, when the processing of the instruction ■ is completed in the arithmetic circuit 2,
The arithmetic circuit 2 outputs "1pa" for one cycle as an instruction processing end signal to the OR gate 3, and the instruction prefetch circuit 1 prefetches the next instruction (2).

上述のように、外部デバッグ指示回路6によりモードレ
ジスタ4にデバッグモードが設定され、命令開始信号が
オアゲート3に出力されると、これ以降演算回路2で命
令■、■の処理が終了する毎に、命令先取り回路1で次
の命令■、■が順次−命令ずつ先取りされていく。
As mentioned above, when the debug mode is set in the mode register 4 by the external debug instruction circuit 6 and the instruction start signal is output to the OR gate 3, from then on, every time the processing of the instructions ■ and ■ is completed in the arithmetic circuit 2, In the instruction prefetch circuit 1, the next instructions (2) and (2) are sequentially prefetched one by one.

よって、このとき演算回路2において得られた演算結果
を、通常動作時に演算回路2で得られ、メモリに格納さ
れている演算結果と比較することにより、装置のデバッ
グをテスト用のソフトウェアを開発することなく、効率
よくデバッグを行うことができる。
Therefore, by comparing the calculation result obtained by the calculation circuit 2 at this time with the calculation result obtained by the calculation circuit 2 during normal operation and stored in the memory, software for debugging and testing the device is developed. You can debug efficiently without any trouble.

また、デバッグモード時には一命令の処理が終了する毎
に命令先取りを行わせるので、一般ユーザで使用される
ソフトウェアを用いてデバッグを行うことも容易である
Further, in the debug mode, instructions are prefetched every time the processing of one instruction is completed, so it is easy to debug using software used by general users.

このように、デバッグモード時に演算回路2で一命令の
処理が終了する毎に、命令先取り回路1に1個の命令の
先取りを行わせるようにすることによって、通常動作時
の処理結果とデバッグモード時の処理結果とを容易に比
較することができるので、テスト用のソフトウェアを開
発することなく、効率よくデバッグを行うことができ、
一般ユーザで使用されるソフトウェアによって容易にデ
バッグを行うことができる。
In this way, by causing the instruction prefetch circuit 1 to prefetch one instruction each time the arithmetic circuit 2 finishes processing one instruction in the debug mode, the processing results during normal operation and the debug mode can be Since you can easily compare the processing results at the time of testing, you can debug efficiently without developing test software.
Debugging can be easily performed using software used by general users.

発明の詳細 な説明したように本発明によれば、デバッグモード時に
命令の処理終了に応答して命令の先取りを行わせるよう
にすることによって、テスト用のソフトウェアを開発す
ることなく、効率よくデバッグを行うことができ、一般
ユーザで使用されるソフトウェアによって容易にデバッ
グを行うことができるという効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, instructions are prefetched in response to the completion of instruction processing in debug mode, thereby efficiently debugging without developing test software. This has the advantage that debugging can be easily performed using software used by general users.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例における通常動作時の命令処理
の流れを示す図、第3図は本発明の一実施例におけるデ
バッグモード時の命令処理の流れを示す図である。 主要部分の符号の説明 ■・・・・・・命令先取り回路 2・・・・・・演算回路 3・・・・・・オアゲート 4・・・・・・モードレジスタ 6・・・・・・外部デバッグ指示回路
Fig. 1 is a block diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a diagram showing the flow of instruction processing during normal operation in an embodiment of the invention, and Fig. 3 is an embodiment of the invention. FIG. 3 is a diagram showing the flow of instruction processing in debug mode in FIG. Explanation of symbols of main parts■・・・Instruction prefetch circuit 2・・・Arithmetic circuit 3・・・OR gate 4・・・Mode register 6・・・External Debug instruction circuit

Claims (1)

【特許請求の範囲】[Claims] (1)命令先取り手段により先取りされた命令の処理を
行う情報処理装置のデバッグ装置であって、デバッグモ
ード時に前記命令の処理終了に応答して前記命令先取り
手段に前記命令の先取りを行わせるよう制御する手段を
有することを特徴とするデバッグ装置。
(1) A debugging device for an information processing device that processes an instruction prefetched by an instruction prefetching means, wherein the instruction prefetching means is configured to prefetch the instruction in response to completion of processing of the instruction in a debug mode. A debugging device characterized by having a means for controlling.
JP64000607A 1989-01-05 1989-01-05 Debug device Pending JPH02181236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP64000607A JPH02181236A (en) 1989-01-05 1989-01-05 Debug device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP64000607A JPH02181236A (en) 1989-01-05 1989-01-05 Debug device

Publications (1)

Publication Number Publication Date
JPH02181236A true JPH02181236A (en) 1990-07-16

Family

ID=11478421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP64000607A Pending JPH02181236A (en) 1989-01-05 1989-01-05 Debug device

Country Status (1)

Country Link
JP (1) JPH02181236A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05342048A (en) * 1992-06-11 1993-12-24 Nec Corp Information processor
WO1995016953A1 (en) * 1993-12-15 1995-06-22 Silicon Graphics Inc. Processor system and debug mode accomplishment method
JPH10509325A (en) * 1994-11-17 1998-09-14 マキシム ファーマシューティカルズ,インコーポレイテッド An immunogen that stimulates mucosal immunity

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05342048A (en) * 1992-06-11 1993-12-24 Nec Corp Information processor
WO1995016953A1 (en) * 1993-12-15 1995-06-22 Silicon Graphics Inc. Processor system and debug mode accomplishment method
CN1084496C (en) * 1993-12-15 2002-05-08 株式会社东芝 Processor system and debug mode accomplishment method
JPH10509325A (en) * 1994-11-17 1998-09-14 マキシム ファーマシューティカルズ,インコーポレイテッド An immunogen that stimulates mucosal immunity

Similar Documents

Publication Publication Date Title
US7689867B2 (en) Multiprocessor breakpoint
US4879646A (en) Data processing system with a pipelined structure for editing trace memory contents and tracing operations during system debugging
KR910017256A (en) Programmable controller
JPH0728670A (en) Information processor
US7110934B2 (en) Analysis of the performance of a portion of a data processing system
JPH02181236A (en) Debug device
JP2520158B2 (en) Debugging method of digital signal processor
JPH02284236A (en) Program debugging processor
JPH0239332A (en) Software break system
JPS5829051A (en) Operation processing device
JPH0566961A (en) Software debug system for information processor
JPH07281924A (en) Trace device and emulator using the trace device
JPH0234058B2 (en)
JPS63113743A (en) Debugging system for computer hardware
JPH0535499A (en) Data processing device and method
JPS59202548A (en) Debugging device
JPH03156606A (en) Programmable controller
JPH03175539A (en) Debugging microprocessor
JPS5875256A (en) Monitoring system for execution instruction processing state
JPH03252731A (en) Microprocessor
JPH03156605A (en) Programmable controller
JPH117309A (en) Programmable controller
JPH06214828A (en) Interactive debug controller
JPH04123229A (en) Pipeline controller
KR930023824A (en) How to handle the step run of the program logic controller