JPH0981465A - Main storage controller - Google Patents

Main storage controller

Info

Publication number
JPH0981465A
JPH0981465A JP7232398A JP23239895A JPH0981465A JP H0981465 A JPH0981465 A JP H0981465A JP 7232398 A JP7232398 A JP 7232398A JP 23239895 A JP23239895 A JP 23239895A JP H0981465 A JPH0981465 A JP H0981465A
Authority
JP
Japan
Prior art keywords
storage module
error
main memory
controller
main
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
JP7232398A
Other languages
Japanese (ja)
Inventor
Kazuya Hayashi
和也 林
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 JP7232398A priority Critical patent/JPH0981465A/en
Publication of JPH0981465A publication Critical patent/JPH0981465A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize a storage controller which has high reliability and is capable of performing a high speed operation. SOLUTION: The operations of first and second bus switches are controlled by a memory check controller 4 and a bus switch controller 5 so that plural storage modules 11 to 13 may be provided and an ECC circuit 6 may perform an error detection correction for the data of the storage modules except the storage module to which an MPU 1 performs access. When a parity error is produced in the data of the storage module to which the MPU 1 performs access, the operation of the MPU 1 becomes 'WAIT' state. The controller 4 saves the data from the storage module for which an error check is performed in a register, executes the correction of the data in which the parity error is produced, outputs the corrected data to the MPU 1 and stores the data in the storage module. Subsequently, the controller 4 recovers the data saved in the register and restarts the error check of the storage module for which the error check is interrupted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、MPUと主記憶装置と
の間のデータ転送において、パリティチェックやECC
によりデータの信頼性を高めるための主記憶制御装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to parity check and ECC in data transfer between an MPU and a main memory.
The present invention relates to a main memory control device for increasing the reliability of data.

【0002】[0002]

【従来の技術】コンピュータシステムは、情報処理量の
大規模化、サービス形態のオンライン・リアルタイム処
理への発展に伴って、ますます高信頼度と高速化が要求
される。このためにはデータの記憶動作や入出力動作が
高速であり、かつ高信頼性を有する記憶制御装置が必要
となる。
2. Description of the Related Art Computer systems are required to have higher reliability and higher speed as the amount of information processing increases and the service form develops into online real-time processing. For this purpose, a storage controller having high-speed data storage and input / output operations and high reliability is required.

【0003】MPUと主記憶装置との間のデータ転送に
おけるエラービットの検出にはパリティチェックが一般
的であり、検出・訂正にはECCチェックが一般的であ
る。つまり、図5に示すように、MPU26から読み出
し要求されたデータは、記憶モジュール20から読み出
され、ECC回路28によりエラー検出訂正された後、
MPU26に供給される。
A parity check is generally used for detecting an error bit in data transfer between the MPU and the main memory, and an ECC check is generally used for detection / correction. That is, as shown in FIG. 5, the data requested to be read from the MPU 26 is read from the storage module 20, and after the error detection and correction by the ECC circuit 28,
It is supplied to the MPU 26.

【0004】また、特開昭62−242258号公報や
特開昭55−77097号公報には、図6に示すよう
に、誤り検出・訂正ビットとパリティビットが共存する
記憶モジュール20を用い、パリティチェック回路27
により、パリティエラーが発生したことが検出された時
のみ、誤り検出・訂正回路28でデータの訂正を行い、
訂正されたデータがMPU26に供給される。これによ
り、高信頼性と部分書き込み時における高速動作とが同
時に実現されている。
Further, in JP-A-62-242258 and JP-A-55-77097, as shown in FIG. 6, a storage module 20 in which error detection / correction bits and parity bits coexist is used, and parity is used. Check circuit 27
Therefore, the error detection / correction circuit 28 corrects the data only when the parity error is detected.
The corrected data is supplied to the MPU 26. As a result, high reliability and high-speed operation at the time of partial writing are realized at the same time.

【0005】[0005]

【発明が解決しようとする課題】ところで、誤り検出・
訂正回路には様々な方式があるが、主記憶装置ではデー
タの信頼性が要求されることから1ビットエラー訂正・
2ビットエラー検出コードが用いられることが多い。し
かし、この誤り検出・訂正コードを用いても誤りの検出
・訂正を行う時間が必要であり、記憶装置のデータ読み
とり等を高速化する上で大きな障害となってくる。
Problems to be Solved by the Invention
There are various types of correction circuits, but the main memory requires data reliability, so 1-bit error correction
A 2-bit error detection code is often used. However, even if this error detection / correction code is used, time is required for error detection / correction, which is a major obstacle to speeding up data reading of the storage device.

【0006】これに対して、パリティチェックによって
誤り検出する方式は、通常動作時のアクセスタイムの高
速化は図れるが、誤り検出しか行わないからパリティエ
ラーが生じただけでシステムダウンとなってしまう恐れ
があり、信頼性の高い主記憶装置を実現することはでき
ない。これは、パリティエラーが検出されると、誤り検
出あるいは内容の報告と記憶保持を行い、以降の動作が
いったん打ち切られるからである。
On the other hand, the method of detecting an error by the parity check can speed up the access time during the normal operation, but since only error detection is performed, the system may be down due to a parity error. Therefore, a highly reliable main memory device cannot be realized. This is because when a parity error is detected, error detection or content reporting and storage is performed, and the subsequent operation is temporarily terminated.

