JPS60198646A - Error producing system of control storage - Google Patents

Error producing system of control storage

Info

Publication number
JPS60198646A
JPS60198646A JP59054874A JP5487484A JPS60198646A JP S60198646 A JPS60198646 A JP S60198646A JP 59054874 A JP59054874 A JP 59054874A JP 5487484 A JP5487484 A JP 5487484A JP S60198646 A JPS60198646 A JP S60198646A
Authority
JP
Japan
Prior art keywords
address
error
control storage
data
counter
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
JP59054874A
Other languages
Japanese (ja)
Inventor
Sachihiro Iga
祥博 伊賀
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59054874A priority Critical patent/JPS60198646A/en
Publication of JPS60198646A publication Critical patent/JPS60198646A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Abstract

PURPOSE:To test errors of all CS (control storage) addresses by producing an error at an optional area of a microprogram forming an instruction with no dependence on the data to be processed. CONSTITUTION:The address information which is executed earlier by an amount equivalent to a prescribed number of addresses than a CS address where an error should be produced after the operation of a data processor is stopped is set to a CS address pointer 6. While the prescribed count number is set to a CS counter 8. Then the data processor compares the CS address with the pointer 6 through a comparator 7. When the coincidence is obtained from this comparison, the comparator 7 stores the coincident state by an internal latch and performs no address comparison any more. The comparator 7 indicates a subtracting action of the counter 8. Then the data value given from a register 4 is inverted to produce an error when the result of subtraction is equal to ''0''. Thus an error test is possible.

Description

【発明の詳細な説明】 (イ)発明の技術分野 本発明は、マイクロプログラム制御のデータ処理装置に
関するもので、特にコントロール・ストレージ(C3)
に格納されているマイクロプログラムにエラーを発生さ
せることに関するものである。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical field of the invention The present invention relates to a microprogram-controlled data processing device, and particularly to a control storage (C3)
It is concerned with causing an error in a microprogram stored in a computer.

(ロ)従来技術と問題点 従来は、マイクロプログラムエラーを発生させる場合、
データ処理装置のC3にローディングするマイクロプロ
グラムをあらかじめこわして書きこみ、それを読み出し
たときにエラーを発生していたが、マイクロプログラム
制御のデータ処理装置では処理するデータの種類などに
よってマイクロプログラムのアドレスが変わることがあ
るため、あらかじめこわしておいたマイクロプログラム
が実際に使用されてエラーが発生するとは限らないと言
う欠点があった。
(b) Conventional technology and problems Conventionally, when a microprogram error occurs,
The microprogram to be loaded into the C3 of the data processing device was destroyed and written in advance, and an error occurred when it was read out. However, with microprogram-controlled data processing devices, the address of the microprogram depends on the type of data to be processed. This had the disadvantage that it was not guaranteed that a microprogram that had been corrupted in advance would actually be used and cause an error.

(ハ)発明の目的 本発明の目的は、データ処理装置の状態に依存せずC8
にエラーを発生させる装置を提供することにある。
(c) Purpose of the Invention The purpose of the present invention is to
The purpose of this invention is to provide a device that generates an error.

− (ニ)発明の構成 上記目的を達成するために本発明は、マイクロプログラ
ムを格納するコントロール・ストレージを有し、マイク
ロプログラム制御により動作するデータ処理装置におい
て、エラーを発生させるべきコントロール・ストレージ
アドレスより所定アドレス分だけ先に実行されるアドレ
スポイントについてのアドレス情報を保持するアドレス
ポインタ手段と、上記所定アドレス分のカウント動作を
行なうために所定の計数値が初期設定されるカウンタ手
段と、上記アドレスポインタ手段に保持されているアド
レス情報と現に実行されるべきコントロール・ストレー
ジアドレスとを比較するアドレス比較手段と、上記アド
レス比較手段によりアドレス一致が検出された時点から
上記カウンタ手段の値について計数動作を行なう計数手
段と、上記−計数手段により上記カウンタ手段の値が所
定の値になったとき上記コントロール・ストレージから
の読出しデータを反転させるデータ反転手段とをそなえ
、上記コントロール・ストレージからの読出しデータに
ついてエラーを発生せしめるように構成したことを特徴
とする。
- (d) Structure of the Invention In order to achieve the above object, the present invention provides a control storage address at which an error should occur in a data processing device that has a control storage that stores a microprogram and operates under the control of the microprogram. address pointer means for holding address information for an address point to be executed a predetermined number of addresses earlier; counter means for initializing a predetermined count value in order to perform a counting operation for the predetermined addresses; an address comparing means for comparing the address information held in the pointer means with a control storage address to be actually executed; and a counting operation for the value of the counter means from the time when an address match is detected by the address comparing means. and data inversion means for inverting data read from the control storage when the value of the counter means reaches a predetermined value by the counting means, It is characterized by being configured to cause an error to occur.

