JPH0368048A - Memory test system - Google Patents
Memory test systemInfo
- Publication number
- JPH0368048A JPH0368048A JP1205312A JP20531289A JPH0368048A JP H0368048 A JPH0368048 A JP H0368048A JP 1205312 A JP1205312 A JP 1205312A JP 20531289 A JP20531289 A JP 20531289A JP H0368048 A JPH0368048 A JP H0368048A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- instruction
- data
- error
- 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.)
- Pending
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【発明の詳細な説明】
〔(既要]
マイクロプロセッサ内のローカルメモリ又はコントロー
ルストレージ等の障害テストに関し、前記テストを高速
に行い、且つハード量を減らすことを目的とし、
命令語のオペレーションコードのオール0又はオール1
をNOP (ノーオペレーション)命令として定義し、
メモリ内に記憶されたデータのオペレーションコード部
に、オール0又は1を書込むと共に、エラーチェックビ
ットを付与して書込み、前記メモリに書き込まれた命令
を順次読みだし、前記エラーチェックビットにより、誤
りが検出された時は、所定のレジスタにフラグをたて、
誤りが検出されない時は、当該命令を実行する構成とす
る。[Detailed Description of the Invention] [(Already needed) With regard to fault testing of local memory or control storage in a microprocessor, the purpose is to perform the test at high speed and reduce the amount of hardware, and to all 0 or all 1
is defined as a NOP (no operation) instruction,
All 0s or 1s are written in the operation code section of the data stored in the memory, and an error check bit is added to the operation code section.The instructions written in the memory are sequentially read out, and the error check bits are used to detect errors. When detected, a flag is set in a specified register,
If no error is detected, the configuration is such that the instruction is executed.
(産業上の利用分野〕
本発明は、マイクロプロセッサ(MPU)に内蔵されて
いるコントロールストレージ、ローカルストレージ等の
障害検出に関する。(Industrial Application Field) The present invention relates to failure detection in control storage, local storage, etc. built into a microprocessor (MPU).
[従来の技術〕
マイクロプロセッサ(MPU)には、マイクロプログラ
ム、ファームウェアを記録するコントロールストレージ
や、ローカルストレージが内蔵されている。[Prior Art] A microprocessor (MPU) has a built-in control storage for recording microprograms and firmware, and a local storage.
よって、前記MPUを使用して1.何らかの処理を行う
装置等で、前記コントロールストレージや、ローカルス
トレージに障害が無いかどうかを検出することは、MP
Uが産業上列るところで使用される今日に於いて、重要
なことである。Therefore, using the MPU, 1. Detecting whether there is a failure in the control storage or local storage in a device that performs some processing is an MP
This is important in today's world where U is used in many industrial areas.
第2図は、本発明の一実施例のブロック図、第4図は、
第2図の動作を説明するフローチャート図である。FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 4 is a block diagram of an embodiment of the present invention.
FIG. 3 is a flowchart diagram explaining the operation of FIG. 2;
11は障害が無いかどうかテストされるMPU内のメモ
リ、13はインストラクションバッファ(以下、IBF
と略す)、14はデコーダ(以下、DECと略す)、1
5は演算ユニットで、メモリから読みだされた命令に応
じて、演算を行うものである。レジスタ151は誤りが
検出された時にフラグを立てる為に使用される。19は
読みだし先アドレス、書込み先アドレスを保持するアド
レスレジスタ、18は+1回路、101は書込みデータ
を保持するデータレジスタである。11 is the memory in the MPU that is tested for failures, and 13 is the instruction buffer (hereinafter referred to as IBF).
), 14 is a decoder (hereinafter abbreviated as DEC), 1
5 is an arithmetic unit that performs arithmetic operations in accordance with instructions read from memory. Register 151 is used to set a flag when an error is detected. 19 is an address register that holds a read destination address and a write destination address; 18 is a +1 circuit; and 101 is a data register that holds write data.
デコーダ14はオペレーションコードがオールO又は、
オール1の時はNOP命令と判断する。The decoder 14 has an operation code of all O or
When all 1s are present, it is determined to be a NOP command.
以上の構成は、マイクロプロセッサ内に位置する。The above configuration is located within the microprocessor.
110はメモリ11を試験する為の書込みデータを保存
しているメモリである。130はメモリ110から読み
だされたデータを保持するレジスタ、140は期待値回
路で、デコーダ14と同様の働きをする。A memory 110 stores write data for testing the memory 11. 130 is a register that holds data read from the memory 110, and 140 is an expected value circuit, which functions similarly to the decoder 14.
以下、図面を参照して動作を説明する。The operation will be explained below with reference to the drawings.
ステップ1 (第4図フローチャート)先ず、図示して
いない上位装置により、メモリをチエツクするC HE
CKフログラムが起動される。Step 1 (Flowchart in Figure 4) First, a host device (not shown) checks the memory.
CK program is activated.
ステップ2
次いで、 メモリ11の全アドレスに、予めメモリ11
0に記録されているテストデータを書き込む。Step 2 Next, all addresses of the memory 11 are set in advance.
Write the test data recorded in 0.
ステップ3
アドレスレジスタ19に初期値(最初のアドレス)をセ
ットし、前記アドレスのデータを読みだす。Step 3 Set an initial value (first address) in the address register 19 and read the data at the address.
rBF13に前記データが読みだされる。それと並行し
て、メモリ110からも同様のデータが読みだされる。The data is read to rBF13. In parallel, similar data is read out from the memory 110 as well.
rBF13から読みだされたデータはデコーダ14によ
り、デコードされ演算ユニット15に入力される。又、
メモリ110から読みだされたデータは期待値回路14
0によりデコードされ、これも演算ユニット15に人力
される(ステップ6)。The data read from the rBF 13 is decoded by the decoder 14 and input to the arithmetic unit 15. or,
The data read from the memory 110 is sent to the expected value circuit 14.
It is decoded by 0, and this is also manually input to the arithmetic unit 15 (step 6).
ステップ5
前記人力された2つのデータを演算ユニット15により
比較する。Step 5 The two manually input data are compared by the arithmetic unit 15.
ステップ8 一致しないときは、レジスタ151にフラグを立てる。Step 8 If they do not match, a flag is set in register 151.
ステップ7 一致した時は、アドレスが最終アドレスで無ければ、 ステップ4 次アドレスのデータに関し、上述した処理を実行する。Step 7 When a match occurs, if the address is not the final address, Step 4 The above-described processing is executed regarding the data at the next address.
即ち、従来では診断するメモリ以外のメモリから、予め
決められた所定のデータを書込み、前記データを被診断
メモリから読み取り、期待値と比較することにより、前
記メモリにエラーが無いかを判定した。That is, conventionally, predetermined data is written from a memory other than the memory to be diagnosed, the data is read from the memory to be diagnosed, and the data is compared with an expected value to determine whether or not there is an error in the memory.
然し、上述した手段では、被診断メモリ以外にも、メモ
リがいること、又、上位装置(又は、他の装置)よる処
理が必要なこと、?′A算ユニットに於いては、比較を
行う機能が必要である。即ち、ハードウェアの量が比較
的多くなっていまう。However, with the above-mentioned means, there is a need for memory other than the memory to be diagnosed, and processing by a host device (or other device) is required. 'A calculation unit requires a comparison function. That is, the amount of hardware becomes relatively large.
更に、外部の装置が介在するのでどうしても処理が遅く
なってしまう。よって、本発明の目的は、かかる課題を
悉く解決し、処理速度が早く、ハードウェア量か少ない
エラー検出装置を提供することである。Furthermore, since an external device is involved, the processing inevitably becomes slower. Therefore, an object of the present invention is to provide an error detection device that solves all of these problems, has a high processing speed, and requires a small amount of hardware.
〔課題を解決する為の手段]
上記目的を達成する為に、本発明は、命令語のオペレー
ションコードのオール0又はオール1をN0P(ノーオ
ペレーション)命令として定義し、メモリ内に記憶され
たデータのオペレーションコード部に、オールO又は1
を書込むと共に、エラーチェックビットを付与して書込
み、前記メモリに書き込まれた命令を順次読みだし、前
記エラーチェックビットにより、誤りが検出された時は
、所定のレジスタにフラグをたて、誤りが検出されない
時は、NOP命令を実行する構成とする。[Means for Solving the Problems] In order to achieve the above object, the present invention defines all 0s or all 1s of the operation code of the instruction word as an N0P (no operation) instruction, and the data stored in the memory. All O or 1 in the operation code part of
At the same time, an error check bit is added and written, and the instructions written to the memory are read out sequentially. When an error is detected by the error check bit, a flag is set in a predetermined register and the error is detected. If not detected, the configuration is such that a NOP instruction is executed.
(作用〕
メモリには、オールO又はオール1を書込み、その後、
NOP命令(オール0又はオール1をNOP命令と定義
)を実行する。(Operation) Write all O or all 1 to the memory, and then
Executes a NOP instruction (all 0s or all 1s are defined as a NOP instruction).
前記NOP命令によって、読みだされたデータはチエツ
クピットによって障害が検出される。A check pit detects a fault in the data read by the NOP command.
即ち、特別なデータをメモリに書き込むこと無く、且つ
、マイクロ命令を使用するので、障害検出処理が速く簡
単に行える。That is, since no special data is written to the memory and microinstructions are used, failure detection processing can be performed quickly and easily.
第i図は、本発明の一実施例のブロック図、第3図は、
第1図の動作を説明するフローチャート図である。Fig. i is a block diagram of an embodiment of the present invention, and Fig. 3 is a block diagram of an embodiment of the present invention.
FIG. 2 is a flow chart diagram explaining the operation of FIG. 1;
11は障害が無いかどうかテストされるメモリ、12は
良く知られた、誤り訂正符号検出器(ECC回路) 、
13はインストラクシゴンバッファ(以下、rBFと略
す)、14はデコーダ(以下、DECと略す)、15は
演算ユニットで、メモリから読みだされた命令に応じて
、演算を行うものである。前記演算ユニットの内部には
、レジスタ151がある。1つは読みだし先アドレス、
書込み先アドレスを保持するアドレスレジスタ、18は
+1回路、101は書込みデータを保持するデータレジ
スタである。11 is a memory to be tested for faults; 12 is a well-known error correction code detector (ECC circuit);
13 is an instruction buffer (hereinafter abbreviated as rBF), 14 is a decoder (hereinafter abbreviated as DEC), and 15 is an arithmetic unit, which performs arithmetic operations in accordance with instructions read from the memory. There is a register 151 inside the arithmetic unit. One is the read destination address,
18 is a +1 circuit, and 101 is a data register that holds write data.
デコーダ14はオペレーションコードがオールO又は、
オールエの時はNOP命令と判断する。The decoder 14 has an operation code of all O or
When it is all, it is judged as a NOP command.
以下、図面を参照して動作を説明する。The operation will be explained below with reference to the drawings.
ステップ1(第3図フローチャート)
先ず、メモリ11の全アドレスに、テストデータを書き
込む。此処では、データレジスタ101を通じて、オー
ルOを書き込む。この時、メモリ11のチエツクピット
部には、誤り訂正符号(ECC)のチエツクピット(C
B)が同時に書き込まれる。Step 1 (Flowchart in FIG. 3) First, test data is written to all addresses in the memory 11. Here, all O's are written through the data register 101. At this time, the check pit section of the memory 11 contains a check pit (C
B) is written at the same time.
スヲ・ ・ン フ゛2
アドレスレジスタ19に初期値(最初のアドレス)をセ
ットし、前記アドレスのデータを読みだす。Step 2: Set the initial value (first address) in the address register 19 and read the data at the address.
ステップ3
ECC回路12で、CBによって、前記アドレスのデー
タに3呉りが無いかどうかチエツクされる。Step 3: In the ECC circuit 12, the CB checks whether or not there is a 3-bit difference in the data at the address.
ステップ4
ステップ3でエラーが無いとする。デコーダ14に前記
データが送られ、NOP命令と判断される。Step 4 Assume that there are no errors in step 3. The data is sent to the decoder 14 and determined to be a NOP command.
ステップ5
前記アドレスが最終アドレスで無ければ、ステップ8
演算ユニット15は、次アドレス(前記アドレスに、+
1回路によって+1したアドレスをアドレスレジスタ1
9にセットする。Step 5 If the address is not the final address, Step 8 the arithmetic unit 15 calculates the next address (+
The address added by 1 by 1 circuit is set to address register 1.
Set to 9.
上述したステップ2〜ステツプ5及びステップ8を、ス
テップ3でエラーが検出されない限り、繰り返す。Steps 2 to 5 and 8 described above are repeated unless an error is detected in step 3.
ステップ9 最終アドレス迄、エラーが無ければ終了する。Step 9 If there are no errors up to the final address, the process ends.
又、ステップ3でエラーが検出される場合を説明する。Also, a case where an error is detected in step 3 will be explained.
エラーが検出さたら、ECC回路12は、5BE(シン
グルビットエラー信号)又は、MSB(マルチビットエ
ラー信号)を出力する。前記信号はゲート16を介して
、IBF13のクロックをゲート17によって抑止する
。エラーが検出された場合は、演算ユニット15は所定
のレジスタ151にフラグを立てて、処理を終了する(
ステップ7)。前記rBF13のクロックを抑止するの
は、命令の誤動作を防ぐ為である。When an error is detected, the ECC circuit 12 outputs 5BE (single bit error signal) or MSB (multi-bit error signal). Said signal passes through gate 16 and the clock of IBF 13 is inhibited by gate 17. If an error is detected, the arithmetic unit 15 sets a flag in a predetermined register 151 and ends the process (
Step 7). The reason for inhibiting the clock of the rBF 13 is to prevent instruction malfunctions.
以上、メモリにオール0を書き込んだ場合を説明した。The case where all 0s are written to the memory has been described above.
上記の処理の実行によって、メモリ11の“′0パが、
“1”に化ける場合が検出できる。By executing the above process, the "'0" of the memory 11 becomes
It is possible to detect cases where the value changes to “1”.
次に、メモリ11にオール1を書き込んで、第3図に示
した動作を実行する。前記動作を実行することによって
、メモリ11の°“1パが、“°0″に化ける場合が検
出できる。Next, all 1's are written in the memory 11 and the operation shown in FIG. 3 is executed. By executing the above operation, it is possible to detect a case where the ``1'' in the memory 11 turns into ``0''.
以上、実施例に従って、本発明を説明した。The present invention has been described above according to examples.
NOP命令を使用することによって、メモリのエラー検
出を行う、即ち、マイクロ命令を直接実行するので、処
理時間が早い。又、従来の様に、メモリにデータを書込
み、書き込んだデータと、読みだしたデータを比較する
処理の様に、比較器を必要としない為、ハードウェアの
量が少なくてすむ、更に、複雑な数字を用いたテストで
ない為、障害の箇所が簡単で明瞭に検出できるという効
果がある。By using the NOP instruction, memory errors are detected, that is, microinstructions are directly executed, resulting in faster processing time. In addition, unlike the conventional process of writing data to memory and comparing the written data with the read data, a comparator is not required, so the amount of hardware can be reduced and the complexity can be reduced. Since the test does not use numerical numbers, it has the advantage of being able to easily and clearly detect the location of the failure.
第1図は本発明の実施例のブロック図、第2図は従来例
のブロック図、第3図は実施例の動作説実売例
1 図
第4図は従来例の動作説明図である。
・・・メモリ
・・・ECC
・・・IBF
・・・DEC
・・・演算ユニット
穿橙例070−+Y−ト
第3記FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a block diagram of a conventional example, FIG. 3 is an explanation of the operation of the embodiment, Example 1, and FIG. 4 is an explanatory diagram of the operation of the conventional example. ...Memory...ECC...IBF...DEC...Arithmetic unit drilling example 070-+Y-to Part 3
Claims (1)
をNOP(ノーオペレーション)命令として定義し、 メモリ内に記憶されたデータのオペレーションコード部
に、オール0又は1を書込むと共に、エラーチェックビ
ットを付与して書込み、 前記メモリに書き込まれた命令を順次読みだし、前記エ
ラーチェックビットにより、誤りが検出された時は、所
定のレジスタにフラグをたて、誤りが検出されない時は
、当該命令を実行することを特徴とするメモリテスト方
式。[Claims] All 0s or all 1s in the operation code of the instruction word
is defined as a NOP (no operation) instruction, writes all 0s or 1s to the operation code section of the data stored in the memory, and writes with an error check bit attached, and the instruction written in the memory is A memory test method characterized in that the instructions are sequentially read, and when an error is detected by the error check bit, a flag is set in a predetermined register, and when no error is detected, the corresponding instruction is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1205312A JPH0368048A (en) | 1989-08-08 | 1989-08-08 | Memory test system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1205312A JPH0368048A (en) | 1989-08-08 | 1989-08-08 | Memory test system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0368048A true JPH0368048A (en) | 1991-03-25 |
Family
ID=16504869
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1205312A Pending JPH0368048A (en) | 1989-08-08 | 1989-08-08 | Memory test system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0368048A (en) |
-
1989
- 1989-08-08 JP JP1205312A patent/JPH0368048A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8001432B2 (en) | Uninitialized memory detection using error correction codes and built-in self test | |
| JPH0253809B2 (en) | ||
| EP4569408A1 (en) | Triple modular redundancy (tmr) radiation hardened memory system | |
| KR20200088760A (en) | Checksum generation | |
| JPH01171047A (en) | Chip alternation controller for memory element | |
| JPH0368048A (en) | Memory test system | |
| JPS6261974B2 (en) | ||
| CN117724938A (en) | Memory control method | |
| JPS6048769B2 (en) | Loading method | |
| JPS63753A (en) | Test system for memory error checking and correcting circuit | |
| JPS58213349A (en) | Information processor | |
| JPS6051142B2 (en) | Logging error control method | |
| JPH01156834A (en) | Diagnosing system for check circuit | |
| SU926724A2 (en) | Storage testing device | |
| JPS62168241A (en) | Microprogram controller | |
| JPH03290745A (en) | Memory error detecting/correcting method | |
| JPS6142304B2 (en) | ||
| JPS6223336B2 (en) | ||
| JPS58186851A (en) | Error checking device | |
| JPH02178862A (en) | Information processor | |
| JPH04372025A (en) | Storage device with access bit | |
| JPH1078891A (en) | Software program evaluation device | |
| JPS6227424B2 (en) | ||
| JPH04236644A (en) | Cache memory diagnostic system | |
| JPS6325380B2 (en) |