【0007】また、図6に示した従来例においては、M
PUがアクセスするデータしか誤りデータの訂正を行わ
ない。このため、アクセスされないデータに誤りが発生
した場合、この誤りの数が少ない状態で、アクセスされ
れば、エラー検出訂正が可能である。しかし、アクセス
されない期間が長くなると、さらにエラーデータが発生
して、エラーの数が多くなる可能性がある。エラーデー
タの数が多くなると、データのエラー訂正ができなくな
る可能性が高くなり、システムの信頼性を低下させてし
まう。
Further, in the conventional example shown in FIG. 6, M
Only the data accessed by the PU corrects the error data. Therefore, if an error occurs in the data that is not accessed, the error can be detected and corrected if the data is accessed with a small number of errors. However, if the non-accessed period becomes long, more error data may be generated and the number of errors may increase. When the number of error data is large, there is a high possibility that the error correction of the data cannot be performed and the reliability of the system is deteriorated.

【0008】本発明の目的は、上記のような従来技術の
欠点を解消し、信頼性が高く、かつ高速動作が可能な記
憶制御装置を実現することである。
An object of the present invention is to solve the above-mentioned drawbacks of the prior art and to realize a storage controller having high reliability and high-speed operation.

【0009】[0009]

【課題を解決するための手段】本発明は、上記目的を達
成するため、次のように構成される。主記憶制御装置に
おいて、データと誤り検出・訂正ビットとパリティビッ
トが記憶される複数の主記憶モジュールと、主記憶モジ
ュールから読み出した情報を処理するメインプロセッサ
と、主記憶モジュールから読み出した情報のパリティチ
ェックを行うパリティチェック手段と、主記憶モジュー
ルから読み出した情報のエラー検出訂正を行うエラー検
出訂正手段と、複数の主記憶モジュールのいずれかをメ
インプロセッサかエラー検出訂正手段かに接続するバス
スイッチと、エラー検出訂正手段に、複数の主記憶手段
のうちのいずれの記憶モジュールの情報をエラー検出訂
正するかを制御するメモリチェックコントローラと、メ
インプロセッサからのアクセス要求と、メモリチェック
コントローラからの情報読み出し要求に応じて、メイン
プロセッサに接続する記憶モジュールと、メモリチェッ
クコントローラに接続する主記憶モジュールとが異なる
ように、バススイッチの動作を制御するバススイッチコ
ントローラと、を備える。
In order to achieve the above object, the present invention is configured as follows. In the main memory control device, a plurality of main memory modules in which data, error detection / correction bits, and parity bits are stored, a main processor that processes information read from the main memory module, and parity of information read from the main memory module. A parity check means for performing a check, an error detection and correction means for performing error detection and correction of information read from the main storage module, and a bus switch for connecting any of the plurality of main storage modules to the main processor or the error detection and correction means. , A memory check controller that controls the error detection / correction means to detect and correct information in any of the storage modules of the plurality of main storage means, an access request from the main processor, and information read from the memory check controller Main on request A storage module that connects to processors, as a main memory module connected to the memory check controller are different, comprises a bus switch controller for controlling the operation of the bus switch, the.

【0010】好ましくは、上記主記憶制御装置におい
て、メインプロセッサは、主記憶モジュールから読み出
した情報に、パリティエラーが存在することをパリティ
チェック手段により検出されたときには、情報処理動作
を中断し、メモリチェックコントローラは、エラー検出
訂正動作中の主記憶モジュールからの情報読み出しを停
止し、パリティエラーが発生した情報のエラー検出訂正
を実行して、訂正した情報メインプロセッサに供給する
とともに、パリティエラーが発生した主記憶モジュール
に訂正した情報を格納し、情報読み出しを停止した主記
憶モジュールからの情報読み出しを再開する。
Preferably, in the main memory control device, the main processor interrupts the information processing operation when the parity check means detects that the information read from the main memory module has a parity error, and the memory The check controller stops reading information from the main memory module during the error detection and correction operation, executes error detection and correction of the information in which the parity error has occurred, supplies the corrected information to the main processor, and generates the parity error. The corrected information is stored in the main memory module, and the information reading from the main memory module that stopped the information reading is restarted.

【0011】また、好ましくは、上記主記憶制御装置に
おいて、メモリチェックコントローラは、エラーカウン
タを有し、複数の主記憶モジュール毎にパリティエラー
の発生回数をカウントし、このカウント数が所定の数以
上となった記憶モジュールを示す指令信号をメインプロ
セッサ及びバススイッチコントローラに、供給し、バス
スイッチコントローラは、メモリチェックコントローラ
からの指令信号に従って、カウント数が所定の数以上と
なった記憶モジュールを選択することを停止する。
Further, preferably, in the above main memory control device, the memory check controller has an error counter, counts the number of times of occurrence of a parity error for each of the plurality of main memory modules, and the counted number is equal to or more than a predetermined number. Is supplied to the main processor and the bus switch controller, and the bus switch controller selects the storage module whose count number is equal to or more than a predetermined number according to the command signal from the memory check controller. Stop things.

【0012】また、好ましくは、上記主記憶制御装置に
おいて、カウント数が所定の数以上となった記憶モジュ
ールが新たな記憶モジュールに交換されたか否かを判断
する交換判断部を、さらに備え、この交換判断部は、記
憶モジュールが交換されたことをバススイッチコントロ
ーラに伝達する。
Further, preferably, the main memory control device further comprises a replacement judging section for judging whether or not the storage module whose count number has become a predetermined number or more is replaced with a new storage module, The replacement determination unit notifies the bus switch controller that the storage module has been replaced.

【0013】[0013]

【作用】誤り検出・訂正ビットとパリティビットがデー
タと共存する主記憶モジュールを複数個用いた主記憶制
御装置であり、MPU(メインプロセッサ)の主記憶ア
クセスに並行して誤り検出・訂正回路を動作させるよう
にした記憶装置である。
A main memory control device using a plurality of main memory modules in which error detection / correction bits and parity bits coexist with data, and an error detection / correction circuit is provided in parallel with main memory access of an MPU (main processor). It is a storage device that is operated.

