JPH04140851A - Diagnostic system for information processor - Google Patents

Diagnostic system for information processor

Info

Publication number
JPH04140851A
JPH04140851A JP2264143A JP26414390A JPH04140851A JP H04140851 A JPH04140851 A JP H04140851A JP 2264143 A JP2264143 A JP 2264143A JP 26414390 A JP26414390 A JP 26414390A JP H04140851 A JPH04140851 A JP H04140851A
Authority
JP
Japan
Prior art keywords
address
instruction
execution
executed
microinstruction
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
JP2264143A
Other languages
Japanese (ja)
Inventor
Kenji Shiba
健司 柴
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 JP2264143A priority Critical patent/JPH04140851A/en
Publication of JPH04140851A publication Critical patent/JPH04140851A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To efficiently store the trace information by limiting it to only an execution address of its instruction and an execution address of the next instruction and storing them, in the case the instruction execution address of a microprocessor is not transferred continuously. CONSTITUTION:When a write instruction 341 is given, a storage part 360 stores a pre-execution address 311 in an address shown by an address 351 given from an address control part 350. The address control part 350 adds '1' to the address 351 given to the storage part 360 by an address adding instruction 342 from a write timing control part 34. In such a way, in the case the address is not transferred continuously, that is, in the case such instructions as branch, subroutine call, return, etc., are executed, an instruction execution address of a microprocessor is limited to only an execution address of its instruction, and an execution address of an instruction to be executed in the next time as a result of execution of its instruction and stored.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置の診断方式に関し、特にマイクロ
プロセッサが実行した命令実行アドレスをトレースする
情報処理装置の診断方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a diagnostic method for an information processing device, and more particularly to a diagnostic method for an information processing device that traces the execution address of an instruction executed by a microprocessor.

〔従来の技術〕[Conventional technology]

従来の情報処理装置の診断方式において、マイクロプロ
セッサがマイクロ命令実行アドレスを制御記憶部に出力
し、制御記憶部からのマイクロ命令をマイクロプロセッ
サが実行し、マイクロプロセッサからの命令実行アドレ
スを記憶手段ですべて記憶するという方式がある。
In a conventional diagnosis method for information processing equipment, a microprocessor outputs a microinstruction execution address to a control storage section, the microprocessor executes the microinstruction from the control storage section, and the instruction execution address from the microprocessor is stored in a storage means. There is a way to memorize everything.

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

上述した従来の情報処理装置の診断方式では、記憶手段
の記憶容量の制限により、記憶できる範囲が直前に実行
されたマイクロプログラムアドレス少量に限られてしま
い、また、マイクロプログラムの処理によっては、命令
の実行アドレスがループするために、必要とするマイク
ロプログラムアドレスの記憶ができないことがあり、マ
イクロプログラムのデパックや障害解析等に十分な効果
を発揮できないという欠点がある。
In the above-mentioned conventional diagnostic method for information processing devices, due to the limited storage capacity of the storage means, the range that can be stored is limited to a small number of microprogram addresses that were executed immediately before, and depending on the processing of the microprogram, instructions may be Since the execution address of the microprogram loops, it may not be possible to store the required microprogram address, which has the disadvantage that it cannot be sufficiently effective for microprogram depacking, failure analysis, etc.

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