(ホ)発明の実施例 以下、図面により本発明を説明する。(E) Examples of the invention The present invention will be explained below with reference to the drawings.

図は本発明による1実施例のデータ処理装置の要部ブロ
ック図であり、図中、1は命令デコーダ。
The figure is a block diagram of main parts of a data processing device according to an embodiment of the present invention, and in the figure, 1 is an instruction decoder.

2はCSアドレスレジスタ、3はC3,4はCS読み出
しレジスタ、5はCSデータ反転回路、6はCSアドレ
スポインタ、7はCSアドレス比較回路、8はCSカウ
ンタ、9は減算回路である。
2 is a CS address register, 3 is a C3, 4 is a CS read register, 5 is a CS data inversion circuit, 6 is a CS address pointer, 7 is a CS address comparison circuit, 8 is a CS counter, and 9 is a subtraction circuit.

実施例の動作は以下の通りである。The operation of the embodiment is as follows.

まず、データ処理装置を停止させた後、または診断命令
を用いることにより、エラーを発生させるべきコントロ
ール・ストレージ(C3)アドレスより所定アドレス分
だけ先に実行されるアドレスポイントについてのアドレ
ス情報をCSアドレスポインタ6にセットするとともに
、所定アドレス分のカウント動作を行なうための所定の
計数値をCSカウンタ8にセットする。
First, after stopping the data processing device or by using a diagnostic instruction, the address information about the address point that is executed a predetermined number of addresses ahead of the control storage (C3) address that should cause the error is transferred to the CS address. At the same time, a predetermined count value for counting a predetermined address is set in the CS counter 8.

次に、データ処理装置を動作させる。データ処理装置で
は図示しない主記憶装置等から読出した命令を命令デコ
ーダ1にて解析し、CSアドレスをCSアドレスレジス
タ2ヘセントする。同時に、このCSアドレスとCSア
ドレスポインタ6の内容とをCSアドレス比較回路7に
て比較する。比較の結果、一致しなければ、命令デコー
ダ1による命令解析動作、CSアドレスレジスタ2への
CSアドレスセット動作、CSアドレスとCSアドレス
ポインタ6の内容との比較動作が繰返し行なわれる。こ
のとき、言うまでもなく、C33から順に、マイクロプ
ログラム命令がC8読み出しレジスタ4に読み出されて
いき、所要の動作が実行されていく。
Next, the data processing device is operated. In the data processing device, an instruction decoder 1 analyzes an instruction read from a main storage device (not shown), etc., and stores a CS address in a CS address register 2. At the same time, this CS address and the contents of the CS address pointer 6 are compared in a CS address comparison circuit 7. As a result of the comparison, if they do not match, the instruction decoder 1 performs an instruction analysis operation, sets the CS address in the CS address register 2, and compares the CS address with the contents of the CS address pointer 6, which are repeated. At this time, needless to say, the microprogram instructions are sequentially read out to the C8 read register 4 starting from C33, and the required operations are executed.

次に、ある時点で、命令デコーダ1からのCSアドレス
と、CSアドレスポインタ6の内容とが一致すると、C
Sアドレス比較回路7は図示しない内部ラッチにより当
該一致状態を記憶しておくとともに、以降アドレス比較
は行なわない。CSアドレス比較回路7は、CSアドレ
ス一致を検出した後、減算回路9に対して、CSカウン
タ8の内容の減算動作を指示する。
Next, at a certain point, when the CS address from the instruction decoder 1 and the contents of the CS address pointer 6 match, the C
The S address comparison circuit 7 stores the matching state using an internal latch (not shown) and does not perform address comparison thereafter. After detecting a CS address match, the CS address comparison circuit 7 instructs the subtraction circuit 9 to subtract the contents of the CS counter 8.

これにより、減算回路9はC33の1サイクル動作毎に
CSカウンタ8の内容について一1減算動作を行なって
いく。そして、減算結果が“0”でなければ、命令デコ
ーダ1による命令解析動作。
As a result, the subtraction circuit 9 performs a 11 subtraction operation on the contents of the CS counter 8 every cycle of C33. If the subtraction result is not "0", the instruction decoder 1 performs an instruction analysis operation.

CSアドレスレジスタ2へのCSアドレスのセット動作
、C33からのデータ取り出し動作が繰返し行なわれる
The operation of setting the CS address in the CS address register 2 and the operation of taking out data from C33 are repeated.

このようにして、減算動作を進めていった結果、減算結
果が“0”になったとき、減算回路9は、CSデータ反
転回路5にデータ反転指示信号を送出し、C8読み出し
レジスタ4からのデータの値を反転させる。これ以降は
減算回路9の動作は停止する。
As a result of proceeding with the subtraction operation in this way, when the subtraction result becomes "0", the subtraction circuit 9 sends a data inversion instruction signal to the CS data inversion circuit 5, and the data is read out from the C8 read register 4. Inverts the value of data. After this, the operation of the subtraction circuit 9 stops.

