JPS6332631A - Error detecting system for data processor - Google Patents

Error detecting system for data processor

Info

Publication number
JPS6332631A
JPS6332631A JP17563386A JP17563386A JPS6332631A JP S6332631 A JPS6332631 A JP S6332631A JP 17563386 A JP17563386 A JP 17563386A JP 17563386 A JP17563386 A JP 17563386A JP S6332631 A JPS6332631 A JP S6332631A
Authority
JP
Japan
Prior art keywords
microprogram
error
address
instruction
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
JP17563386A
Other languages
Japanese (ja)
Inventor
Hiroaki Fukumaru
広昭 福丸
Takayuki Morioka
隆行 森岡
Soichi Takatani
高谷 壮一
Masashi Suenaga
雅士 末永
Shinichiro Yamaguchi
伸一朗 山口
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP17563386A priority Critical patent/JPS6332631A/en
Publication of JPS6332631A publication Critical patent/JPS6332631A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To add microinstructions with no change of hardware and to detect an undefined instruction with addition of a small quantity of hardware, by using an error detecting circuit consisting of plural AND gates, etc. CONSTITUTION:In a branch mode to a macroinstruction microprogram module, an address difference from the head address of a microinstruction is supplied from a signal line 12. Thus the signals equal logically to '1' are outputted to signal lines 15 and 19. Then an undefined instruction error is detected by an AND gate 7 and an error processing microinstruction is started. While the signals equal logically to '1' are outputted to signal lines 15 and 16 when branching is applied to such an address where a JIN bit 41 showing the head of a microprogram is equal logically to '0'. Then a jump error is detected via an AND gate 6. In such a way, the microinstructions can be added with no change of hardware and the undefined instruction errors and the program jump errors can be detected by using those gates 6 and 7, etc. serving as error detecting circuits.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理装置の未定義命令及びマイクロプ
ログラムの該ジャンプエラー検出に係り、特に制御記憶
を有効に利用するのに好適なエラー検出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to detection of jump errors in undefined instructions and microprograms in data processing devices, and particularly to error detection suitable for effectively utilizing control memory. Regarding the method.

〔従来の技術〕[Conventional technology]

従来の装置は、特開昭56−108149等に記載のよ
うに命令デコードユニットにROMを用い、未定義命令
エラー検出用に未定義命令エラー処理を行うマイクロプ
ログラムの先頭アドレスをエントリーしていた。しかし
、ROMが使用できない場合はハードワイヤードロジッ
クを組まねばならず、この場合には、先頭アドレスの変
更や、命令の追加の場合、ハードウェアの変更が必要で
あった。
Conventional devices use a ROM as an instruction decoding unit, as described in Japanese Patent Laid-Open No. 56-108149, and enter the start address of a microprogram that performs undefined instruction error processing to detect undefined instruction errors. However, if ROM cannot be used, hard-wired logic must be assembled, and in this case, changing the start address or adding instructions requires changing the hardware.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、ROMを使用しない場合や、不確定多
数のマイクロ命令を追加する場合などに対しては考慮が
されておらず、ROMを使用できない場合には、命令デ
コード部で未定義命令の検出を行おうとすると多くのハ
ードウェアが必要となり、命令を追加した場合には大幅
なハードウエアの改造が発生するといった問題があった
The above-mentioned conventional technology does not take into consideration cases where ROM is not used or cases where an undefined number of microinstructions are added.If ROM cannot be used, undefined instructions are Attempting to perform detection requires a large amount of hardware, and adding instructions requires significant hardware modification.

本発明の目的は、ハードウェアの変更無しにマイクロ゛
命令の追加を可能にし、未定義命令の検出とともにマイ
クロプログラムの該ジャンプエラーの検出を少ないハー
ドウェアの追加により実現することにある。
An object of the present invention is to make it possible to add microinstructions without changing hardware, and to detect undefined instructions and jump errors in microprograms by adding a small amount of hardware.

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