【0014】メモリチェックコントローラは、MPUの
記憶モジュールからの情報読み出しに並行して、常時、
複数の記憶モジュールの情報を順次読み出していき、誤
り検出・訂正を実行していく。常時記憶モジュールをチ
ェックすることにより1ビットエラーの存在期間の最大
値が限定され、2ビット以上のエラーになる確率を減ら
すことが可能となりシステムの信頼性を向上することが
可能となる。記憶モジュールは、それぞれ独立したバス
を持っていため、MPUからのアクセスとメモリチェッ
クコントローラからのアクセスに対して、同一記憶モジ
ュールにアクセスした場合を除いて並行して動作可能で
あり、高信頼性でかつ高速動作を同時に可能とすること
が可能となる。
The memory check controller always reads the information from the storage module of the MPU in parallel with it.
The information in the plurality of storage modules is sequentially read to perform error detection / correction. By checking the constant storage module, the maximum value of the existence period of 1-bit error is limited, the probability of error of 2 bits or more can be reduced, and the reliability of the system can be improved. Since the storage modules have independent buses, they can operate in parallel for access from the MPU and access from the memory check controller, except when the same storage module is accessed, with high reliability. Moreover, it becomes possible to simultaneously perform high-speed operation.

【0015】[0015]

【実施例】次に、添付図面を参照して本発明の実施例を
説明する。図1は本発明の第1実施例である記憶制御装
置の概略構成図である。図1において、記憶制御装置
は、MPU(メインプロセッサ)1と、アドレスラッチ
回路2と、パリティチェック回路3と、メモリチェック
コントローラ4と、バススイッチコントローラ5と、E
CC(エラー検出訂正)回路6と、第1バススイッチ8
と、第2バススイッチ9と、記憶モジュールA11と、
記憶モジュールB12と、記憶モジュールC13とを備
えている。
Embodiments of the present invention will now be described with reference to the accompanying drawings. FIG. 1 is a schematic configuration diagram of a storage control device according to a first embodiment of the present invention. In FIG. 1, the storage control device includes an MPU (main processor) 1, an address latch circuit 2, a parity check circuit 3, a memory check controller 4, a bus switch controller 5, and E.
CC (error detection and correction) circuit 6 and first bus switch 8
A second bus switch 9, a storage module A11,
The storage module B12 and the storage module C13 are provided.

【0016】記憶モジュール11、12、13において
は、誤り検出・訂正ビットとパリティビットとがデータ
と共存しており、データの書き込みや読み出しの際に誤
り検出・訂正ビットとパリティビットとデータとを同時
に出力する。
In the storage modules 11, 12, and 13, the error detection / correction bit and the parity bit coexist with the data, and the error detection / correction bit, the parity bit, and the data are written when the data is written or read. Output at the same time.

【0017】また、アドレスラッチ回路2は、MPU1
が記憶モジュール11、12又は13にアクセスする度
に、アドレスバス23を介して、そのアクセスするアド
レスをラッチし、エラー訂正終了後のデータを該当する
記憶モジュール11、12又は13への書き戻しに使用
する。パリティチェック回路3は、MPU1が、読み出
したデータのパリティチェックを行い、1ビットエラー
があった場合は、MPU1に対してWAIT信号21を
発生することにより、1ビットエラーを訂正する時間を
要求する。
Further, the address latch circuit 2 includes the MPU 1
Each time the memory module 11, 12, or 13 is accessed, the address to be accessed is latched via the address bus 23, and the data after the error correction is written back to the corresponding memory module 11, 12 or 13. use. The parity check circuit 3 checks the parity of the data read by the MPU 1 and, if there is a 1-bit error, generates a WAIT signal 21 to the MPU 1 to request time for correcting the 1-bit error. .

【0018】メモリチェックコントローラ4は、ECC
回路6を用い、記憶モジュールA11、記憶モジュール
B12、記憶モジュールC12のアドレスが小さい方か
ら順に各モジュール内のデータをチェックして、エラー
を検出すると、そのエラーを訂正する。また、バススイ
ッチコントローラ5は、第1バススイッチ8を制御し
て、例えば、MPU1が、記憶モジュールA11にアク
セスする場合は、記憶モジュールA11へのバスを接続
する。そして、記憶モジュールB12にアクセスする場
合は、バススイッチコントローラ5は、記憶モジュール
A11との接続を解除した後、記憶モジュールB12の
バスと接続する。
The memory check controller 4 is an ECC
The circuit 6 is used to check the data in each module in order from the smallest address of the storage module A11, the storage module B12, and the storage module C12, and when an error is detected, the error is corrected. Further, the bus switch controller 5 controls the first bus switch 8 to connect the bus to the storage module A11 when the MPU 1 accesses the storage module A11, for example. When accessing the storage module B12, the bus switch controller 5 releases the connection with the storage module A11 and then connects with the bus of the storage module B12.

【0019】例えば、メモリチェックコントローラ4
が、記憶モジュールA11をエラーチェックし、MPU
1が、記憶モジュールB12をアクセスしている場合、
この両アクセスは独立したバスで行われているため、M
PU1の記憶モジュールアクセスにオーバーヘッドは生
じない。つまり、バススイッチコントローラ5は、MP
U1が、アクセスする記憶モジュールが、どれであるの
かを検知しうるので、第2バススイッチ9を制御して、
MPU1がアクセスしていない記憶モジュールとECC
回路6とを接続する。
For example, the memory check controller 4
Checks the storage module A11 for errors,
1 accesses the storage module B12,
Both these accesses are done by independent buses, so M
There is no overhead in accessing the storage module of PU1. That is, the bus switch controller 5
Since U1 can detect which storage module to access, it controls the second bus switch 9,
Storage module and ECC not accessed by MPU1
The circuit 6 is connected.

