JPH0316655B2 - - Google Patents

Info

Publication number
JPH0316655B2
JPH0316655B2 JP61085704A JP8570486A JPH0316655B2 JP H0316655 B2 JPH0316655 B2 JP H0316655B2 JP 61085704 A JP61085704 A JP 61085704A JP 8570486 A JP8570486 A JP 8570486A JP H0316655 B2 JPH0316655 B2 JP H0316655B2
Authority
JP
Japan
Prior art keywords
data
error detection
storage module
parity
correction
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
JP61085704A
Other languages
Japanese (ja)
Other versions
JPS62242258A (en
Inventor
Tsutomu Sakamoto
Masami Wakabayashi
Shunichi Kato
Kenji Yoshida
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.)
Iwaki Electronics Co Ltd
Original Assignee
Iwaki Electronics 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 Iwaki Electronics Co Ltd filed Critical Iwaki Electronics Co Ltd
Priority to JP61085704A priority Critical patent/JPS62242258A/en
Publication of JPS62242258A publication Critical patent/JPS62242258A/en
Publication of JPH0316655B2 publication Critical patent/JPH0316655B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、記憶モジユール内にデータと誤り検
出・訂正ビツトとパリテイビツトとを共存させ、
データの誤り検出・訂正を行う記憶装置に関し、
更に詳しくは、部分書込み(パーシヤル・ライ
ト)時にパリテイエラーが検出されなければ直ち
に書込みサイクルに切換えて記憶モジユールから
の読出しデータと実際に書込むべきデータとでワ
ードを構成し記憶モジユールに書込むことによ
り、アクセスタイムの短縮と信頼性の向上を実現
する記憶装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a method for coexisting data, error detection/correction bits, and parity bits in a storage module.
Regarding storage devices that detect and correct data errors,
More specifically, if a parity error is not detected during partial write, the process immediately switches to a write cycle, composes a word with data read from the storage module and data to be actually written, and writes it to the storage module. The present invention relates to a storage device that achieves shortened access time and improved reliability.

[従来の技術] コンピユータシステムは、情報処理量が大規模
化し、またサービス形態がオンライン・リアルタ
イム処理へと発展するにつれて、ますます高信頼
度と高速化が要求される。このためにはデータの
記憶動作や入出力動作が高速であり且つ高信頼性
を有する記憶装置が必要となる。
[Prior Art] Computer systems are required to have higher reliability and higher speed as the amount of information processed increases and as service formats evolve to online real-time processing. For this purpose, a storage device that can perform data storage operations and input/output operations at high speed and has high reliability is required.

記憶装置を高信頼度化する技術として、誤り検
出・訂正(ECC)回路を組み込み、記憶モジユ
ールから読出した情報について誤りの有無を検査
し、誤りが有る場合には訂正する機能を有するも
のがある。
As a technology for increasing the reliability of storage devices, there is a technology that incorporates an error detection and correction (ECC) circuit to check whether there are any errors in the information read from the storage module and to correct any errors found. .

また記憶モジユール内にデータと共にパリテイ
ビツトを記憶させ、読出し時にパリテイチエツク
を行つて誤りの検出を行うものもある。
There is also a device that stores parity bits along with data in a storage module, and performs a parity check upon reading to detect errors.

[発明が解決しようとする問題点] 誤り検出・訂正回路には様々な方式があるが、
主記記憶装置では高速性が要求されることから単
一誤り訂正・2重誤り検出コードが用いられるこ
とが多い。しかしこの誤り検出・訂正コードを用
いても誤りの検出・訂正を行うための時間が必要
であり、記憶装置を高速化する上で大きな障害と
なつている。
[Problems to be solved by the invention] There are various methods for error detection/correction circuits, but
Since high-speed performance is required in the main storage device, a single error correction/double error detection code is often used. However, even if this error detection/correction code is used, time is required to detect and correct errors, which is a major obstacle in increasing the speed of storage devices.

