JP2503980B2 - Memory diagnostic circuit - Google Patents

Memory diagnostic circuit

Info

Publication number
JP2503980B2
JP2503980B2 JP61152997A JP15299786A JP2503980B2 JP 2503980 B2 JP2503980 B2 JP 2503980B2 JP 61152997 A JP61152997 A JP 61152997A JP 15299786 A JP15299786 A JP 15299786A JP 2503980 B2 JP2503980 B2 JP 2503980B2
Authority
JP
Japan
Prior art keywords
read
memory
address
mode
maximum address
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.)
Expired - Lifetime
Application number
JP61152997A
Other languages
Japanese (ja)
Other versions
JPS638956A (en
Inventor
秀憲 谷口
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61152997A priority Critical patent/JP2503980B2/en
Publication of JPS638956A publication Critical patent/JPS638956A/en
Application granted granted Critical
Publication of JP2503980B2 publication Critical patent/JP2503980B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、情報処理装置内の読出し専用メモリ、特に
マイクロプログラム制御装置の読出し専用メモリの診断
に適したメモリ診断回路に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory diagnostic circuit suitable for diagnosing a read-only memory in an information processing device, particularly a read-only memory of a microprogram controller.

従来の技術 マイクロプログラム制御装置では、この読出し専用メ
モリを診断するための一手法として、チェックサムと呼
ばれる手法が知られている。
2. Description of the Related Art In a microprogram controller, a method called checksum is known as one method for diagnosing this read-only memory.

すなわち、読出し専用メモリに格納されているマイク
ロプログラムが1ワードずつデータとして読出されなが
ら次々に演算されてゆき、この最終的な演算値が所定の
値になるかどうかか検査される。
That is, the microprogram stored in the read-only memory is read out as data one word at a time and is successively operated, and it is checked whether or not the final operation value becomes a predetermined value.

発明が解決しようとする問題点 上述した従来の診断手法では、読出し専用メモリの診
断を実行するマイクロプログラムの部分に異常が発生す
ると、他の部分に異常がなくても診断が正しく行われな
くなるという問題がある。
Problems to be Solved by the Invention In the above-described conventional diagnosis method, if an abnormality occurs in a portion of a microprogram that executes the diagnosis of the read-only memory, the diagnosis cannot be performed correctly even if there is no abnormality in other portions. There's a problem.

また、マイクロプログラムに診断部分が含まれるた
め、読出し専用メモリの容量がそのぶん増大するという
問題もある。
In addition, since the microprogram includes a diagnostic portion, there is a problem that the capacity of the read-only memory increases accordingly.

発明の構成 問題点を解決するための手段 上記従来技術の問題点を解決する本発明のメモリ診断
回路は、リセット信号の入力時に読出し専用メモリに対
してその最小アドレスからその最大アドレスまでのアド
レスを順次に発生するアドレスカウンタが前記最大アド
レスを発生したことを検出する最大アドレス検出手段
と、 前記リセット信号の入力時に診断モードの選択指令
し、前記最大アドレス検出手段において前記最大アドレ
スが検出された以降は診断モードに代えて通常モードの
選択を指令するモード切替え手段と、 診断モード時には演算結果を格納するレジスタとし
て、通常モード時には前記読出し専用メモリから読出さ
れた命令を保持する命令レジスタとして使用され、且
つ、前記リセット信号の入力により初期状態にクリアさ
れるバッファレジスタと、 前記モード切替え手段が診断モードの選択を指令して
いるときは、前記読出し専用メモリが出力する1ワード
の並列データと前記バッファレジスタが保持するデータ
とを演算して前記バッファレジスタに保持させ、前記モ
ード切替え手段が通常モードの選択を指令しているとき
は、前記読出し専用メモリの出力する1ワードの並列デ
ータをそのまま前記バッファレジスタに保持させる演算
手段と、 前記最大アドレス検出手段が前記最大アドレスを検出
したときに前記バッファレジスタの保持するデータを検
証する検証手段とを備え、従来のマイクロプログラムの
診断部分を最小限のハードウェアの追加で代行すること
により、マイクロプログラムの診断部分を不要するよう
に構成されている。
Configuration of the Invention Means for Solving Problems The memory diagnostic circuit of the present invention which solves the problems of the above-mentioned prior art provides an address from its minimum address to its maximum address to a read-only memory when a reset signal is input. Maximum address detection means for detecting that the sequentially generated address counter has generated the maximum address, and a diagnostic mode selection command when the reset signal is input, and after the maximum address detection means detects the maximum address. Is used as a mode switching means for instructing selection of the normal mode instead of the diagnostic mode, as a register for storing the operation result in the diagnostic mode, and as an instruction register for holding the instruction read from the read-only memory in the normal mode, Moreover, the initial state is cleared by the input of the reset signal. When the buffer register and the mode switching means are instructing the selection of the diagnostic mode, one word of parallel data output by the read-only memory and the data held by the buffer register are operated to be stored in the buffer register. When the mode switching means commands the selection of the normal mode, the arithmetic means for holding parallel data of one word output from the read-only memory in the buffer register as it is, and the maximum address detecting means. A diagnostic means for verifying the data held in the buffer register when the maximum address is detected, and the diagnostic portion of the conventional microprogram is replaced by the addition of a minimum amount of hardware, thereby diagnosing the microprogram. Is configured to be unnecessary.

以下、本発明の作用を実施例と共に詳細に説明する。 Hereinafter, the operation of the present invention will be described in detail with reference to Examples.

実施例 第1図は、本発明の一実施例のメモリ診断回路1の構
成を、診断対象のメモリ21及びそのアドレス・カウンタ
22との関連と共に示すブロック図である。
First Embodiment FIG. 1 shows the configuration of a memory diagnostic circuit 1 according to an embodiment of the present invention, in which a memory 21 to be diagnosed and its address counter are shown.
FIG. 23 is a block diagram showing the relationship with 22.

このメモリ診断回路1は、最大アドレス検出手段11、
モード切替手段12、演算手段13、バッファレジスタ14及
び検証手段15を備えている。
This memory diagnostic circuit 1 is provided with a maximum address detecting means 11,
It is provided with a mode switching means 12, a calculation means 13, a buffer register 14 and a verification means 15.

最大アドレス検出手段11は、アドレスカウンタ22が出
力する読出し専用メモリ21のアドレスを受けて、これが
最大アドレスであるときにはその旨の通知信号を発生す
る。モード切替手段12は、外部からのリセット信号と最
大アドレス検出手段11からの通知信号を受けて演算手段
13の動作モードを決定し、その動作モードの選択を演算
回路13に指令する。塩酸手段13は、読出し専用メモリ21
から出力される1ワードのデータと、バッファレジスタ
14が保持するデータとを受け、モード切替手段12のモー
ド選択指令に従って両データの演算結果又は読出し専用
メモリ21の出力データそのものをバッファレジスタ14に
保持させる。
The maximum address detecting means 11 receives the address of the read-only memory 21 output from the address counter 22, and when this is the maximum address, generates a notification signal to that effect. The mode switching means 12 receives the reset signal from the outside and the notification signal from the maximum address detecting means 11 and calculates means.
The operation mode of 13 is determined, and the operation circuit 13 is instructed to select the operation mode. The hydrochloric acid means 13 has a read-only memory 21.
1-word data output from the buffer register
Upon receiving the data held by 14, the operation result of both data or the output data itself of the read-only memory 21 is held in the buffer register 14 according to the mode selection command of the mode switching means 12.

バッファレジスタ14は、演算手段13による演算結果又
は読出し専用メモリ21の出力データを一時的に保持す
る。検証手段15は、バッファレジスタ14が保持するデー
タを受取り、最大アドレス検出手段11が最大アドレスを
検出したときにバッファレジスタ14の保持データが所定
値であるか否かを検証する。
The buffer register 14 temporarily holds the calculation result of the calculation means 13 or the output data of the read-only memory 21. The verification means 15 receives the data held in the buffer register 14 and verifies whether the data held in the buffer register 14 is a predetermined value when the maximum address detection means 11 detects the maximum address.

まず、外部からのリセット信号は、モード切替手段12
を診断モードに、バッファレスタ14を初期状態に、また
アドレスカウンタ22を読出し専用メモリ21に最少アドレ
スを指示する状態にそれぞれ移行される。
First, the reset signal from the outside is the mode switching means 12
To the diagnostic mode, the buffer rest 14 to the initial state, and the address counter 22 to the read-only memory 21 for instructing the minimum address.

次に、アドレスカウンタ21が順次アドレスを増加して
いくにつれて、演算手段13は、読出し専用メモリ21の1
ワードの出力データとバッファレジスタ14の保持データ
とを演算してゆき、その演算結果をバファレジスタ14に
保持させる。アドレスカウンタ22が読出し専用メモリ21
の最大アドレスを指示するまで、上記演算動作が繰り返
される。アドレスカウンタ22が最大アドレスを指示する
と、最大アドレス検出手段11は、モード切替手段12と検
証手段15にその旨を通知する。
Next, as the address counter 21 sequentially increments the address, the operation means 13 causes the read-only memory 21 to read 1
The word output data and the data held in the buffer register 14 are operated, and the operation result is held in the buffer register 14. Address counter 22 is read-only memory 21
The above operation is repeated until the maximum address is designated. When the address counter 22 indicates the maximum address, the maximum address detection means 11 notifies the mode switching means 12 and the verification means 15 to that effect.

検証手段15は、最大アドレス検出手段11の通知を受け
ると、バッファレジスタ14に格納されている最終演算結
果と内臓の所定値とを照合し、この照合結果を外部に通
知する。モード切替手段12は、最大アドレス検出手段11
が最大アドレスを検出すると、診断モードから通常モー
ドに切替わる。この通常モードにおいては、演算手段13
は、読出し専用メモリ21から出力される1ワードの出力
データをそのままバッファレジスタ14に保持させる。従
って、通常モードでは、バッファレジスタ14は、読出し
専用メモリ21から演算手段13を介して出力される1ワー
ドのデータを一時的に保持するための汎用の命令レジス
タとしてそのまま利用される。
Upon receiving the notification from the maximum address detecting means 11, the verifying means 15 compares the final calculation result stored in the buffer register 14 with a predetermined internal value, and notifies the outside of this matching result. The mode switching means 12 is the maximum address detecting means 11
Detects the maximum address, it switches from diagnostic mode to normal mode. In this normal mode, the calculation means 13
Causes the buffer register 14 to hold the one-word output data output from the read-only memory 21 as it is. Therefore, in the normal mode, the buffer register 14 is used as it is as a general-purpose instruction register for temporarily holding one-word data output from the read-only memory 21 via the arithmetic means 13.

発明の効果 以上詳細に説明したように、本発明のメモリ診断回路
は、診断モード時には演算結果の格納用レジスタとし
て、他方、通常モード時には読出し専用メモリから読出
された命令を保持する命令レジスタ用として、1つのバ
ッファレジスタを兼用し、且つ、診断モード時には演算
動作を行い、通常モード時には転送動作を行う演算手段
を読出し専用メモリの後段に設置する構成であるから、
最小限のハードウェアを付加するだけでマイクロプログ
ラムの診断部分を不要とすることができる。
EFFECTS OF THE INVENTION As described in detail above, the memory diagnostic circuit of the present invention serves as a register for storing operation results in the diagnostic mode, and as an instruction register for holding an instruction read from the read-only memory in the normal mode. Since the arithmetic unit that doubles as one buffer register and performs the arithmetic operation in the diagnostic mode and the transfer operation in the normal mode is installed in the subsequent stage of the read-only memory,
The diagnostic part of the microprogram can be eliminated by adding a minimum amount of hardware.

この結果、そのような診断部分における障害発生に伴
う診断誤りが防止されると共に、メモリ容量もそれだけ
軽減される。
As a result, a diagnostic error due to the occurrence of a failure in such a diagnostic portion is prevented and the memory capacity is reduced accordingly.

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

第1図は、本発明の一実施例の診断回路の構成を、診断
対象の読出し専用メモリ21及びそのアドレスカウンタ22
との関連と共に示すブロック図である。 11……最大アドレス検出手段、12……モード切替手段、
13……演算手段、14……バッファレジスタ、15……検証
手段。
FIG. 1 shows a configuration of a diagnostic circuit according to an embodiment of the present invention, in which a read-only memory 21 to be diagnosed and its address counter 22 are provided.
It is a block diagram shown with relation with. 11 …… Maximum address detection means, 12 …… Mode switching means,
13 ... Calculation means, 14 ... Buffer register, 15 ... Verification means.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】リセット信号の入力時に読出し専用メモリ
に対してその最小アドレスからその最大アドレスまでの
アドレスを順次に発生するアドレスカウンタが前記最大
アドレスを発生したことを検出する最大アドレス検出手
段と、 前記リセット信号の入力時に診断モードの選択を指令
し、前記最大アドレス検出手段において前記最大アドレ
スが検出された以降は診断モードに代えて通常モードの
選択を指令するモード切替え手段と、 診断モード時には演算結果を格納するレジスタとして、
通常モード時には前記読出し専用メモリから読出された
命令を保持する命令レジスタとして使用され、且つ、前
記リセット信号の入力により初期状態にクリアされるバ
ッファレジスタと、 前記モード切替え手段が診断モードの選択を指令してい
るときは、前記読出し専用メモリが出力する1ワードの
並列データと前記バッファレジスタが保持するデータと
を演算して前記バッファレジスタに保持させ、前記モー
ド切替え手段が通常モードの選択を指令しているとき
は、前記読出し専用メモリの出力する1ワードの並列デ
ータをそのまま前記バッファレジスタに保持させる演算
手段と、 前記最大アドレス検出手段が前記最大アドレスを検出し
たときに前記バッファレジスタの保持するデータを検証
する検証手段とを備えたことを特徴とするメモリ診断回
路。
1. A maximum address detecting means for detecting that an address counter, which sequentially generates an address from its minimum address to its maximum address in a read-only memory when a reset signal is input, has generated the maximum address. Mode switching means for instructing selection of a diagnostic mode when the reset signal is input, and for instructing selection of a normal mode instead of the diagnostic mode after the maximum address is detected by the maximum address detecting means, and a calculation in the diagnostic mode As a register to store the result,
A buffer register which is used as an instruction register for holding an instruction read from the read-only memory in the normal mode, and which is cleared to an initial state by the input of the reset signal, and the mode switching means instructs selection of a diagnostic mode. In this case, the parallel data of one word output from the read-only memory and the data held in the buffer register are operated and held in the buffer register, and the mode switching means commands the selection of the normal mode. The parallel data of one word output from the read-only memory is stored in the buffer register as it is, and the data stored in the buffer register when the maximum address detection unit detects the maximum address. And a verification means for verifying Li diagnostic circuit.
JP61152997A 1986-06-30 1986-06-30 Memory diagnostic circuit Expired - Lifetime JP2503980B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61152997A JP2503980B2 (en) 1986-06-30 1986-06-30 Memory diagnostic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61152997A JP2503980B2 (en) 1986-06-30 1986-06-30 Memory diagnostic circuit

Publications (2)

Publication Number Publication Date
JPS638956A JPS638956A (en) 1988-01-14
JP2503980B2 true JP2503980B2 (en) 1996-06-05

Family

ID=15552695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61152997A Expired - Lifetime JP2503980B2 (en) 1986-06-30 1986-06-30 Memory diagnostic circuit

Country Status (1)

Country Link
JP (1) JP2503980B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0795279B2 (en) * 1988-03-18 1995-10-11 日本電気株式会社 Microcomputer with built-in EPROM
JPH0370056A (en) * 1989-08-09 1991-03-26 Fujitsu Denso Ltd Self-diagnostic device for rom

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6142050A (en) * 1984-08-06 1986-02-28 Nec Corp Checking circuit of read only memory

Also Published As

Publication number Publication date
JPS638956A (en) 1988-01-14

Similar Documents

Publication Publication Date Title
JPH02135536A (en) Check point retrial mechanism
JP2503980B2 (en) Memory diagnostic circuit
JPH1115661A (en) Self-diagnosis method for cpu
JPS6127778B2 (en)
JPS6218060B2 (en)
JP2888654B2 (en) Data input control method
JPS5832422B2 (en) Micro Shindan Houshiki
JPH022176B2 (en)
JPH03191451A (en) Error correction system
JPH0335327A (en) Majority decision fault processor
JPS5899841A (en) Address controlling system of partially mounted control memory
JPS6142033A (en) Information processor
JPH10105442A (en) Information processor
JPS59160898A (en) Fault diagnostic device of storage device
JPH086864A (en) Diagnostic system for address bus for memory control
JPH02297650A (en) Receiver
JPS6261974B2 (en)
JPS62166451A (en) History analyzing device for logical unit
JPH03230216A (en) Processing system for writing processing part to storage device
JPH052254U (en) Microprocessor device
JPS63193249A (en) Microprogram controller
JPH11219323A (en) Data path fault detection method and information processor
JPH0256020A (en) Magnetic disk controller
JP2000222239A (en) Secondary cache memory, its diagnosing method and information processor
JPH08305637A (en) Storage