【0020】MPU1が、記憶モジュールB12をアク
セスして、データを読み出している時にパリティエラー
が発生した場合、パリティチェック回路3は、エラー通
知信号22をメモリチェックコントローラ4に供給す
る。そして、メモリチェックコントローラ4は、ECC
回路6によりエラーが発生したデータを訂正させ、訂正
したデータをMPU1がMPUバス24を介して取り込
む。この場合、MPU1の処理は、中断されるが訂正す
べきデータは、データラッチ回路7に格納されてあり、
ECC回路6は、このデータラッチ回路7にラッチされ
たデータを訂正すればよいので、データ訂正は記憶モジ
ュールに対するデータアクセスを伴わずに実行できる。
When the MPU 1 accesses the storage module B12 and a parity error occurs while reading data, the parity check circuit 3 supplies an error notification signal 22 to the memory check controller 4. Then, the memory check controller 4 uses the ECC
The circuit 6 corrects the data in which the error has occurred, and the MPU 1 takes in the corrected data via the MPU bus 24. In this case, the processing of the MPU 1 is interrupted, but the data to be corrected is stored in the data latch circuit 7,
Since the ECC circuit 6 only has to correct the data latched by the data latch circuit 7, the data correction can be executed without the data access to the storage module.

【0021】図2は、図1の例の動作フローチャートで
ある。このフローチャートにおいて、MPU1は、記憶
モジュールB12にアクセスしており、メモリチェック
コントローラ4は、ECC回路6により記憶モジュール
A11のエラーチェックを行っている場合とする。
FIG. 2 is an operation flowchart of the example of FIG. In this flowchart, it is assumed that the MPU 1 is accessing the storage module B12 and the memory check controller 4 is performing an error check of the storage module A11 by the ECC circuit 6.

【0022】図2のステップ100において、MPU1
のデータリード要求が開始され、ステップ101におい
て、アドレスラッチ回路2は、MPU1が出力したアド
レスをラッチする。そして、ステップ102において、
データラッチ回路7は、記憶モジュールB12から読み
出されたデータをラッチする。
In step 100 of FIG. 2, the MPU 1
The data read request is started, and in step 101, the address latch circuit 2 latches the address output by the MPU 1. Then, in step 102,
The data latch circuit 7 latches the data read from the storage module B12.

【0023】次に、ステップ103において、パリティ
チェック回路3により読み出したデータのパリティチェ
ックを行う。そして、ステップ104において、エラー
の有無を調べて、エラーがない場合は、そのデータをM
PU1に送り処理終了となる。
Next, in step 103, the parity check of the data read by the parity check circuit 3 is performed. Then, in step 104, it is checked whether or not there is an error, and if there is no error, the data is M
The processing is sent to PU1 and the processing is completed.

【0024】ステップ104において、エラーがある場
合には、ステップ105に進み、パリティチェック回路
3は、WAIT信号21をMPU1に供給し、ステップ
201に進む。このステップ201において、エラーメ
モリチェックコントローラ4は、MPU1側のパリティ
エラーがないかどうかをチェックする。そして、パリテ
ィエラーであれば、ステップ210に進み、メモリチェ
ックコントローラ4はメモリチェックコントローラ内の
レジスタを退避する。
If there is an error in step 104, the process proceeds to step 105, the parity check circuit 3 supplies the WAIT signal 21 to the MPU 1, and the process proceeds to step 201. In step 201, the error memory check controller 4 checks whether or not there is a parity error on the MPU 1 side. If it is a parity error, the process proceeds to step 210, and the memory check controller 4 saves the register in the memory check controller.

【0025】次に、ステップ211に進み、アドレスラ
ッチ回路2に格納されたアドレスを取り込む。そして、
ステップ212において、データラッチ回路7からデー
タを取り込み、ステップ213において、エラーを訂正
する。次に、ステップ214において、訂正したデータ
をバス24を介してMPU1にデータを出力する。
Next, in step 211, the address stored in the address latch circuit 2 is fetched. And
In step 212, the data is fetched from the data latch circuit 7, and in step 213, the error is corrected. Next, in step 214, the corrected data is output to the MPU 1 via the bus 24.

【0026】ここで、ステップ105に戻り、MPU1
は、WAIT状態を解除され、次の処理へ移る。さら
に、メモリチェックコントローラ4は、ステップ215
において、アドレスラッチ回路2から取り込んだアドレ
スに基づいて、記憶モジュールBに訂正データを書き戻
す動作を行う。この際、メモリチェックコントローラ4
は、バススイッチコントローラ5に指示し、接続する記
憶モジュールを記憶モジュールB12につなぎ換え、訂
正データの書き戻し動作を行う。その後、接続する記憶
モジュールを記憶モジュールA11に設定する。そし
て、ステップ216において、メモリチェックコントロ
ーラ4は、退避したレジスタを復帰させ、記憶モジュー
ルA11のエラーチェックを続行する。
Now, returning to step 105, the MPU 1
Cancels the WAIT state and moves to the next processing. Further, the memory check controller 4 proceeds to step 215.
At, the operation of writing back the corrected data to the memory module B is performed based on the address fetched from the address latch circuit 2. At this time, the memory check controller 4
Instructs the bus switch controller 5 to connect the connected storage module to the storage module B12 and perform the write-back operation of the corrected data. After that, the storage module to be connected is set to the storage module A11. Then, in step 216, the memory check controller 4 restores the saved register and continues the error check of the storage module A11.

【0027】さて、ステップ201において、パリティ
エラーでは無い場合は、ステップ202に進む。このス
テップ202において、記憶モジュールA11のデータ
を読み出し、ステップ203において、ECCチェック
を行う。そして、ステップ204でECCエラーがある
か否かを判定し、ECCエラーがない場合は、ステップ
208に進む。
If no parity error is found in step 201, the process proceeds to step 202. In step 202, the data in the storage module A11 is read out, and in step 203, an ECC check is performed. Then, in step 204, it is determined whether or not there is an ECC error. If there is no ECC error, the process proceeds to step 208.