例えば1ワード=32ビツト(4バイト)+ECC
ビツト(7ビツト)構成の記憶装置の場合、必ず
しも常に32ビツトでアクセスするとは限らない。
マイクロプロセツサの命令等で記憶装置への書込
み動作のバイト長はランダム(1、2、3…バイ
トであり、1ワードのあるバイトだけを書き換え
る動作(これを「部分書込み」という)が必要に
なる。特にこのような部分書込み動作の場合に
は、通常、以下のようなアクセス手順によるため
アクセスタイムが長くなる問題がある。
For example, 1 word = 32 bits (4 bytes) + ECC
In the case of a storage device with a bit (7-bit) configuration, it is not necessarily always accessed using 32 bits.
The byte length of write operations to the storage device by microprocessor instructions, etc. is random (1, 2, 3...bytes), and it is necessary to rewrite only a certain byte of one word (this is called a "partial write"). Particularly in the case of such a partial write operation, there is a problem that the access time becomes long because the following access procedure is normally used.

(1) 記憶モジユールからデータを読出す(メモ
リ・リードサイクル)。
(1) Read data from the storage module (memory read cycle).

(2) 読出したデータを誤り検出・訂正回路に入力
し、データの検査をおこなう。
(2) Input the read data to the error detection/correction circuit and inspect the data.

(3) 誤り検出・訂正回路の出力データと実際に書
込むべきデータとを組み合わせてワードを構成
する。
(3) Construct a word by combining the output data of the error detection/correction circuit and the data to be actually written.

(4) このようにして構成したデータを記憶モジユ
ールに書込む(メモリ・ライトサイクル)。
(4) Write the data configured in this way to the storage module (memory write cycle).

これに対してパリテイチエツクによつて誤りを
検出する方式は、通常動作時のアクセスタイムの
高速化を図ることができるが、誤りの検出しか行
わないからパリテイエラーが生じただけでシステ
ムダウンになつてしまう虞れがあり、信頼性の高
い記憶装置を実現することはできない。パリテイ
エラーが検出されると、誤り検出あるいは内容の
報告と記憶保持を行い、以降の動作が一旦打ち切
られるからである。
On the other hand, the method of detecting errors by parity check can speed up the access time during normal operation, but since it only detects errors, the system can go down even if a parity error occurs. There is a risk that the data will deteriorate, and a highly reliable storage device cannot be realized. This is because when a parity error is detected, the error is detected or the contents are reported and stored, and subsequent operations are temporarily discontinued.

本発明の目的は、上記のような従来技術の欠点
を解消し、高信頼性で且つ部分書込み時における
高速動作を動作に実現できるような記憶装置を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the drawbacks of the prior art as described above, and to provide a storage device that is highly reliable and can operate at high speed during partial writing.

[問題点を解決するための手段] 上記のような目的を達成することのできる本発
明は、誤り検出・訂正ビツトとパリテイビツトが
データと共存する記憶モジユールを用い、パリテ
イツエツクを誤り検出・訂正動作に優先させ、パ
リテイエラーが発生した時のみ誤り検出・訂正回
路でデータの訂正を行うようにした記憶装置であ
る。
[Means for Solving the Problems] The present invention, which can achieve the above objects, uses a storage module in which error detection/correction bits and parity bits coexist with data, and incorporates parity checking into error detection/correction operations. This is a storage device in which data is corrected using an error detection/correction circuit only when a parity error occurs.

本発明に係る記憶装置は、データと誤り検出・
訂正ビツトとパリテイビツトが記憶される記憶モ
ジユールと、記憶モジユールへのパリテイビツト
書込み手段と、記憶モジユールから読出した情報
のパリテイチエツク手段と、記憶モジユールへの
誤り検出・訂正ビツトの書込みおよび記憶モジユ
ールから読出したデータの誤り検出・訂正を行う
誤り検出・訂正回路と、データバスからの書込み
データと誤り検出・訂正回路からの出力データと
を選択して出力する第1のマルチプレクサと、該
第1のマルチプレクサの出力を保持する書込みデ
ータレジスタと、書込みデータレジスタの出力と
前記記憶モジユールからの読出しデータとを選択
して誤り検出・訂正回路に供給する第2のマルチ
プレクサを具備している。
The storage device according to the present invention includes data, error detection and
A storage module in which correction bits and parity bits are stored, means for writing parity bits into the storage module, means for parity checking information read from the storage module, and writing of error detection/correction bits into the storage module and reading from the storage module. an error detection/correction circuit that detects and corrects errors in the data; a first multiplexer that selects and outputs write data from the data bus and output data from the error detection/correction circuit; and a second multiplexer for selecting the output of the write data register and read data from the storage module and supplying the selected data to an error detection/correction circuit.

記憶モジユールへの部分書込み時に、記憶モジ
ユールからの読出し情報にパリテイエラーが無け
れば直ちに書込みサイクルに切換えて記憶モジユ
ールからの読出しデータと実際に書込むべきデー
タとでワードを構成し、パリテイエラーが生じた
時には記憶モジユールからの読出しデータを誤り
検出・訂正回路に入力し訂正したデータと実際に
書込むべきデータとでワードを構成する。
When partially writing to the storage module, if there is no parity error in the information read from the storage module, the program immediately switches to the write cycle, composes a word with the data read from the storage module and the data to be actually written, and eliminates the parity error. When this occurs, the read data from the storage module is input to the error detection/correction circuit, and the corrected data and the data to be actually written form a word.

[作用] 本記憶装置における部分書込みのアクセス手順
は次の如くである。
[Operation] The access procedure for partial writing in this storage device is as follows.

() 記憶モジユールから情報を読出しパリテイ
チエツクを行う(メモリ・リードサイクル)。
このステツプで万一パリテイエラーが検出され
た場合には、従来技術と同様の手順となる。
() Reads information from the storage module and performs a parity check (memory read cycle).
If a parity error is detected in this step, the same procedure as in the prior art is followed.

(a) 読出したデータを誤り検出・訂正回路に
入力し、データの誤り検出と訂正を行う。
(a) Input the read data to the error detection/correction circuit to detect and correct data errors.

(a) 訂正したデータと実際に書込むべきデー
タとを組み合わせてワード構成を行い、再度誤
り検出・訂正回路に入力する。
(a) The corrected data and the data to be actually written are combined to form a word, and the word is input again to the error detection/correction circuit.

(a) 誤り検出・訂正回路を通したデータと誤
り検出・訂正ビツト(誤り検出・訂正回路で発
生)でパリテイビツトを作成する。そしてデー
タ、誤り検出・訂正ビツト、パリテイビツトを
記憶モジユールに書込む。
(a) Create a parity bit using the data passed through the error detection/correction circuit and the error detection/correction bit (generated by the error detection/correction circuit). The data, error detection/correction bits, and parity bits are then written to the storage module.

正常動作では前記のステツプでパリテイエラ
ーは検出されない。この場合には、前記のステ
ツプが省略され、 (b) 記憶モジユールから読出したデータと実
際に書込むべきデータとを組み合わせてワード
構成を行い誤り検出・訂正回路に入力する。
In normal operation, parity errors are not detected in the above steps. In this case, the above step is omitted, and (b) the data read from the storage module and the data to be actually written are combined into a word structure and input to the error detection/correction circuit.

(b) 誤り検出・訂正回路を通したデータと誤
り検出・訂正ビツトでパリテイビツトを作成す
る。そしてデータ、誤り検出・訂正ビツト、パ
リテイビツトを記憶モジユールに書込む(前記
aのステツプと同じ)。
(b) Create parity bits from the data passed through the error detection/correction circuit and the error detection/correction bits. Data, error detection/correction bits, and parity bits are then written to the storage module (same as step a).

このように、正常動作時には、記憶モジユール
から読出したデータと実際に書込むべきデータと
でワード構成を行うので、誤り検出・訂正回路で
のデータチエツクのための時間的損失がなくなり
高速化を図ることができる。
In this way, during normal operation, the data read from the storage module and the data to be actually written are combined into a word structure, eliminating time loss for data checks in the error detection/correction circuit and increasing speed. be able to.

また万一異常が生じた時には誤り検出・訂正回
路の動作によつて誤り検出とその訂正が行われる
ため、高い信頼性を維持することができる。
Furthermore, in the event that an abnormality occurs, the error detection/correction circuit operates to detect and correct the error, so that high reliability can be maintained.

[実施例] 第1図は本発明に係る記憶装置の一実施例を示
すブロツク図である。多数の記憶素子の集合体で
ある記憶モジユール10は、その一部がデータ領
域10a,10bであり、残りは誤り検出・訂正
ビツト用領域10c及びパリテイビツト用領域1
0dとなる。つまり本発明では記憶モジユール1
0内にデータビツトと誤り検出・訂正ビツトとパ
リテイビツトとが共存している状態にある。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of a storage device according to the present invention. A part of the storage module 10, which is an aggregate of a large number of storage elements, is data areas 10a and 10b, and the rest is an area 10c for error detection/correction bits and an area 1 for parity bits.
It becomes 0d. In other words, in the present invention, the storage module 1
0, data bits, error detection/correction bits, and parity bits coexist.

本発明はこのような記憶モジユール10と、記
憶モジユール10へのパリテイビツト書込み手段
12と、記憶モジユール10から読出した情報の
パリテイチエツク手段14と、記憶モジユール1
0への誤り検出・訂正ビツトの書込み及び記憶モ
ジユール10から読出したデータの誤り検出・訂
正を行う誤り検出・訂正回路(ECC)16を具
備している。更にデータバス18からの書込みデ
ータと誤り検出・訂正回路16からの出力データ
とを選択して出力する第1のマルチプレクサ20
と、該第1のマルチプレクサ20の出力を保持す
る書込みデータレジスタ22と、書込みデータレ
ジスタ22の出力と前記記憶モジユール10から
の読出しデータとを選択して誤り検出・訂正回路
16に供給する第2のマルチプレクサ24を備え
ている。
The present invention provides such a storage module 10, a parity bit writing means 12 to the storage module 10, a parity check means 14 for information read from the storage module 10, and a parity bit writing means 12 for the storage module 10.
An error detection/correction circuit (ECC) 16 is provided for writing error detection/correction bits to 0 and detecting/correcting errors in data read from the storage module 10. Furthermore, a first multiplexer 20 selects and outputs write data from the data bus 18 and output data from the error detection/correction circuit 16.
a write data register 22 that holds the output of the first multiplexer 20; a second selector that selects the output of the write data register 22 and the read data from the storage module 10 and supplies it to the error detection/correction circuit 16; multiplexer 24.

この実施例では記憶モジユール10からのデー
タ及び誤り検出・訂正ビツトは一旦読出しデータ
レジスタ26でラツチされる。従つてこの読出し
データレジスタ16もデータ領域(上位は26
a、下位は26b)と誤り検出・訂正コード領域
26cとを有する。そしてこの読出しデータレジ
スタ26の出力が第2のマルチプレクサ24(上
位は24a、下位は24b)、誤り検出・訂正回
路16、及び読出し用の第3のマルチプレクサ2
8に供給される。
In this embodiment, the data and error detection/correction bits from storage module 10 are once latched in read data register 26. Therefore, this read data register 16 also has a data area (upper 26
a, the lower one is 26b) and an error detection/correction code area 26c. The output of this read data register 26 is sent to the second multiplexer 24 (upper 24a, lower 24b), error detection/correction circuit 16, and third multiplexer 2 for reading.
8.

誤り検出・訂正回路16は、単一誤り訂正・2
重誤り検出方式が用いられており、2重誤りの検
出信号は割込み発生回路(図示せず)に送られ割
り込み信号を発生する。第3のマルチプレクサ2
8の出力はドライバ30を介してデータバス18
に供給され、逆にデータバス18によつて送られ
てきたデータはレシーバ32を介して第1のマル
チプレクサ20に送られる。
The error detection/correction circuit 16 includes a single error correction/2
A double error detection method is used, and a double error detection signal is sent to an interrupt generation circuit (not shown) to generate an interrupt signal. Third multiplexer 2
The output of 8 is connected to the data bus 18 via the driver 30.
The data supplied to the data bus 18 and conversely sent by the data bus 18 are sent via the receiver 32 to the first multiplexer 20 .

次に本記憶装置の動作について説明する。 Next, the operation of this storage device will be explained.

全桁書込み(フルライト)時 データバス18で送られてきたデータはレシ
ーバ32、第1のマルチプレクサ20を介して
書込みデータレジスタ22にラツチされる。そ
の出力は第2のマルチプレクサ24を通つて誤
り検出・訂正回路16に送られる。誤り検出・
訂正回路16からのデータ及び誤り検出・訂正
ビツトによつてパリテイビツト書込み手段12
でパリテイビツトを作成し、前記データと誤り
検出・訂正ビツトとパリテイビツトとが記憶モ
ジユール10の所定の領域に書込まれる。
When writing all digits (full write), data sent via the data bus 18 is latched into the write data register 22 via the receiver 32 and the first multiplexer 20. Its output is sent through a second multiplexer 24 to an error detection and correction circuit 16. Error detection/
The parity bit writing means 12 is processed by the data from the correction circuit 16 and the error detection/correction bits.
A parity bit is created, and the data, error detection/correction bit, and parity bit are written into a predetermined area of the storage module 10.

上位桁部分書込み時 データバス18で送られてきた上位データを
レシーバ32、第1のマルチプレクサ20を介
して書込みデータレジスタ22の上位側22a
にラツチし、また記憶モジユール10からのデ
ータを読出しデータレジスタ26にラツチす
る。この時、記憶モジユール10からの読出し
情報をパリテイチエツク手段14に送り、パリ
テイチエツクを行う。パリテイチエツクの結果
によつて次の二つのデータフローに分かれる。
When writing the upper digit part, upper digit data sent via the data bus 18 is sent to the upper side 22a of the write data register 22 via the receiver 32 and the first multiplexer 20.
It also reads data from the storage module 10 and latches it into the data register 26. At this time, the read information from the storage module 10 is sent to the parity check means 14 to perform a parity check. The data flow is divided into the following two depending on the result of the parity check.

(‐1) パリテイエラー無し: パリテイエラー信号をインバータ34によ
つて反転した信号(パリテイエラー無しを示
す信号)とPWTU(上位桁書込み)信号とが
アンド回路36aに送られ、それによつて制
御された読出しデータレジスタ26bの下位
データと、書込みデータレジスタ22aの上
位データとで第2のマルチプレクサ24によ
りワード構成が行われる。ワード構成したデ
ータが誤り検出・訂正回路16に入力する。
これ以降は前記の全桁書込みのデータフロ
ーと同じである。誤り検出・訂正回路16か
らのデータ及び誤り検出・訂正ビツトはパリ
テイビツト書込み手段12に送られパリテイ
ビツトを作成し、前記データと誤り検出・訂
正ビツトとパリテイビツトとを記憶モジユー
ル10の所定の領域に書込む。
(-1) No parity error: A signal obtained by inverting the parity error signal by the inverter 34 (a signal indicating no parity error) and a PWTU (higher digit write) signal are sent to the AND circuit 36a. The second multiplexer 24 forms a word using the lower data of the read data register 26b and the upper data of the write data register 22a. The word-structured data is input to the error detection/correction circuit 16.
The subsequent data flow is the same as the data flow for writing all digits described above. The data and error detection/correction bits from the error detection/correction circuit 16 are sent to the parity bit writing means 12 to create parity bits, and the data, error detection/correction bits, and parity bits are written in a predetermined area of the storage module 10. .

(‐2) パリテイエラー発生時: 読出しデータレジスタ26の出力を第2の
マルチプレクサ26を介して、また誤り検
出・訂正ビツトを直接誤り検出・訂正回路1
6に入力する。そして誤り検出・訂正回路1
6にてデータの訂正を行う。訂正されたデー
タを第1のマルチプレクサ20を介して書込
みデータレジスタ22の下位側22bにラツ
チする。ラツチしたデータを第2のマルチプ
レクサ24を介して誤り検出・訂正回路16
に再度入力する。これ以降はの全桁書込み
のデータフローと同じであり、誤り検出・訂
正回路16からのデータ及び誤り検出・訂正
ビツトはパリテイビツト書込み手段12に送
られパリテイビツトを発生させ、前記データ
と誤り検出・訂正ビツトとパリテイビツトと
を記憶モジユール10の所定の領域に書込
む。
(-2) When a parity error occurs: The output of the read data register 26 is sent to the second multiplexer 26, and the error detection/correction bit is sent directly to the error detection/correction circuit 1.
Enter 6. and error detection/correction circuit 1
6. Correct the data. The corrected data is latched into the lower side 22b of the write data register 22 via the first multiplexer 20. The latched data is sent to the error detection/correction circuit 16 via the second multiplexer 24.
Enter it again. The data flow from this point on is the same as the data flow for all-digit writing, and the data and error detection/correction bits from the error detection/correction circuit 16 are sent to the parity bit writing means 12 to generate a parity bit, and the data and error detection/correction bits are sent to the parity bit writing means 12. The bit and parity bit are written to a predetermined area of the storage module 10.

なお2ビツトエラーの検出は、記憶素子のアク
セス禁止時間(第2図参照)でラツチデータを
誤り検出・訂正回路16に入力することにより
行う。
Note that detection of a 2-bit error is performed by inputting the latch data to the error detection/correction circuit 16 during the storage element access prohibition time (see FIG. 2).

下位桁部分書込み時 基本的には上記で述べた上位桁部分書込み
時と同様である。データバス18から送られて
きた下位データは書込みデータレジスタ22の
下位側22bにラツチされる。記憶モジユール
10からのデータは読出しデータレジスタ26
にラツチされる。この時、記憶モジユール10
からの読出し情報のパリテイチエツクが行わ
れ、その結果によつて、次の二つのデータフロ
ーに分かれる。
When writing the lower digit part It is basically the same as when writing the upper digit part described above. The lower data sent from the data bus 18 is latched into the lower side 22b of the write data register 22. Data from storage module 10 is read from data register 26.
is latched to. At this time, memory module 10
A parity check is performed on the read information, and depending on the result, the data flow is divided into the following two data flows.

(‐1) パリテイエラー無し: パリエイエラー信号をインバータ34で反
転した信号とPWTL(下位桁書込み)信号と
がアンド回路36bに送られ、それによつて
制御された読出しデータレジスタ26aの上
位データと、書込みデータレジスタ22bの
下位データとで第2のマルチプレクサ24に
よりワード構成が行われる。ワード構成した
データが誤り検出・訂正回路16に入力す
る。これ以降はの全桁書込みのデータフロ
ーと同じである。
(-1) No parity error: A signal obtained by inverting the parity error signal by the inverter 34 and a PWTL (lower digit write) signal are sent to the AND circuit 36b, thereby controlling the upper data of the read data register 26a. and the lower data of the write data register 22b are word-configured by the second multiplexer 24. The word-structured data is input to the error detection/correction circuit 16. The data flow after this is the same as the data flow for writing all digits.

(‐2) パリテイエラー発生時: 読出しデータレジスタ26の出力を第2の
マルチプレクサ26を介して、また誤り検
出・訂正ビツトを直接誤り検出・訂正回路1
6に入力する。そして誤り検出・訂正回路1
6にてデータの訂正を行い訂正されたデータ
を第1のマルチプレクサ20を介して書込み
データレジスタ22の上位側22aにラツチ
する。ラツチしたデータを第2のマルチプレ
クサ24を介して誤り検出・訂正回路16に
再度入力する。これ以降はの全桁書込みの
データフローと同じである。
(-2) When a parity error occurs: The output of the read data register 26 is sent to the second multiplexer 26, and the error detection/correction bit is sent directly to the error detection/correction circuit 1.
Enter 6. and error detection/correction circuit 1
6, the data is corrected and the corrected data is latched into the upper side 22a of the write data register 22 via the first multiplexer 20. The latched data is input again to the error detection/correction circuit 16 via the second multiplexer 24. The data flow after this is the same as the data flow for writing all digits.

第2図は書込み時におけるタイムチヤート
である。ここで信号*MWTCはプロセツサ
が記憶装置に対して発行する負論理のメモリ
書込み指令信号、符号*XACKは記憶装置
が書込み動作を開始したことをプロセツサ側
に通知する負論理の応答信号、符号*RAS,
*CASは記憶素子に対してのアドレス切換
えを指示する負論理の信号、符号*WEは記
憶素子に対する負論理の書込み信号である。
FIG. 2 is a time chart during writing. Here, the signal *MWTC is a negative logic memory write command signal issued by the processor to the storage device, and the code *XACK is a negative logic response signal that notifies the processor that the storage device has started a write operation. RAS,
*CAS is a negative logic signal that instructs address switching to the storage element, and *WE is a negative logic write signal to the storage element.

同図Aはパリテイエラーが発生した時の部
分書込み動作を示し、同図Bはパリテイエラ
ーが無い時の部分書込み動作を示す。両者を
比較すれば明らかなように、同図Bの場合は
同図Aに対して時間Tだけ*WE信号が早く
生じ、*RAS,*CAS,*WEの立上がりが
早くなつている。これは同図Aの(ECC
…誤り検出・訂正回路によるデータチエツ
ク)の期間が同図Bでは省かれているからで
ある。このようにして本発明では正常時(パ
リテイエラー無し)の高速化を実現している
のである。
Figure A shows a partial write operation when a parity error occurs, and Figure B shows a partial write operation when there is no parity error. As is clear from comparing the two, in the case of Figure B, the *WE signal is generated earlier by time T than in Figure A, and the rises of *RAS, *CAS, and *WE are earlier. This is (ECC
This is because the period (data check by the error detection/correction circuit) is omitted in FIG. In this way, the present invention achieves high speed during normal operation (no parity error).

読出し時 記憶モジユール10からの読出し時には、読
出したデータと誤り検出・訂正ビツトとが読出
しデータレジスタ26にセツトされると同時
に、読出された情報がパリエチチエツク手段1
4でパリテイチエツクされる。読出しデータレ
ジスタ26の出力は第3のマルチプレクサ28
と誤り検出・訂正回路16とに入力される。パ
リテイエラーが検出されなければ読出しデータ
レジスタ20からのデータがそのまま第3のマ
ルチプレクサ28で有効とされドライバ30を
介してデータバス18に送出される。もしパリ
テイエラーが検出されたならば誤り検出・訂正
回路16からの出力が第3のマルチプレクサ2
8で有効とされ、訂正されたデータがドライバ
30によつてデータバス18に送出される。な
お2ビツト以上のエラーが生じた時には割込み
発生回路(図示せず)に信号が送られ割込み信
号を発生してプロセツサに通知する。
At the time of reading When reading from the storage module 10, the read data and error detection/correction bits are set in the read data register 26, and at the same time, the read information is sent to the parity check means 1.
Parity is checked at 4. The output of the read data register 26 is sent to a third multiplexer 28
and the error detection/correction circuit 16. If no parity error is detected, the data from the read data register 20 is made valid by the third multiplexer 28 and sent to the data bus 18 via the driver 30. If a parity error is detected, the output from the error detection/correction circuit 16 is sent to the third multiplexer 2.
8, the corrected data is sent to data bus 18 by driver 30. Note that when an error of 2 bits or more occurs, a signal is sent to an interrupt generation circuit (not shown) to generate an interrupt signal and notify the processor.

以上本発明の好ましい一実施例について詳述し
たが、本発明はかかる構成のみに限定されるもの
でないこと無論である。記憶モジユールはデータ
と誤り検出・訂正ビツトとパリテイビツトを記憶
させうる領域を有していればよく、必ずしも物理
的に単一の記憶モジユールを必要とするものでは
ない。誤り検出・訂正回路における誤り検出・訂
正方式は単一誤り訂正・2重誤り検出方式に限ら
れるものではなく、任意の誤り検出・訂正方式を
採用しうる。
Although a preferred embodiment of the present invention has been described in detail above, it goes without saying that the present invention is not limited to this configuration. The storage module only needs to have an area capable of storing data, error detection/correction bits, and parity bits, and does not necessarily require a single physical storage module. The error detection/correction method in the error detection/correction circuit is not limited to the single error correction/double error detection method, and any error detection/correction method may be adopted.

[発明の効果] 本発明は上記のように記憶モジユールにデータ
と誤り検出・訂正ビツトとパリテイビツトを記憶
させ、パリテイチエツク手段と誤り検出・訂正回
路を設けてマルチプレクサによつてデータを選択
制御しているから、部分書込み動作において、正
常時(パリテイエラーがない時)には誤り検出・
訂正動作を省略した分だけ高速動作が実現できる
し、また異常時(パリテイエラーが発生した時)
でも以降の動作が打ち切られることなく誤り検
出・訂正回路を通つた訂正済みのデータが使用さ
れるため高い信頼性が実現できる。
[Effects of the Invention] As described above, the present invention stores data, error detection/correction bits, and parity bits in a storage module, is provided with a parity check means and an error detection/correction circuit, and selects and controls data by a multiplexer. Therefore, during partial write operation, error detection and
High-speed operation can be achieved by omitting the correction operation, and also in the event of an abnormality (when a parity error occurs)
However, high reliability can be achieved because subsequent operations are not interrupted and the corrected data that has passed through the error detection/correction circuit is used.

従つて本発明による記憶装置は、高速性と高信
頼性とを兼ね備えており、大量の情報をリアルタ
イムで処理するような場合にシステムの高性能化
を図ることができると共にエラーの発生によるシ
ステムダウンを最小限度に抑えることができる優
れた効果を有するものである。
Therefore, the storage device according to the present invention has both high speed and high reliability, and can improve the performance of the system when processing a large amount of information in real time, while also preventing system downtime due to the occurrence of errors. This has the excellent effect of minimizing the

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

第1図は本発明に係る記憶装置の一実施例を示
すブロツク図、第2図はその部分書込み動作のタ
イムチヤートである。 10……記憶モジユール、12……パリテイビ
ツト書込み手段、14……パリテイチエツク手
段、16……誤り検出・訂正回路、18……デー
タバス、20……第1のマルチプレクサ、22…
…書込みデータレジスタ、24……第2のマルチ
プレクサ。
FIG. 1 is a block diagram showing an embodiment of a storage device according to the present invention, and FIG. 2 is a time chart of a partial write operation thereof. DESCRIPTION OF SYMBOLS 10... Storage module, 12... Parity bit writing means, 14... Parity checking means, 16... Error detection/correction circuit, 18... Data bus, 20... First multiplexer, 22...
...Write data register, 24...Second multiplexer.

Claims (1)

【特許請求の範囲】[Claims] 1 データと誤り検出・訂正ビツトとパリテイビ
ツトが記憶される記憶モジユールと、記憶モジユ
ールへのパリテイビツト書込み手段と、記憶モジ
ユールから読出した情報のパリテイチエツク手段
と、記憶モジユールへの誤り検出・訂正ビツトの
書込みおよび記憶モジユールから読出したデータ
の誤り検出・訂正を行う誤り検出・訂正回路と、
データバスからの書込みデータと誤り検出・訂正
回路からの出力データとを選択して出力する第1
のマルチプレクサと、該第1のマルチプレクサの
出力を保持する書込みデータレジスタと、書込み
データレジスタの出力と前記記憶モジユールから
の読出しデータとを選択して誤り検出・訂正回路
に供給する第2のマルチプレクサを具備し、部分
書込み時に、記憶モジユールからの読出し情報に
パリテイエラーが無ければ書込みサイクルに切換
えて記憶モジユールからの読出しデータと実際に
書込むべきデータとでワードを構成し、パリテイ
エラーが生じた時には記憶モジユールからの読出
しデータを誤り検出・訂正回路に入力し訂正した
データと実際に書込むべきデータとでワードを構
成することを特徴とする記憶装置。
1 A storage module in which data, error detection/correction bits, and parity bits are stored, means for writing parity bits into the storage module, means for parity checking information read from the storage module, and error detection/correction bit writing into the storage module. an error detection and correction circuit that detects and corrects errors in data written and read from the storage module;
The first selector selects and outputs the write data from the data bus and the output data from the error detection/correction circuit.
a multiplexer, a write data register that holds the output of the first multiplexer, and a second multiplexer that selects the output of the write data register and the read data from the storage module and supplies it to an error detection/correction circuit. During partial writing, if there is no parity error in the information read from the storage module, the program switches to the write cycle and configures a word with the data read from the storage module and the data to be actually written, and if a parity error occurs. A storage device characterized in that, at times, data read from a storage module is input to an error detection/correction circuit, and the corrected data and data to be actually written form a word.
JP61085704A 1986-04-14 1986-04-14 Storage device Granted JPS62242258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61085704A JPS62242258A (en) 1986-04-14 1986-04-14 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61085704A JPS62242258A (en) 1986-04-14 1986-04-14 Storage device

Publications (2)

Publication Number Publication Date
JPS62242258A JPS62242258A (en) 1987-10-22
JPH0316655B2 true JPH0316655B2 (en) 1991-03-06

Family

ID=13866209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61085704A Granted JPS62242258A (en) 1986-04-14 1986-04-14 Storage device

Country Status (1)

Country Link
JP (1) JPS62242258A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194046A (en) * 1988-01-29 1989-08-04 Hitachi Ltd Memory access system
JP2006190425A (en) * 2005-01-07 2006-07-20 Nec Electronics Corp Semiconductor memory device
JP4703220B2 (en) * 2005-03-04 2011-06-15 株式会社東芝 Semiconductor memory device
JP4643334B2 (en) * 2005-03-31 2011-03-02 富士通セミコンダクター株式会社 Semiconductor memory device
JP2007066423A (en) * 2005-08-31 2007-03-15 Toshiba Corp Semiconductor integrated circuit apparatus
US10372531B2 (en) * 2017-01-05 2019-08-06 Texas Instruments Incorporated Error-correcting code memory

Also Published As

Publication number Publication date
JPS62242258A (en) 1987-10-22

Similar Documents

Publication Publication Date Title
US7246257B2 (en) Computer system and memory control method thereof
JP3270367B2 (en) Semiconductor storage device
JPH0316655B2 (en)
JP3534917B2 (en) Memory access control method
JP2751822B2 (en) Memory control method for FIFO memory device
JP2993099B2 (en) Redundant memory device
JPH02143352A (en) Memory error detection and correction system
JPH02143991A (en) Semiconductor memory
JPH02297235A (en) Memory data protecting circuit
JPS63129440A (en) Store through buffer device
JPS62125453A (en) Storage device
JPH0481953A (en) Memory device
JPH0922387A (en) Memory unit
JP2000099410A (en) Memory control circuit and information processor
JPH05324487A (en) Memory control system
JPH04233052A (en) Duplex memory device
JPS62212751A (en) Data processor
JPH02302855A (en) Memory control system
JPS6041151A (en) Correcting system of memory error
JPS59217298A (en) Memory error relieve system
JPH0594379A (en) Shared memory control system
JPH0332823B2 (en)
JPS60225941A (en) Microprogram control device
JPS6325380B2 (en)
JPS62245453A (en) Substituting method for alternative memory