[go: up one dir, main page]

JPH01191948A - Diagnosis controller - Google Patents

Diagnosis controller

Info

Publication number
JPH01191948A
JPH01191948A JP63016465A JP1646588A JPH01191948A JP H01191948 A JPH01191948 A JP H01191948A JP 63016465 A JP63016465 A JP 63016465A JP 1646588 A JP1646588 A JP 1646588A JP H01191948 A JPH01191948 A JP H01191948A
Authority
JP
Japan
Prior art keywords
microprogram
conditional branch
clock
execution
diagnostic
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
JP63016465A
Other languages
Japanese (ja)
Inventor
Hirofumi Kasugai
春日井 洋文
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 JP63016465A priority Critical patent/JPH01191948A/en
Publication of JPH01191948A publication Critical patent/JPH01191948A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the operating efficiency of a diagnosis by using a detecting means which detects a conditional branch and a stop means which stops the execution of a microprogram after execution of the conditional branch. CONSTITUTION:When a decoding circuit 5 detects that a microprogram to be executed shows a conditional branch, a clock control circuit 8 stops clock action in a step following the execution of the conditional branch and then stops the execution of the microprogram. As a result, the branch can be confirmed by the result of one diagnosis for the conditional branch part when the executing path of the microprogram is traced.

Description

【発明の詳細な説明】 文丘欠1 本発明は診断制御装置に関し、特に情報処理装置におけ
るマイクロプログラムの実行処理をトレースする診断制
御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a diagnostic control device, and more particularly to a diagnostic control device that traces the execution processing of a microprogram in an information processing device.

良圭韮韮 従来、情報処理装置における診断処理方式としては、マ
イクロプログラムを1ステツプずつ進めるステップ動作
と、目的のマイクロプログラムのアドレスの手前まで実
行してからマイクロプログラムの実行を停止させるアド
レス停止動作とを用いてマイクロプログラムの実行パス
をトレースする方法があった。
Conventionally, the diagnostic processing methods used in information processing equipment include a step operation that advances the microprogram one step at a time, and an address stop operation that stops execution of the microprogram after executing it up to the address of the target microprogram. There was a method to trace the execution path of a microprogram using

すなわち、マイクロプログラムの実行パスをトレースす
る際に、途中に条件分岐があるときには条件分岐のマイ
クロプログラムのアドレスを調査し、この調査に基づい
てアドレス停止動作を用いることにより条件分岐のマイ
クロプログラムのアドレスまで進め、続いてステップ動
作を用いることにより条件分岐のマイクロプログラムの
ステップを実行している。
In other words, when tracing the execution path of a microprogram, if there is a conditional branch on the way, the address of the microprogram of the conditional branch is investigated, and based on this investigation, the address of the microprogram of the conditional branch is determined by using an address stop operation. The conditional branch microprogram step is then executed by using a step operation.

この条件分岐の条件によりどちらに分岐するのかを確認
した後に、さらにマイクロプログラムの実行パスのトレ
ースを続けるような方法をとっていた。
After confirming which direction the program will take depending on the condition of the conditional branch, a method is used in which the execution path of the microprogram is continued to be traced.

このような従来の診断処理方式では、マイクロプログラ
ムの実行パスをトレースする際に途中に条件分岐がある
と、この条件分岐の条件によりどちらに分岐するのかを
確認するために、まず条件分岐のマイクロプログラムの
アドレスを調査し、条件分岐のアドレスまでアドレス停
止動作を実行してマイクロプログラムのアドレスを進め
、次にステップ動作を1口実行して分岐先のアドレスに
進めるという2回の操作が必要となり、操作性が悪く、
診断操作の効率が悪いという欠点がある。
In such conventional diagnostic processing methods, when tracing the execution path of a microprogram, if there is a conditional branch in the middle, the conditional branch's micro This requires two operations: investigating the program address, executing an address stop operation to the conditional branch address to advance the microprogram address, and then executing one step operation to advance to the branch destination address. , poor operability;
The disadvantage is that the diagnostic operation is inefficient.

1肌立亘追 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、マイクロプログラムの条件分岐部分の分
岐確認を1回の診断操作で実行することができ、診断操
作の効率を向上させることができる診断制御装置の提供
を目的とする。
1. Additional information The present invention was made in order to eliminate the drawbacks of the conventional ones as described above, and it is possible to execute branch confirmation of the conditional branch part of a microprogram with a single diagnostic operation, and to simplify the diagnostic operation. The purpose of the present invention is to provide a diagnostic control device that can improve efficiency.