【0028】このステップ208において、ECCチェ
ックを実行したデータのアドレスが、記憶モジュールA
11の最終アドレスか否かをチェックし、最終アドレス
である場合は記憶モジュールAのエラーチェックを終了
し記憶モジュールBのエラーチェックにはいる。最終ア
ドレスでない場合は、ステップ209に進み、アドレス
をインクリメントして、ステップ201に戻り、再び記
憶モジュールAのエラーチェックを行う。
In this step 208, the address of the data for which the ECC check is executed is the storage module A
If it is the final address of No. 11, if it is the final address, the error check of the storage module A is ended and the error check of the storage module B is started. If it is not the final address, the process proceeds to step 209, the address is incremented, the process returns to step 201, and the error check of the storage module A is performed again.

【0029】ステップ204において、ECCエラーが
あった場合は、ステップ205に進み、エラーカウント
をアップし、ステップ206において、データを訂正す
る。そして、ステップ207において、訂正したデータ
を記憶モジュールA11に書き戻す。続いて、ステップ
208に進み、以降、上述と同様な動作を実行する。
If there is an ECC error in step 204, the flow advances to step 205 to increase the error count, and in step 206 the data is corrected. Then, in step 207, the corrected data is written back to the storage module A11. Then, it progresses to step 208 and after that, the same operation as the above is performed.

【0030】以上のように、本発明の第1実施例によれ
ば、複数の記憶モジュール11、12、13が備えら
れ、MPU1がアクセスしている記憶モジュール以外の
記憶モジュールのデータが、エラー検出訂正されるよう
に、メモリチェックコントローラ4により制御され、M
PU1のデータ処理と並行してECC動作が実行され
る。したがって、発生するエラーの数がエラー訂正不可
能となるまで増加することが抑制され、信頼性が高く、
かつ高速動作が可能な記憶制御装置を実現することがで
きる。
As described above, according to the first embodiment of the present invention, the plurality of storage modules 11, 12, 13 are provided, and the data of the storage module other than the storage module accessed by the MPU 1 is detected as an error. Controlled by the memory check controller 4 to be corrected, M
The ECC operation is executed in parallel with the data processing of PU1. Therefore, the number of errors that occur is suppressed from increasing until the error cannot be corrected, the reliability is high,
In addition, it is possible to realize a storage control device that can operate at high speed.

【0031】図3は、本発明の第2実施例における動作
フローチャートである。この第2実施例においては、装
置構成は、図1の例と同等となる。また、図3の例と図
2の例との共通するステップは、同一番号が付されてい
る。そいて、図3の例と図2の例とのことなるところ
は、図3の例においては、図2の例のステップ201と
210との間に、ステップ201A〜201Cが加入さ
れ、ステップ216以降にステップ216A及び216
Bが加入されているところである。
FIG. 3 is an operation flowchart in the second embodiment of the present invention. In the second embodiment, the device configuration is equivalent to that of the example of FIG. The steps common to the example of FIG. 3 and the example of FIG. 2 are given the same numbers. 3 is different from the example of FIG. 2 in that in the example of FIG. 3, steps 201A to 201C are added between steps 201 and 210 of the example of FIG. Then steps 216A and 216
B is joining.

【0032】この第2実施例において、メモリチェック
コントローラ4は、内部に記憶モジュール11、12、
13毎の1ビットエラー発生におけるエラーカウンター
を持っている。そして、規定回数以上のエラーが発生し
た場合は、バススイッチコントローラ5を介してMPU
1に報告する。そして、規定回数以上のエラーが発生し
た記憶モジュールのバスへの接続は禁止され、予備の記
憶モジュールへの接続に切り替えられる。
In the second embodiment, the memory check controller 4 internally includes the storage modules 11, 12,
It has an error counter for each 1-bit error occurrence. When an error occurs more than the specified number of times, the MPU is sent via the bus switch controller 5.
Report to 1. Then, the connection to the bus of the storage module in which the error occurs more than the specified number of times is prohibited, and the connection to the spare storage module is switched.

【0033】つまり、図3のステップ201において、
パリティエラーと判断された場合には、ステップ201
Aに進み、メモリチェックコントローラ4は、記憶モジ
ュール毎に、パリティエラーが発生した回数をカウント
アップする。次に、ステップ201Bにおいて、カウン
トアップしたエラーカウント数が、予め定められた規定
回数に達したか否かをメモリチェックコントローラ4が
判断する。規定回数に達していれば、ステップ201C
に進み、該当する記憶モジュールに対するエラーフラグ
を“1”に設定する。続いて、処理は、ステップ210
に進む。ステップ201Bにおいて、エラーカウント数
が規定数に達していない場合には、ステップ210に進
む。以降、上述したステップ210〜216が実行され
る。
That is, in step 201 of FIG.
If it is determined to be a parity error, step 201
In step A, the memory check controller 4 counts up the number of times a parity error has occurred for each storage module. Next, in step 201B, the memory check controller 4 determines whether or not the counted-up error count number has reached a predetermined prescribed number. If the specified number of times has been reached, step 201C
Then, the error flag for the corresponding storage module is set to "1". Subsequently, the process proceeds to step 210.
Proceed to. In step 201B, when the error count number has not reached the specified number, the process proceeds to step 210. Thereafter, steps 210 to 216 described above are executed.