本発明の情報処理装置の診断方式は、マイクロプロセッ
サか実行するマイクロ命令実行アドレスを一時記憶する
アドレスラッチと、制御記憶部から出力され現在実行中
のマイクロ命令より1ステップ前に実行され前記アドレ
スラッチが記憶の前実行アドレスに1加算した予測アド
レスを出力する加算器と、前記マイクロ命令実行アドレ
スと前記予測アドレスとを比較し不一致のときアドレス
不一致信号を出力する比較器と、前記アドレス不一致信
号によりライト指示とアドレス加算指示とを出力するラ
イトタイミング制御部と、前記アドレス加算指示により
1加算したアドレスを出力するアドレス制御部と、前記
ライト指示と前記アドレスとにより示される番地に前記
前実行アドレスを記憶する記憶部とを有する。
A diagnostic method for an information processing device according to the present invention includes an address latch that temporarily stores an execution address of a microinstruction to be executed by a microprocessor, and an address latch that is output from a control storage unit and executed one step before the currently executed microinstruction. an adder that outputs a predicted address obtained by adding 1 to the previously executed address stored in memory; a comparator that compares the microinstruction execution address and the predicted address and outputs an address mismatch signal when they do not match; a write timing control unit that outputs a write instruction and an address addition instruction; an address control unit that outputs an address incremented by 1 based on the address addition instruction; and a storage section for storing information.

C実施例〕 次に2本発明について図面を参照して説明する。第1図
は本発明の一実施例のブロック図である。
C Embodiment] Next, two embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention.

本実施例の診断装置はマイクロプログラムエ00が実行
するマイクロ命令実行アドレス1.01を一時記憶する
アドレスラッチ31oと、C3(C。
The diagnostic device of this embodiment includes an address latch 31o that temporarily stores the microinstruction execution address 1.01 executed by the microprogram E00, and C3 (C.

ntrol Strage :制御記憶部)200から
出力され現在実行中のマイクロ命令201より1ステッ
プ前に実行されアドレスラッチ310が記憶の前実行ア
ドレス311に1加算した予測アドレス321を出力す
る加算器320と、マイクロ命令実行アドレス101と
予測アドレス321とを比較し不一致のときアドレス不
一致信号331を出方する比較器330と、アドレス不
一致信号331によりライト指示341とアドレス加算
指示342とを出力すライトタイミング制御部340と
、アドレス加算指示342により1加算したアドレス3
51を出力するアドレス制御部350と、ライト指示3
41とアドレス351とにより示される番地に前実行ア
ドレス311を記憶する記憶部360とを有して構成さ
れる。
an adder 320 that outputs a predicted address 321 that is output from the control storage unit (control storage unit) 200, is executed one step before the currently executed microinstruction 201, and is obtained by adding 1 to the previously executed address 311 stored by the address latch 310; A comparator 330 that compares the microinstruction execution address 101 and the predicted address 321 and outputs an address mismatch signal 331 when they do not match, and a write timing control section that outputs a write instruction 341 and an address addition instruction 342 based on the address mismatch signal 331. 340 and address 3 added by 1 by address addition instruction 342
Address control unit 350 that outputs 51 and write instruction 3
41 and a storage section 360 that stores the previously executed address 311 at the address indicated by the address 351.

次に動作について説明する。Next, the operation will be explained.

マイクロプロセッサ100がマイクロ命令実行アドレス
101をC3200に与えると、C8200は記憶して
いるマイクロ命令201を出力する。このときマイクロ
命令実行アドレス101はアドレスラッチ310に一時
記憶される。アドレスラッチ310に記憶され、現在実
行中のマイクロ命令より1ステップ前に実行された命令
のマイクロ命令アドレスである前実行アドレス311は
、加算器320に入力されて、1加算され、現在実行中
のマイクロ命令アドレスの予測である予測アドレス32
1が出力される。
When the microprocessor 100 gives the microinstruction execution address 101 to the C3200, the C8200 outputs the stored microinstruction 201. At this time, the microinstruction execution address 101 is temporarily stored in the address latch 310. The previous execution address 311, which is stored in the address latch 310 and is the microinstruction address of the instruction executed one step before the currently executing microinstruction, is input to the adder 320 and incremented by 1. Predicted address 32, which is a prediction of the microinstruction address
1 is output.

比較器330は、予測アドレス321とマイクロ命令実
行アドレス101とを比較し不一致である場合にはアド
レス不一致信号331をライトタイミング制御部340
に与える。アドレスの不連続性が発生したことがアドレ
ス不一致信号331によってライトタイミング制御部3
40に伝えられると、ライトタイミング制御部340は
、アドレスの不連続を生じた命令の実行アドレスである
前実行アドレス311の記憶及び、引続き実行されるマ
イクロ命令である現在実行中の命令のマイクロ命令実行
アドレス]01とをアドレスラッチ310に一時記憶し
た後、次のクロックサイクルで記憶することを、ライト
指示341によって記憶部360へ指示する。
The comparator 330 compares the predicted address 321 and the microinstruction execution address 101, and if they do not match, sends the address mismatch signal 331 to the write timing control unit 340.
give to The address mismatch signal 331 indicates that address discontinuity has occurred in the write timing control unit 3.
40, the write timing control unit 340 stores the previous execution address 311, which is the execution address of the instruction that caused the address discontinuity, and stores the microinstruction of the currently executed instruction, which is the microinstruction that will be executed subsequently. After temporarily storing the execution address]01 in the address latch 310, the write instruction 341 instructs the storage unit 360 to store it in the next clock cycle.