この結果、C8からの読出しデータにエラーが生じるこ
とになり、各種のエラーテストが可能となる。
As a result, an error will occur in the data read from C8, making it possible to perform various error tests.

(へ)発明の効果 本発明によれば、命令を構成しているマイクロプログラ
ムの任意の箇所に、処理するデータに依存せずエラーを
発生させることができ、すべてのCSアドレスのエラー
をテストすることが可能になる。
(F) Effects of the Invention According to the present invention, it is possible to generate an error in any part of a microprogram that constitutes an instruction, independent of the data to be processed, and to test for errors in all CS addresses. becomes possible.

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

図は本発明によるl実施例のデータ処理装置の要部ブロ
ック図であり、図中、1は命令デコーダ。 2はCSアドレスレジスタ、3はC3,4はCS読み出
しレジスタ、5はCSデータ反転回路、6はCSアドレ
スポインタ、7はCSアドレス比較回路、8はCSカウ
ンタ、9は減算回路である。
The figure is a block diagram of main parts of a data processing device according to an embodiment of the present invention, and in the figure, 1 is an instruction decoder. 2 is a CS address register, 3 is a C3, 4 is a CS read register, 5 is a CS data inversion circuit, 6 is a CS address pointer, 7 is a CS address comparison circuit, 8 is a CS counter, and 9 is a subtraction circuit.

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムを格納するコントロール・ストレー
ジを有し、マイクロプログラム制御により動作するデー
タ処理装置において、エラーを発生させるべきコントロ
ール・ストレージアドレスより所定アドレス分だけ先に
実行されるアドレスポイントについてのアドレス情報を
保持するアドレスポインタ手段と、上記所定アドレス分
のカウント動作を行なうために所定の計数値が初期設定
されるカウンタ手段と、上記アドレスポインタ手段に保
持されているアドレス情報と現に実行されるべきコント
ロール・ストレージアドレスとを比較するアドレス比較
手段と、上記アドレス比較手段によりアドレス一致が検
出された時点から上記カウンタ手段の値について計数動
作を行なう手段と、上記計数手段により上記カウンタ手
段の値が所定の値になったとき上記コントロール・スト
レージから9読出しデータを反転させるデータ反転手段
とをそなえ、上記コントロール・ストレージからの読出
しデータについてエラーを発生せしめるように構成した
ことを特徴とするコントロール・ストレージのエラー発
生方式。
In a data processing device that has a control storage that stores a microprogram and operates under microprogram control, it holds address information about an address point that is executed a predetermined number of addresses before the control storage address that should cause an error. a counter means to which a predetermined count value is initially set in order to perform a counting operation for the predetermined addresses; and address information held in the address pointer means and control storage to be currently executed. address comparison means for comparing the address with the address; means for performing a counting operation on the value of the counter means from the time point when address matching is detected by the address comparison means; 9. An error generation method for a control storage, comprising: data inversion means for inverting the data read from the control storage when the error occurs, and generating an error in the data read from the control storage. .
JP59054874A 1984-03-22 1984-03-22 Error producing system of control storage Pending JPS60198646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59054874A JPS60198646A (en) 1984-03-22 1984-03-22 Error producing system of control storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59054874A JPS60198646A (en) 1984-03-22 1984-03-22 Error producing system of control storage

Publications (1)

Publication Number Publication Date
JPS60198646A true JPS60198646A (en) 1985-10-08

Family

ID=12982735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59054874A Pending JPS60198646A (en) 1984-03-22 1984-03-22 Error producing system of control storage

Country Status (1)

Country Link
JP (1) JPS60198646A (en)

Similar Documents

Publication Publication Date Title
US4423508A (en) Logic tracing apparatus
JPS5886648A (en) Tracing device
JPS60198646A (en) Error producing system of control storage
JPS59183443A (en) Debug device
JPH0448257B2 (en)
JPS63113743A (en) Debugging system for computer hardware
JPS5824951A (en) Error detection system for microprogram
JPS607563A (en) Data processor
JPH0314148A (en) Program breakdown detecting device
JPS63292244A (en) Pseudo fault generating system
JPH0449433A (en) Debugging mechanism for firmware
JPS63245737A (en) Microcomputer
JPS5936853A (en) Operation processor
JPS6270947A (en) Control system for debug interruption
JPS6123248A (en) Test system of data processor
JPS638949A (en) Program inspection device
JPS61141046A (en) System for controlling debug interruption
JPS63300330A (en) Debugging method for firmware
JPH01166144A (en) Debugging system for firmware program
JPS6236578B2 (en)
JPH02120940A (en) Debugging supporting circuit
JPH10320232A (en) Microprogram debugging device
JPH04367902A (en) Programmable controller
JPS6257035A (en) Microprogram processor
JPH01129332A (en) System for detecting program traveling condition