【0034】そして、ステップ216からステップ21
6Aに進み、エラーフラグが“1”か否かをバススイッ
チコントローラ5が判断する。エラーフラグが“1”で
あれば、ステップ216Bに進み、該当する記憶モジュ
ールにおいて規定回数以上パリティエラーが発生したこ
とをMPU1に通知する。続いて、ステップ201に戻
る。ステップ216Aにおいて、エラーフラグが“1”
でなければ、ステップ216Bを介することなく、ステ
ップ201に戻る。
Then, from step 216 to step 21
6A, the bus switch controller 5 determines whether the error flag is "1". If the error flag is "1", the process proceeds to step 216B, and the MPU 1 is notified that a parity error has occurred a specified number of times or more in the corresponding storage module. Then, it returns to step 201. In step 216A, the error flag is "1"
If not, the process returns to step 201 without passing through step 216B.

【0035】以上のように、本発明の第2実施例におい
ても、第1実施例と同様な効果を得ることができる他、
パリティエラーの発生回数をカウントし、パリティエラ
ーの発生回数が規定数以上となった記憶モジュールをM
PU1に通知するように構成したので、MPU1はその
ことを認識して、他の記憶モジュールのみをアクセスす
る等の処置を実行することができ、データ処理の確実性
を向上することができる。
As described above, also in the second embodiment of the present invention, the same effect as in the first embodiment can be obtained, and
Counts the number of parity error occurrences, and M counts the number of parity error occurrences above the specified number.
Since it is configured to notify the PU1, the MPU1 can recognize the fact and execute a procedure such as accessing only another storage module, and the reliability of data processing can be improved.

【0036】図4は本発明の第3実施例の概略構成図で
あり、図1の例と同等な部分には、同一の符号が付して
ある。この図4の例においては、図1の例に交換判断部
25が追加されている。この図4の例は、図3の例と同
様に、パリティエラーの発生回数が規定数に達したか否
かを判定する。そして、パリティエラーの発生回数が規
定数に達した記憶モジュールが、新たな記憶モジュール
に交換されたか否かを判断し、交換された場合には、そ
れをバススイッチコントローラ5を介してMPU1に通
知する構成となっている。
FIG. 4 is a schematic configuration diagram of the third embodiment of the present invention, in which the same parts as those of the example of FIG. 1 are designated by the same reference numerals. In the example of FIG. 4, a replacement determination unit 25 is added to the example of FIG. In the example of FIG. 4, similarly to the example of FIG. 3, it is determined whether or not the number of occurrences of the parity error has reached the specified number. Then, it is determined whether or not the storage module in which the number of occurrences of the parity error has reached the specified number has been replaced with a new storage module, and if it has been replaced, it is notified to the MPU 1 via the bus switch controller 5. It is configured to do.

【0037】つまり、図4において、記憶モジュール1
1、12、13のうちのいずれか1つが予備の記憶モジ
ュールとして備えられている。ここでは、記憶モジュー
ルC13が予備の記憶モジュールとする。メモリチェッ
クコントローラ4による記憶モジュールA11又は記憶
モジュールB12の診断において、1ビットエラーがメ
モリチェックコントローラ4の内部に持つカウンターに
よる規定回数以上発生した場合は、メモリチェックコン
トローラ4は記憶モジュールA11又は記憶モジュール
B12の信頼性が低いと判断し、MPU1に対して割込
報告を行い、MPU1は割込処理サイクルの中で記憶モ
ジュールA11内のデータを予備の記憶モジュールC1
3へ転送する。
That is, in FIG. 4, the storage module 1
Any one of 1, 12, 13 is provided as a spare storage module. Here, the storage module C13 is a spare storage module. In the diagnosis of the storage module A11 or the storage module B12 by the memory check controller 4, when the 1-bit error occurs more than the specified number of times by the counter inside the memory check controller 4, the memory check controller 4 determines the storage module A11 or the storage module B12. Determines that the reliability of the storage module A11 is low and issues an interrupt report to the MPU1.
Transfer to 3.

【0038】そして、その後にMPU1が記憶モジュー
ルA11に割り付けられていたアドレスでアクセスをし
ようとすると、バススイッチコントローラ5により物理
的なバスの接続をMPU1と記憶モジュールA11では
なく、MPU1と記憶モジュールC13とが接続され、
データの転送が開始される。これにより、規定回数以上
のエラーが発生した記憶モジュールはこのシステムから
切り放される。
Then, when the MPU1 tries to access at the address assigned to the storage module A11 after that, the bus switch controller 5 does not connect the physical bus to the MPU1 and the storage module A11 but the MPU1 and the storage module C13. And are connected,
Data transfer is started. As a result, the storage module in which the error has occurred the specified number of times or more is disconnected from the system.

【0039】この場合、各記憶モジュールには、交換フ
ラグの格納領域が備えられており、パリティエラーの発
生回数が規定数未満のときには、交換フラグは“0”に
設定されている。そして、パリティエラーの発生回数が
規定数以上となると、交換判断部25により、その記憶
モジュールの交換フラグが“1”に設定される。
In this case, each storage module is provided with an exchange flag storage area, and the exchange flag is set to "0" when the number of occurrences of parity errors is less than the specified number. Then, when the number of times of occurrence of the parity error becomes equal to or more than the specified number, the exchange judging section 25 sets the exchange flag of the storage module to "1".

【0040】交換判断部25は、パリティエラーの発生
回数が規定数以上となった記憶モジュールに対して、交
換フラグをチェックする。この交換フラグが“0”であ
れば、つまり、記憶モジュールが新しい記憶モジュール
と交換された場合には、これを交換判断部25が検知
し、バススイッチコントローラ5を介してMPU1に通
知する。これにより、MPU1及びバススイッチコント
ローラ5は、記憶モジュールA11が交換されたことを
認識し、交換された記憶モジュールの使用を開始する。
この交換された新たな記憶モジュールに対しては、メモ
リチェックコントローラ4内部のエラーカウント値は、
“0”に戻されている。
The exchange judging section 25 checks the exchange flag for the storage module in which the number of occurrences of the parity error has exceeded the specified number. If the replacement flag is "0", that is, if the storage module is replaced with a new storage module, the replacement determination unit 25 detects this and notifies the MPU 1 via the bus switch controller 5. As a result, the MPU 1 and the bus switch controller 5 recognize that the storage module A11 has been replaced, and start using the replaced storage module.
The error count value in the memory check controller 4 for the replaced new storage module is
It has been returned to "0".