上記目的は、マイクロプログラムにマイクロ命令あ先頭
を示すビットと、命令実行ユニットの制御部にマイクロ
プログラムの分岐、命令分岐時に該ビットを参照し未定
義エラー及びマイクロプログラムの該ジャンプエラーを
検出する手段を持たせることにより達成される。
The above purpose is to provide a bit indicating the beginning of a microinstruction in a microprogram, and a means for detecting undefined errors and jump errors in the microprogram by referring to the bit at the time of microprogram branching and instruction branching in the control unit of the instruction execution unit. This is achieved by having

〔作用〕[Effect]

マイクロプログラムの該ジャンプ検出回路及び未定義命
令エラー検出回路はそ九ぞれ制御記憶に用けられたマイ
クロプログラムの先頭を示すビットとマイクロプログラ
ムの分岐、マクロ命令マイクロプログラムモジュールへ
の分岐の情報のANDを取っておりそれぞれのAND状
件が成立した時にマイクロプログラムの該ジャンプエラ
ー又は未定義命令エラーが検出される。
The jump detection circuit and undefined instruction error detection circuit of the microprogram respectively detect the bit indicating the beginning of the microprogram used for control storage, the branch of the microprogram, and the information of branching to the macro instruction microprogram module. The jump error or undefined instruction error of the microprogram is detected when each AND condition is established.

〔実施例〕〔Example〕

以下、本発明の一実施例を説明する。第2図は、CPU
の内部構成図である。CPUはその構成要素として、内
部レジスタ群208.プログラムカウンタ209.AL
U (算術論理演算ユニット)205、ALU205と
他のCPU構成要素間を結ぶ内部バス210.主記憶か
ら読み出したデータを一時ホールドするROR(読出デ
ータレジスタ)201.読み出されたデータを処理しマ
イクロ命令の先頭アドレスを生成する命令デコード部2
03、演算を行ったデータを主記憶に書き込む為一時デ
ータをホールドするWOR(書込データレジスタ)20
6.主記憶アクセス時の主記憶のアドレスをホールドす
るMAR(メモリアドレスレジスタ)207を有する。
An embodiment of the present invention will be described below. Figure 2 shows the CPU
FIG. The CPU has an internal register group 208 . Program counter 209. AL
U (arithmetic logic unit) 205, an internal bus 210 that connects the ALU 205 and other CPU components. ROR (read data register) 201 that temporarily holds data read from main memory. Instruction decoding unit 2 that processes the read data and generates the start address of the microinstruction.
03. WOR (write data register) 20 that holds temporary data in order to write the calculated data to the main memory
6. It has a MAR (memory address register) 207 that holds the address of the main memory when accessing the main memory.

CPUはプログラム実行待プログラムカウンタ209の
内容をMAR207にセットし、MAR207のアドレ
スで主記憶に対しアクセスを行う、主記憶にアクセスし
読み出されてデー・夕はROR201に取込まれる。
The CPU sets the contents of the program waiting to be executed program counter 209 in the MAR 207 and accesses the main memory using the address of the MAR 207.

RDRに取込まれたデータは、命令実行に際し命令デユ
ーダ203により、命令に対応した内部処理手順のマイ
クロプログラムの先頭アドレスを生成し、制御部204
にマイクロプログラムの先頭アドレスを出力する。この
時デコーダ203では未定義命令の検出は行われずRO
Rのデータに対応したマイクロプログラムの先頭アドレ
スが出力される。制御部203はマイクロプログラムの
先頭アドレスから始まるマイクロプログラムにて記述さ
れた処理手順により演算処理及びバスの制御運行う6但
しデコーダが生成したアドレスに対応した制御部内のマ
イクロ命令が無い場合には未定義命令エラーを制御内の
エラー検出回路が検出し一連の処理を中断しエラー処理
用マイクロプログラムを起動する。また、マイクロプロ
グラム実行中にマイクロプログラム該ジャンプエラーが
発生した場合にも制御部内のエラー検出回路がエラーを
検出し一連の処理をストップする。
The data taken into the RDR is used by the instruction duder 203 to generate the start address of the microprogram for the internal processing procedure corresponding to the instruction when the instruction is executed, and then sent to the control unit 204.
Outputs the start address of the microprogram. At this time, the decoder 203 does not detect an undefined instruction and the RO
The start address of the microprogram corresponding to the data in R is output. The control unit 203 performs arithmetic processing and bus control according to the processing procedure described in the microprogram starting from the first address of the microprogram.6However, if there is no microinstruction in the control unit that corresponds to the address generated by the decoder, no An error detection circuit within the control detects a definition instruction error, interrupts a series of processes, and activates an error handling microprogram. Further, even if a jump error occurs in the microprogram during execution of the microprogram, the error detection circuit in the control section detects the error and stops the series of processing.