i匪Ω亙メ 本発明による診断制御装置は、情報処理装置におけるマ
イクロプログラムの実行処理をトレースする診断制御装
置であって、前記マ“イクロプログラムにおける条件分
岐を検出する検出手段と、前記検出手段により検出され
た前記条件分岐の実行後に前記マイクロプログラムの実
行処理を停止する停止手段とを有し、前記停止手段によ
る前記マイクロプログラムの実行処理の停止により前記
条件分岐の分岐確認を行うようにしたことを特徴とする
A diagnostic control device according to the present invention is a diagnostic control device that traces execution processing of a microprogram in an information processing device, and includes a detection means for detecting a conditional branch in the microprogram, and a detection means for detecting a conditional branch in the microprogram. and stopping means for stopping the execution process of the microprogram after execution of the conditional branch detected by, and the branch confirmation of the conditional branch is performed by stopping the execution process of the microprogram by the stopping means. It is characterized by

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

第1図は本発明の一実施例の構成を示すブロック図であ
る0図において、本発明の一実施例による診断制御装置
は、診断制御回路1と、診断制御回路1からの診断コマ
ンド101をデコードするデコード回路2と、マクロプ
ログラムを記憶する記憶回路3と、記憶回路3から読出
されたマイクロプログラムを格納するマイクロプログラ
ムレジスタ4と、マイクロプログラムレジスタ4から出
力されたマイクロプログラムが条件分岐であるか否かを
デコードするデコード回路5と、デコード回路2.5か
らの出力信号104,108の論理積演算を行う論理積
回路6と、クロックの停止を指示するフラグ7と、シス
テム全体の実行うロックを制御するクロック制御回路8
とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. A decode circuit 2 for decoding, a memory circuit 3 for storing a macro program, a micro program register 4 for storing a micro program read from the memory circuit 3, and a micro program output from the micro program register 4 are conditional branches. a decoding circuit 5 that decodes whether or not a Clock control circuit 8 that controls the lock
It is composed of:

診断制御回路1からデコード回路2に診断コマンド10
1が送られてくると、デコード回路2ではこの診断コマ
ンド101をデコードし、この診断コマンド101が条
件分岐停止動作のときには、条件分岐停止動作信号10
4が“1”となって論理積回路6に出力される。
Diagnostic command 10 from diagnostic control circuit 1 to decode circuit 2
1 is sent, the decoding circuit 2 decodes this diagnostic command 101, and when this diagnostic command 101 is a conditional branch stop operation, the conditional branch stop operation signal 10 is sent.
4 becomes "1" and is output to the AND circuit 6.

また、この診断コマンド101がステップ動作のときに
はステップ動作信号105が1”となってクロック制御
回路8に出力される0診断コマンド101が通常動作の
ときには、条件分岐停止動作信号104とステップ動作
信号105とはともに“0″である。
When the diagnostic command 101 is a step operation, the step operation signal 105 becomes 1'' and is output to the clock control circuit 8.0 When the diagnostic command 101 is a normal operation, the conditional branch stop operation signal 104 and the step operation signal 105 Both are "0".

診断制御回路1はクロック制御回路8にクロック開始信
号102およびクロック停止信号103を送出し、クロ
ック制御回路8によってクロックの動作を制御する。
The diagnostic control circuit 1 sends a clock start signal 102 and a clock stop signal 103 to the clock control circuit 8, and the clock control circuit 8 controls the operation of the clock.

クロック制御回路8は診断制御回F#11からのクロッ
ク開始信号102が“1”になると、クロック禁止信号
111が0″となってクロックの動作を開始させる。
In the clock control circuit 8, when the clock start signal 102 from the diagnostic control circuit F#11 becomes "1", the clock inhibit signal 111 becomes "0" and starts clock operation.

さらに、クロック制御回路8は・診断制御回路1からの
クロック停止信号103と、デコード回路2からのステ
ップ動作信号105と、フラグ7からの出力信号110
とのうちいずれか1つが“1”になると、クロック禁止
信号111が“1”となって出力され、クロックの動作
が停止される。
Further, the clock control circuit 8 receives a clock stop signal 103 from the diagnostic control circuit 1, a step operation signal 105 from the decoding circuit 2, and an output signal 110 from the flag 7.
When any one of them becomes "1", the clock inhibit signal 111 becomes "1" and is output, and the clock operation is stopped.

診断制御回路1からの診断コマンド101が条件分岐停
止動作のときには、デコード回F#12からの条件分岐
停止動作信号104が“1”になり、記憶回#I3から
マイクロプログラムが1語ずつ読出され、信号線106
を介してマイクロプログラムレジスタ4に送られて格納
される。
When the diagnostic command 101 from the diagnostic control circuit 1 is a conditional branch stop operation, the conditional branch stop operation signal 104 from the decode circuit F#12 becomes "1", and the microprogram is read word by word from the memory circuit #I3. , signal line 106
The data is sent to the microprogram register 4 via the microprogram register 4 and stored therein.