【0041】以上のように、本発明の第3実施例によれ
ば、第2実施例と同様な効果を得ることができる。さら
に、この第3実施例によれば、新たな記憶モジュールに
交換したことを自動的に判断し、記憶モジュールが健全
な場合の動作に自動的に復帰することができる。
As described above, according to the third embodiment of the present invention, the same effect as the second embodiment can be obtained. Furthermore, according to the third embodiment, it is possible to automatically determine that the storage module has been replaced with a new storage module and automatically return to the operation when the storage module is healthy.

【0042】[0042]

【発明の効果】本発明は、以上説明したように構成され
ているので、次のような効果がある。複数の記憶モジュ
ール備えられ、MPUがアクセスしている記憶モジュー
ル以外の記憶モジュールのデータが、エラー検出訂正さ
れるように、メモリチェックコントローラにより制御さ
れ、MPUのデータ処理と並行してECC動作が実行さ
れる。したがって、発生するエラーの数がエラー訂正不
可能となるまで増加することが抑制され、信頼性が高
く、かつ高速動作が可能な記憶制御装置を実現すること
ができる。
Since the present invention is constructed as described above, it has the following effects. The memory check controller is controlled so that the data of a storage module provided with a plurality of storage modules other than the storage module accessed by the MPU is error-corrected, and the ECC operation is executed in parallel with the data processing of the MPU. To be done. Therefore, it is possible to realize a highly reliable storage control device capable of suppressing the increase in the number of errors that occur until the error cannot be corrected and operating at high speed.

【0043】また、パリティエラーの発生回数をカウン
トし、パリティエラーの発生回数が規定数以上となった
記憶モジュールをMPUに通知するように構成すれば、
MPUはそのことを認識して、他の記憶モジュールのみ
をアクセスする等の処置を実行することができ、データ
処理の確実性を向上することができる。
If the number of parity error occurrences is counted and the storage module in which the number of parity error occurrences is equal to or greater than the specified number is notified to the MPU,
The MPU recognizes this and can perform a procedure such as accessing only another storage module, and the reliability of data processing can be improved.

【0044】また、新たな記憶モジュールに交換したこ
とを自動的に判断し、バススイッチコントローラに伝達
する交換判断部を備えるように構成すれば、記憶モジュ
ールの交換に伴って、記憶モジュールが健全な場合の動
作に自動的に復帰することができる。
Further, if the storage module is constituted so as to automatically judge that the storage module has been replaced with a new storage module and transmit it to the bus switch controller, the storage module will be sound when the storage module is replaced. You can automatically return to the case.

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

【図1】本発明の第1実施例の概略構成図である。FIG. 1 is a schematic configuration diagram of a first embodiment of the present invention.

【図2】図1の例の動作フロチャートである。FIG. 2 is an operation flowchart of the example of FIG.

【図3】本発明の第2実施例の動作フローチャートであ
る。
FIG. 3 is an operation flowchart of the second embodiment of the present invention.

【図4】本発明の第3実施例の概略構成図である。FIG. 4 is a schematic configuration diagram of a third embodiment of the present invention.

【図5】従来における記憶制御装置の一例を示す図であ
る。
FIG. 5 is a diagram showing an example of a conventional storage control device.

【図6】従来における記憶制御装置の他の例を示す図で
ある。
FIG. 6 is a diagram showing another example of a conventional storage control device.

【符号の説明】[Explanation of symbols]