記憶部360は、ライト指示341が与えられると前実
行アドレス311をアドレス制御部350から与えられ
るアドレス351で示される番地へ記憶する。アドレス
制御部350は記憶部360へ与えるアドレス351に
、ライトタイミング制御部340からのアドレス加算指
示342によって、1を加算する。このようにして、マ
イクロプロセッサの命令実行アドレスを、アドレスが連
続的に遷移しなかった場合、すなわちブランチサブルー
チンコール・リターン等の命令が実行された場合、その
命令の実行アドレス及び、その命令が実行された結果次
に実行されるべき命令の実行アドレスにのみ限定して(
例えばブランチ命令が実行された場合、ブランチ命令自
身の存在するアドレス及び、ブランチ先のアドレス)記
憶する。
When the storage unit 360 is given the write instruction 341, it stores the previous execution address 311 at the address indicated by the address 351 given from the address control unit 350. Address control section 350 adds 1 to address 351 given to storage section 360 in response to address addition instruction 342 from write timing control section 340 . In this way, if the address does not change continuously in the microprocessor, that is, if an instruction such as a branch subroutine call or return is executed, the execution address of the instruction and the execution address of that instruction can be changed. limited to the execution address of the next instruction to be executed as a result of (
For example, when a branch instruction is executed, the address where the branch instruction itself exists and the address of the branch destination are stored.

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

以上説明したように本発明は、マイクロプロセッサの命
令実行アドレスが連続的に遷移しなかった場合、その命
令の実行アドレス及び次の命令の実行アドレスにのみ限
定して記憶することにより、マイクロプログラムの実行
結果のトレース情報を効率よく記憶することができると
いう効果がある。
As explained above, when the instruction execution address of a microprocessor does not change continuously, the present invention stores only the execution address of that instruction and the execution address of the next instruction. This has the effect that trace information of execution results can be stored efficiently.

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

第1図は本発明の一実施例のブロック図である。 100・・・マイクロプロセッサ、101・・・マイク
ロ命令実行アドレス、200・・・C8,201・・マ
イクロ命令、300・・・診断装置、310・・・アド
レスラッチ、311・・・前実行アドレス、320・・
・加算器、321・・・予測アドレス、330・比較器
、331・・・アドレス不一致信号、340・・ライト
タイミング制御部、341・・・ライト指示、342・
・・アドレス加算指示、350・・・アドレス制御部、
351・・・アドレス、360・・・記憶部。
FIG. 1 is a block diagram of one embodiment of the present invention. 100...Microprocessor, 101...Microinstruction execution address, 200...C8, 201...Microinstruction, 300...Diagnostic device, 310...Address latch, 311...Previous execution address, 320...
Adder, 321... Predicted address, 330 Comparator, 331... Address mismatch signal, 340... Write timing control section, 341... Write instruction, 342...
...Address addition instruction, 350...Address control section,
351...Address, 360...Storage unit.

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサが実行するマイクロ命令実行アドレ
スを一時記憶するアドレスラッチと、制御記憶部から出
力され現在実行中のマイクロ命令より1ステップ前に実
行され前記アドレスラッチが記憶の前実行アドレスに1
加算した予測アドレスを出力する加算器と、前記マイク
ロ命令実行アドレスと前記予測アドレスとを比較し不一
致のときアドレス不一致信号を出力する比較器と、前記
アドレス不一致信号によりライト指示とアドレス加算指
示とを出力するライトタイミング制御部と、前記アドレ
ス加算指示により1加算したアドレスを出力するアドレ
ス制御部と、前記ライト指示と前記アドレスとにより示
される番地に前記前実行アドレスを記憶する記憶部とを
有することを特徴とする情報処理装置の診断方式。
There is an address latch that temporarily stores the execution address of a microinstruction executed by the microprocessor, and an address latch that temporarily stores the execution address of a microinstruction that is output from the control storage unit and is executed one step before the currently executed microinstruction.
an adder that outputs the added predicted address, a comparator that compares the microinstruction execution address and the predicted address and outputs an address mismatch signal when they do not match, and a write instruction and an address addition instruction based on the address mismatch signal. A write timing control unit that outputs an output, an address control unit that outputs an address incremented by 1 based on the address addition instruction, and a storage unit that stores the previously executed address at an address indicated by the write instruction and the address. A diagnostic method for an information processing device characterized by:
JP2264143A 1990-10-02 1990-10-02 Diagnostic system for information processor Pending JPH04140851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2264143A JPH04140851A (en) 1990-10-02 1990-10-02 Diagnostic system for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2264143A JPH04140851A (en) 1990-10-02 1990-10-02 Diagnostic system for information processor

Publications (1)

Publication Number Publication Date
JPH04140851A true JPH04140851A (en) 1992-05-14

Family

ID=17399060

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2264143A Pending JPH04140851A (en) 1990-10-02 1990-10-02 Diagnostic system for information processor

Country Status (1)

Country Link
JP (1) JPH04140851A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200348A (en) * 1993-11-23 1995-08-04 Rockwell Internatl Corp Method and apparatus for compression of program address dataand apparatus for quickening of debugging processing of program
JPH08161196A (en) * 1994-12-09 1996-06-21 Nec Corp Instruction tracing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200348A (en) * 1993-11-23 1995-08-04 Rockwell Internatl Corp Method and apparatus for compression of program address dataand apparatus for quickening of debugging processing of program
JPH08161196A (en) * 1994-12-09 1996-06-21 Nec Corp Instruction tracing device

Similar Documents

Publication Publication Date Title
JPS58197553A (en) Program monitor
JPH04140851A (en) Diagnostic system for information processor
EP1177499B1 (en) Processor and method of executing instructions from several instruction sources
JP2758624B2 (en) Speed control method of micro program
JPS6152747A (en) Microprocessor
JPH0561660B2 (en)
JPH0340075A (en) Microcomputer
JPH04140852A (en) Diagnostic system for information processor
JPS63165931A (en) Storing system for information on discontinuous instruction fetch address
JPH0259829A (en) Microcomputer
JPS6028014B2 (en) microprocessor
JPS63163543A (en) Information processor
JPH0424731B2 (en)
JPH01175632A (en) Micro program controller
JPH0682321B2 (en) Micro controller
JPH036735A (en) Data processor
JPH03208140A (en) Input/output log recording system
JPH01154255A (en) Microprocessor
JPH04123229A (en) Pipeline controller
JPS6234238A (en) Microprocessor
JPH03184136A (en) Address trace circuit
JPH03164945A (en) Data processor
JPH0243626A (en) Apparatus for controlling execution speed of computer processor
JPS6349846A (en) Arithmetic processor
JPS6255738A (en) Data processor having program counter tracing mechanism