マイクロプログラムレジスタ4に格納されたマイクロプ
ログラムは信号線107を介して図示せぬ情報処理装置
とデコード回路5とに送出される。
The microprogram stored in the microprogram register 4 is sent to an information processing device (not shown) and a decoding circuit 5 via a signal line 107.

デコード回路5ではマイクロプログラムレジスタ4から
送られてきたマイクロプログラムをデコードし、このマ
イクロプログラムが条件分岐であれば、条件分岐信号1
08が“1”となって論理積回路6に出力される。
The decode circuit 5 decodes the microprogram sent from the microprogram register 4, and if this microprogram has a conditional branch, the conditional branch signal 1
08 becomes "1" and is output to the AND circuit 6.

論理積回路6ではデコード回路2からの条件分岐停止動
作信号104が“1″のときに、デコード回路5からの
条件分岐信号108が“1”となると、出力信号109
が“1”となってフラグ7に出力される。
In the AND circuit 6, when the conditional branch stop operation signal 104 from the decode circuit 2 is "1" and the conditional branch signal 108 from the decode circuit 5 becomes "1", an output signal 109 is generated.
becomes "1" and is output to flag 7.

マイクロプログラムレジスタ4からのマイクロプログラ
ムの条件分岐が実行されると、そのクロックと同時に7
ラグ7には論理積回路6からの出力信号109により“
1”がセットされる。
When a conditional branch of the microprogram from microprogram register 4 is executed, 7
The output signal 109 from the AND circuit 6 causes “
1” is set.

フラグ7に“1″がセットされると、フラグ7からの出
力信号110が1′となってクロック制御回路8に出力
され、クロック制御回路8ではフラグ7からの出力信号
110に応答してクロック禁止信号111が1″となっ
て出力され、クロックの動作が停止される。これにより
マイクロプログラムの条件分岐の分岐後の確認を行うこ
とができる。
When the flag 7 is set to "1", the output signal 110 from the flag 7 becomes 1' and is output to the clock control circuit 8, and the clock control circuit 8 outputs the clock in response to the output signal 110 from the flag 7. The prohibition signal 111 becomes 1'' and is output, and the clock operation is stopped. This makes it possible to check the conditional branch of the microprogram after branching.

マイクロプログラムレジスタ4に格納されたマイクロプ
ログラムが条件分岐ではないときには、デコード回路5
から出力される条件分岐信号108が“0”となるので
、論理積回路6からの出力信号109は“0”となり、
フラグ7には“0”がセットされる。
When the microprogram stored in the microprogram register 4 is not a conditional branch, the decoding circuit 5
Since the conditional branch signal 108 output from the AND circuit 6 becomes "0", the output signal 109 from the AND circuit 6 becomes "0",
Flag 7 is set to "0".

クロック制御回路8にはフラグ7にセットされた“0”
が出力信号110として入力されるので、診断制御回路
1からのクロック停止信号103が“1”とならなけれ
ば、クロック制御回路8から出力されるクロック禁止信
号111は“0”に保たれ、マイクロプログラムの実行
処理は続行される。
The clock control circuit 8 has “0” set in the flag 7.
is input as the output signal 110, so unless the clock stop signal 103 from the diagnostic control circuit 1 becomes "1", the clock disable signal 111 output from the clock control circuit 8 is kept at "0", and the micro Program execution processing continues.

診断制御回路1からの診断コマンド101がステップ動
作のときには、デコード回路2からクロック制御回路8
へのステップ動作信号105が“1”   ′となり、
クロック制御回路8では診断制御回路1からのクロック
開始信号102が“1″になることによりクロック禁止
信号111を一旦“0”にするが、デコード回路2から
のステップ動作信号105が“1”であるためにクロッ
クが1回出た後に再びクロック禁止信号111が1”と
なってクロックの動作が停止される。
When the diagnostic command 101 from the diagnostic control circuit 1 is a step operation, the clock control circuit 8 is sent from the decode circuit 2 to the clock control circuit 8.
The step operation signal 105 becomes "1"',
In the clock control circuit 8, when the clock start signal 102 from the diagnostic control circuit 1 becomes "1", the clock inhibit signal 111 is temporarily set to "0", but when the step operation signal 105 from the decoding circuit 2 becomes "1", Therefore, after the clock is output once, the clock inhibit signal 111 becomes 1'' again, and the operation of the clock is stopped.