1 MPU 2 アドレスラッチ回路 3 パリティチェック回路 4 メモリチェックコントローラ 5 バススイッチコントローラ 6 ECC回路 7 データラッチ回路 8 第1バススイッチ 9 第2バススイッチ 11 記憶モジュールA 12 記憶モジュールB 13 記憶モジュールC 21 WAIT信号 22 エラー通知信号 23 アドレスバス 24 MPUデータバス 25 交換判断部 1 MPU 2 Address Latch Circuit 3 Parity Check Circuit 4 Memory Check Controller 5 Bus Switch Controller 6 ECC Circuit 7 Data Latch Circuit 8 First Bus Switch 9 Second Bus Switch 11 Storage Module A 12 Storage Module B 13 Storage Module C 21 WAIT Signal 22 error notification signal 23 address bus 24 MPU data bus 25 exchange determination unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データと誤り検出・訂正ビットとパリテ
ィビットが記憶される複数の主記憶モジュールと、 上記主記憶モジュールから読み出した情報を処理するメ
インプロセッサと、 上記主記憶モジュールから読み出した情報のパリティチ
ェックを行うパリティチェック手段と、 上記主記憶モジュールから読み出した情報のエラー検出
訂正を行うエラー検出訂正手段と、 上記複数の主記憶モジュールのいずれかをメインプロセ
ッサかエラー検出訂正手段かに接続するバススイッチ
と、 エラー検出訂正手段に、複数の主記憶手段のうちのいず
れの記憶モジュールの情報をエラー検出訂正するかを制
御するメモリチェックコントローラと、 上記メインプロセッサからのアクセス要求と、メモリチ
ェックコントローラからの情報読み出し要求に応じて、
メインプロセッサに接続する記憶モジュールと、メモリ
チェックコントローラに接続する主記憶モジュールとが
異なるように、バススイッチの動作を制御するバススイ
ッチコントローラと、 を備えることを特徴とする主記憶制御装置。
1. A plurality of main memory modules in which data, error detection / correction bits, and parity bits are stored, a main processor for processing information read from the main memory module, and information read from the main memory module. A parity check means for performing a parity check, an error detection / correction means for performing error detection / correction of information read from the main memory module, and one of the plurality of main memory modules are connected to the main processor or the error detection / correction means. A bus switch, an error detection / correction means, a memory check controller for controlling which storage module of a plurality of main storage means performs error detection / correction, an access request from the main processor, and a memory check controller To read information from Then,
A main memory control device comprising: a bus switch controller that controls an operation of a bus switch so that a memory module connected to a main processor and a main memory module connected to a memory check controller are different from each other.
【請求項2】 請求項1記載の主記憶制御装置におい
て、メインプロセッサは、主記憶モジュールから読み出
した情報に、パリティエラーが存在することをパリティ
チェック手段により検出されたときには、情報処理動作
を中断し、メモリチェックコントローラは、エラー検出
訂正動作中の主記憶モジュールからの情報読み出しを停
止し、上記パリティエラーが発生した情報のエラー検出
訂正を実行して、訂正した情報メインプロセッサに供給
するとともに、パリティエラーが発生した主記憶モジュ
ールに訂正した情報を格納し、上記情報読み出しを停止
した主記憶モジュールからの情報読み出しを再開するこ
とを特徴とする主記憶制御装置。
2. The main memory control device according to claim 1, wherein the main processor interrupts the information processing operation when the parity check means detects that a parity error is present in the information read from the main memory module. Then, the memory check controller stops reading information from the main memory module during the error detection and correction operation, executes error detection and correction of the information in which the parity error occurs, and supplies the corrected information to the main processor. A main memory control device, wherein corrected information is stored in a main memory module in which a parity error has occurred, and information reading is restarted from the main memory module that stopped reading the information.
【請求項3】 請求項1記載の主記憶制御装置におい
て、上記メモリチェックコントローラは、エラーカウン
タを有し、上記複数の主記憶モジュール毎にパリティエ
ラーの発生回数をカウントし、このカウント数が所定の
数以上となった記憶モジュールを示す指令信号をメイン
プロセッサ及びバススイッチコントローラに、供給し、
バススイッチコントローラは、メモリチェックコントロ
ーラからの指令信号に従って、上記カウント数が所定の
数以上となった記憶モジュールを選択することを停止す
ることを特徴とする主記憶制御装置。
3. The main memory control device according to claim 1, wherein the memory check controller has an error counter, counts the number of times a parity error has occurred for each of the plurality of main memory modules, and the counted number is predetermined. To the main processor and the bus switch controller, which supplies a command signal indicating the storage module that has exceeded the number of
The main memory control device, wherein the bus switch controller stops selecting the storage module having the count value of a predetermined number or more in accordance with a command signal from the memory check controller.
【請求項4】 請求項3記載の主記憶制御装置におい
て、上記カウント数が所定の数以上となった記憶モジュ
ールが新たな記憶モジュールに交換されたか否かを判断
する交換判断部を、さらに備え、この交換判断部は、記
憶モジュールが交換されたことをバススイッチコントロ
ーラに伝達することを特徴とする主記憶制御装置。
4. The main storage control device according to claim 3, further comprising a replacement determination unit that determines whether or not the storage module whose count number has become a predetermined number or more has been replaced with a new storage module. The main storage control device, wherein the replacement determination unit notifies the bus switch controller that the storage module has been replaced.
JP7232398A 1995-09-11 1995-09-11 Main storage controller Pending JPH0981465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7232398A JPH0981465A (en) 1995-09-11 1995-09-11 Main storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7232398A JPH0981465A (en) 1995-09-11 1995-09-11 Main storage controller

Publications (1)

Publication Number Publication Date
JPH0981465A true JPH0981465A (en) 1997-03-28

Family

ID=16938625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7232398A Pending JPH0981465A (en) 1995-09-11 1995-09-11 Main storage controller

Country Status (1)

Country Link
JP (1) JPH0981465A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187214A (en) * 2008-02-05 2009-08-20 Fujitsu Ltd Electronic equipment for detecting defective memory, defective memory detection method and program for the same
EP2352092A1 (en) 2009-12-25 2011-08-03 Fujitsu Limited Processor, information processing apparatus, and method of controlling processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187214A (en) * 2008-02-05 2009-08-20 Fujitsu Ltd Electronic equipment for detecting defective memory, defective memory detection method and program for the same
EP2352092A1 (en) 2009-12-25 2011-08-03 Fujitsu Limited Processor, information processing apparatus, and method of controlling processor
US8448019B2 (en) 2009-12-25 2013-05-21 Fujitsu Limited Processor, information processing apparatus, and method of controlling processor

Similar Documents

Publication Publication Date Title
EP0141743B1 (en) Pipeline error correction
EP0032957B1 (en) Information processing system for error processing, and error processing method
US8667372B2 (en) Memory controller and method of controlling memory
US7984357B2 (en) Implementing minimized latency and maximized reliability when data traverses multiple buses
US7246257B2 (en) Computer system and memory control method thereof
JP2770913B2 (en) Parity replacement apparatus and method
JPH113290A (en) Memory control system
JP3534917B2 (en) Memory access control method
US7584388B2 (en) Error notification method and information processing apparatus
JPH0981465A (en) Main storage controller
EP3882774B1 (en) Data processing device
JPH0316655B2 (en)
JPH05265790A (en) Microprocessor device
JPH0535616A (en) Data transfer system
JPH0816487A (en) Data processor
JPH06195235A (en) Controller and processor
JPH04115339A (en) Memory error processing system
JPH06110721A (en) Memory controller
JPH07306811A (en) Memory fault diagnosing method
JPH02297650A (en) Receiver
JPS61166654A (en) Memory patrol diagnosis system
JPH05274228A (en) Data processor
JPH0135369B2 (en)
JPH0793171A (en) Fault processing method in memory access
JPH0481953A (en) Memory device