制御部の構成を第113!Iに示す、制御部は、マイク
ロプログラムのアドレスセレクタ1.セレクトされたア
ドレスを一時ホールドする制御記憶アドレスレジスタC
3AR2,一部又は全てが書換え可能な制御記憶3.制
御記憶により読み出されたマイクロ命令を一時ホールド
するマイクロ命令レジスタMIR4,マイクロ命令デコ
ーダ5.加算器lNCl0e!−5−検出回路6,7.
9より構成される。MIR4は、論理的に“工”でマイ
クロ命令の先頭アドレスを表し、論理的に“0”それ以
外のアドレスを示すJINビット41及びマイクロ命令
の分岐先アドレスを示すフィールド43、マイクロプロ
グラムアドレス制御フィールド44.演算・処理フィー
ルド42より成る。信号線11はMIR4より出力され
た分岐アドレス。
The configuration of the control unit is 113th! The control unit shown in I is a microprogram address selector 1. Control storage address register C that temporarily holds the selected address
3AR2, partially or fully rewritable control memory 3. A microinstruction register MIR4, which temporarily holds microinstructions read out from the control memory, and a microinstruction decoder 5. Adder lNCl0e! -5-detection circuits 6, 7.
Consists of 9. MIR4 is logically "engine" and represents the start address of the microinstruction, logically "0" represents the other address, JIN bit 41, field 43 that represents the branch destination address of the microinstruction, and microprogram address control field. 44. It consists of an arithmetic/processing field 42. Signal line 11 is the branch address output from MIR4.

信号、1114は、工NC10で現在実行中のマイクロ
命令のアドレスを+1したアドレス信号線13はエラー
処理マイクロ命令の先頭アドレス、信号線21はマイク
ロ命令の先頭アドレス、現在実行中のマイクロ命令のア
ドレスの次のアドレス、マイクロ命令の分岐先のアドレ
スのいずれかをセレクトするセレクト信号、信号線22
は、エラー処理マイクロ命令の先頭アドレスをセレクト
するセレクト信号で、信号線19に命令分岐時に論理的
に・・1・・の信号が出力され、信号線16には命令分
岐以外の分岐の時論理的にlj I IFの信号が出力
される。また信号線15はJINビット41の状態を出
力する信号線であり信号線17.20はエラー検出回路
の出力信号線である・ 以上のような構成を持つ制御部においてマクロ、、)令
マイクロプログラムモジュールへの分岐時に、−7・イ
クロ命令の先頭アドレスではないアドレスが信号線12
より入力されると信号線15及び19に論理的にHI 
IIの信号が出力され未定義命令検出回路7により未定
義命令エラーが検出されエラー処理マイクロ命令が起動
される。またマクロ命令のマイクロプログラムモジュー
ルへの分岐以外の分岐時に分岐してはならないマイクロ
プログラムのアドレス、すなわちJINビットが論理的
に0”となっているようなアドレスに分岐した場合には
、信号線15及び信号、1116に論理的に111 I
Iの信号が出力され、マイクロプログラム該ジャンプエ
ラーが検出される。
The signal 1114 is the address of the microinstruction currently being executed in the engineering NC 10 plus 1. The signal line 13 is the start address of the error processing microinstruction, and the signal line 21 is the start address of the microinstruction, the address of the microinstruction currently being executed. A select signal that selects either the next address or the branch destination address of the microinstruction, signal line 22
is a select signal that selects the start address of the error processing microinstruction, and a logical signal of 1 is output to the signal line 19 at the time of an instruction branch, and a logical signal of 1 is output to the signal line 16 at the time of a branch other than an instruction branch. The lj I IF signal is output. Also, the signal line 15 is a signal line that outputs the state of the JIN bit 41, and the signal lines 17 and 20 are output signal lines of the error detection circuit.In the control section having the above configuration, the macro, ) command microprogram When branching to a module, an address that is not the start address of the -7 microinstruction is connected to signal line 12.
When input from
The signal II is output, an undefined instruction error is detected by the undefined instruction detection circuit 7, and an error processing microinstruction is activated. In addition, if a branch is made to an address of a microprogram that should not be branched to when a macro instruction branches to a microprogram module, that is, an address where the JIN bit is logically 0'', the signal line 15 and signal, 1116 logically 111 I
The I signal is output, and the microprogram jump error is detected.