このように、実行されるマイクロプログラムが条件分岐
であることがデコード回路5により検出されたとき、こ
の条件分岐の実行の次のステップでクロック制御回路8
によりクロックの動作を停止してマイクロプログラムの
実行処理を停止□させるようにすることによって、マイ
クロプログラムの実行パスをトレースする際に条件分岐
部分の分岐確認を1回の診断操作で実行することができ
、診断操作め効率をよくすることができる。
In this way, when the decode circuit 5 detects that the microprogram to be executed is a conditional branch, the clock control circuit 8
By stopping the clock operation and stopping the microprogram execution process, it is possible to check the conditional branch part in one diagnostic operation when tracing the execution path of the microprogram. This can improve the efficiency of diagnostic operations.

i肌Ω皇1 以上説明したように本発明によれば、情報処理装置にお
けるマイクロプログラムの実行処理をトレースする場合
に、このマイクロプログラムにおいて条件分岐が検出さ
れたとき、その条件分岐の実行後にマイクロプログラム
の実行処理を停止するようにすること7によって、マイ
クロプログラムの条件分岐部分の分岐確認を1回の診断
操作で実行することができ、診断操作の効率を向上させ
ることができるという効果がある。
As described above, according to the present invention, when tracing the execution process of a microprogram in an information processing device, when a conditional branch is detected in this microprogram, the microprogram is executed after the execution of the conditional branch. By stopping the program execution process 7, branch confirmation of the conditional branch part of the microprogram can be executed in a single diagnostic operation, which has the effect of improving the efficiency of the diagnostic operation. .

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。 主要部分の符号の説明 1・・・・・・診断制御回路 2.5・・・・・・デコード回路 6・・・・・・論理積回路 7・・・・・・フラグ 8・・・・・・クロック制御回路
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Explanation of symbols of main parts 1...Diagnosis control circuit 2.5...Decoding circuit 6...Logic product circuit 7...Flag 8...・Clock control circuit

Claims (1)

【特許請求の範囲】[Claims] (1)情報処理装置におけるマイクロプログラムの実行
処理をトレースする診断制御装置であって、前記マイク
ロプログラムにおける条件分岐を検出する検出手段と、
前記検出手段により検出された前記条件分岐の実行後に
前記マイクロプログラムの実行処理を停止する停止手段
とを有し、前記停止手段による前記マイクロプログラム
の実行処理の停止により前記条件分岐の分岐確認を行う
ようにしたことを特徴とする診断制御装置。
(1) A diagnostic control device that traces execution processing of a microprogram in an information processing device, the detection unit detecting a conditional branch in the microprogram;
stopping means for stopping the execution processing of the microprogram after execution of the conditional branch detected by the detection means, and checking the branching of the conditional branch by stopping the execution processing of the microprogram by the stopping means. A diagnostic control device characterized by:
JP63016465A 1988-01-27 1988-01-27 Diagnosis controller Pending JPH01191948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63016465A JPH01191948A (en) 1988-01-27 1988-01-27 Diagnosis controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63016465A JPH01191948A (en) 1988-01-27 1988-01-27 Diagnosis controller

Publications (1)

Publication Number Publication Date
JPH01191948A true JPH01191948A (en) 1989-08-02

Family

ID=11917004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63016465A Pending JPH01191948A (en) 1988-01-27 1988-01-27 Diagnosis controller

Country Status (1)

Country Link
JP (1) JPH01191948A (en)

Similar Documents

Publication Publication Date Title
KR900002604B1 (en) An error recovery apparatus and method in an information processing apparatus having a controller storage device.
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
EP0497485A2 (en) Computer for implementing two-operand instructions
US3618042A (en) Error detection and instruction reexecution device in a data-processing apparatus
JPH01191948A (en) Diagnosis controller
JP2536726B2 (en) Microprocessor
JP2859048B2 (en) Microcomputer
JPH02127731A (en) Bypass check system for arithmetic register
JPS6278630A (en) information processing equipment
JPH064345A (en) History information storage system
JPS5829056A (en) Control storage device
JPS6083149A (en) Computer
JPS59744A (en) Data processor
JPS61240342A (en) Microprogram controller
JPH02103643A (en) Interruption generation circuit for debug
JPS5936853A (en) Operation processor
JPH0222414B2 (en)
JPS63245737A (en) Microcomputer
JPH0298746A (en) System for evading failure of microprocessor
JPH03168845A (en) Instruction execution control system
JPS60193047A (en) Mode checking system of microprogram
JPH03164945A (en) Data processor
JPH064412A (en) Local memory inspecting/correcting circuit
JPH0452734A (en) Exception detecting circuit for general-purpose register
JPS63111547A (en) Memory control system