本実施例によれば、マイクロプログラム誤ジャンプエラ
ーと未定義命令エラーを検出するためにマイクロプログ
ラム中にエラー検出のために1ビツトを設け、ANDゲ
ートを2ケ追加することにより制御部で未定義命令エラ
ー及びマイクロプログラム誤ジャンプエラーの検出を可
能とし、制御記憶の有効利用を実現している。
According to this embodiment, in order to detect microprogram erroneous jump errors and undefined instruction errors, one bit is provided in the microprogram for error detection, and two AND gates are added to detect undefined instructions in the control section. It enables detection of instruction errors and microprogram erroneous jump errors, and realizes effective use of control memory.

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

本発明によれば、未定義命令の検出を制御記憶で行うた
め、命令体系の拡張・変更に際して未定義命令検出論理
の変更を必要とせず、ハードウェアの変更なしに命令体
系の拡張・変更ができるので多様な用途に最適な命令体
系を備えた処理装置を同一のハードウェアにて提供する
ことが可能であり、また、未定義命令検出論理は未定義
命令検出を命令デコード部にて行う場合繁雑なハードワ
イヤードロジックを必要とし命令体系が複雑であればあ
る程所要ゲート数が増加するのに対し、制御記憶にて行
う場合制御記憶の語数×1ビットのメモリとたかだか数
個のICで構成することができるので、ハードウェアを
小型かつ安価にすることができるという効果がある。
According to the present invention, since the detection of undefined instructions is performed using control memory, there is no need to change the undefined instruction detection logic when extending or changing the instruction system, and the instruction system can be expanded or changed without changing the hardware. Therefore, it is possible to provide processing units with the optimal instruction system for various uses using the same hardware.In addition, the undefined instruction detection logic can be used to detect undefined instructions in the instruction decoding section. Complex hard-wired logic is required, and the more complex the instruction system, the greater the number of gates required. However, when using control memory, it consists of a memory of the number of control memory words x 1 bit and at most a few ICs. This has the effect of making the hardware smaller and cheaper.

さらに拡張命令使用されない場合にその命令のマイクロ
プログラムの先頭用空間をJINビットをII OIT
にすることにより他の命令のマイクロプログラムに流用
できるので制御記憶の拡張命令用空間の容量を小さくで
きるという効果がある。
Furthermore, if an extended instruction is not used, the space for the beginning of the microprogram for that instruction is set to the JIN bit.
By doing so, it can be used for microprograms with other instructions, which has the effect of reducing the capacity of the extended instruction space in the control memory.

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

第1図は本発明の実施例であるデータ処理装置の制御部
の内部構成図、第2図はCPUの内部構成図を示す。 3・・・制御記憶、4・・・マイクロ命令レジスタ、4
1・・・マイクロ命令の先頭であることを示すJINビ
ット、6,7・・・ANDゲート、15・・・マイクロ
命令の先頭でないことを示す信号、16・・・命令分岐
以外の分岐を示す信号、19・・・命令分岐を示す信号
、17・・・マイクロプログラム誤ジャンプエラ−1検
出信号、20・・・未定義命令検出信号。
FIG. 1 shows an internal configuration diagram of a control section of a data processing apparatus according to an embodiment of the present invention, and FIG. 2 shows an internal configuration diagram of a CPU. 3... Control memory, 4... Micro instruction register, 4
1... JIN bit indicating that it is the beginning of a microinstruction, 6, 7... AND gate, 15... A signal indicating that it is not the beginning of a microinstruction, 16... Indicating a branch other than an instruction branch. Signal, 19... Signal indicating instruction branch, 17... Microprogram erroneous jump error-1 detection signal, 20... Undefined instruction detection signal.

Claims (1)

【特許請求の範囲】[Claims] 1、マクロ命令を実行し、マイクロプログラムにより制
御されるデータ処理装置において、マイクロプログラム
中にマイクロ命令の先頭か否かを示すビットを有し、マ
イクロ命令の分岐を検出する第1の手段と、第1の手段
により分岐が検出されたとき、該ビットとマイクロ命令
の分岐の種別を参照し、マクロ命令マイクロプログラム
モジユールへの分岐以外の場合マイクロプログラムの該
ジャンプエラーを検出する第2の手段と、分岐がマクロ
命令マイクロプログラムモジユールへの分岐の場合、該
ビットを参照することにより未定義マクロ命令を検出す
る第3の手段を設けたことを特徴とするデータ処理装置
のエラー検出方式。
1. In a data processing device that executes a macroinstruction and is controlled by a microprogram, a first means having a bit in the microprogram indicating whether or not it is the beginning of the microinstruction and detecting a branch of the microinstruction; When a branch is detected by the first means, a second means refers to the bit and the branch type of the microinstruction, and detects the jump error of the microprogram if the branch is other than a branch to a macroinstruction microprogram module. and a third means for detecting an undefined macro instruction by referring to the bit when the branch is a branch to a macro instruction microprogram module.
JP17563386A 1986-07-28 1986-07-28 Error detecting system for data processor Pending JPS6332631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17563386A JPS6332631A (en) 1986-07-28 1986-07-28 Error detecting system for data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17563386A JPS6332631A (en) 1986-07-28 1986-07-28 Error detecting system for data processor

Publications (1)

Publication Number Publication Date
JPS6332631A true JPS6332631A (en) 1988-02-12

Family

ID=15999495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17563386A Pending JPS6332631A (en) 1986-07-28 1986-07-28 Error detecting system for data processor

Country Status (1)

Country Link
JP (1) JPS6332631A (en)

Similar Documents

Publication Publication Date Title
EP0313097B1 (en) Microcomputer system including master processor and slave processor
US4222103A (en) Real time capture registers for data processor
JPH0430053B2 (en)
JPH0193837A (en) Microprocessor for debug
JPH031699B2 (en)
US5497459A (en) System for testing instruction queue circuit and central processing unit having the system
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
EP0385136B1 (en) Microprocessor cooperating with a coprocessor
US5586336A (en) Microcomputer capable of monitoring internal resources from external
JP2798121B2 (en) Data processing device
JPS6332631A (en) Error detecting system for data processor
US4991130A (en) Normalization control system for floating point arithmetic operation
JPH02123442A (en) Accelerated memory
JPH03271829A (en) Information processor
US5557772A (en) Data processing apparatus including a register storing a parameter and a microinstruction execution arrangement including a correction arrangement for causing a first value of the parameter to be change to a second, correct value
JPS60193046A (en) Detecting system for instruction exception
JPH09167117A (en) Microcomputer and real time system using the microcomputer
SU1151961A1 (en) Microprogram control device
JPS6052449B2 (en) Interrupt processing method
JPH05250161A (en) Microcomputer device
JPH03280128A (en) Microprogram controller
JPS61161560A (en) Memory device
JPS59178547A (en) Instruction retry system
JPH02183332A (en) Programmed control system
JPH0298746A (en) System for evading failure of microprocessor