JP2007025777A - Data error detection/correction method and memory device with data error detection/correction function - Google Patents

Data error detection/correction method and memory device with data error detection/correction function Download PDF

Info

Publication number
JP2007025777A
JP2007025777A JP2005203003A JP2005203003A JP2007025777A JP 2007025777 A JP2007025777 A JP 2007025777A JP 2005203003 A JP2005203003 A JP 2005203003A JP 2005203003 A JP2005203003 A JP 2005203003A JP 2007025777 A JP2007025777 A JP 2007025777A
Authority
JP
Japan
Prior art keywords
data
error
error detection
volatile memory
memory
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
JP2005203003A
Other languages
Japanese (ja)
Inventor
Yoshitaka Saito
義孝 齊藤
Junji Arai
淳治 新井
Yasushi Okamoto
康史 岡本
Yasuhiro Tazoe
靖宏 田副
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.)
Oki Electric Industry Co Ltd
OF Networks Co Ltd
Oki Comtec Ltd
Original Assignee
Oki Electric Industry Co Ltd
OF Networks Co Ltd
Oki Comtec 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 Oki Electric Industry Co Ltd, OF Networks Co Ltd, Oki Comtec Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2005203003A priority Critical patent/JP2007025777A/en
Publication of JP2007025777A publication Critical patent/JP2007025777A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To attain universal data error detection/correction by simplifying processing, and reducing hard quantity. <P>SOLUTION: This memory device is provided with a non-volatile memory 10 for storing control data to which an error detection bit is added, a volatile memory 40 to be used for the operation of a device 1, a data reading circuit 20 for reading the control data stored in the memory 10, and for detecting the error of the read control data, a data writing circuit 30 for writing data with little error among the control data read by the circuit 20 in the memory 40, an error detection circuit 50 for reading the data written in the memory 40, and for successively detecting the error of the data in a timing in the non-operation of the memory 40 and a history writing circuit 60. When the error of data is detected by the circuit 50, the circuit 20 is controlled, and the data are read again from the memory 10, and written again in the memory 40 so that the data can be restored. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、例えば、音声通話処理等のようにメモリアクセスに余裕のある装置における、利用形態により制御データを入れ替えて動作するメモリデータに対するデータ誤り検出・訂正方法、及びデータ誤り検出・訂正機能付きメモリ装置に関するものである。   The present invention provides a data error detection / correction method and a data error detection / correction function for memory data that operates by exchanging control data depending on the use mode in a device with sufficient memory access, such as voice call processing. The present invention relates to a memory device.

従来、データの誤り検出・訂正には、データに対してパリティや誤り訂正符号の付与が行われている。このようなデータ誤り検出・訂正の技術として、例えば、次のような文献に記載されるものがあった。   Conventionally, for error detection / correction of data, a parity or an error correction code is added to the data. As such data error detection / correction techniques, for example, there are those described in the following documents.

特開2004−7217号公報JP 2004-7217 A 特開2001−6386号公報JP 2001-6386 A

特許文献1の図1等には、バイト誤り訂正・検出方法及び装置に関する技術が記載されている。このバイト誤り訂正・検出装置は、情報理論に基づくハミング符号により誤り検出・訂正を行うものであり、送信側の符号化回路により、誤り訂正ビットがデータに付与され、受信側に設けられたシンドローム生成回路、及び誤り訂正回路でチェックして、誤り検出と訂正可能な誤りを訂正するようになっている。   FIG. 1 and the like of Patent Document 1 describe a technique related to a byte error correction / detection method and apparatus. This byte error correction / detection device performs error detection / correction using a Hamming code based on information theory, and an error correction bit is added to data by an encoding circuit on the transmission side, and a syndrome provided on the reception side. The generation circuit and the error correction circuit are checked to detect errors and correct errors that can be corrected.

特許文献2の図1には、誤り訂正機能をデータ保存用の紫外線消去可能なメモリ(Erasable and Programmable Read Only Memory、以下「EPROM」という。)に付与した誤り訂正機能付きEPROMに関する技術が記載されている。この誤り訂正機能付きEPROMにおいて、誤り訂正ビットはデータ書き込み時に生成され、リード(読み出し)によるデータチェックにより誤り検出・訂正を行うようになっている。   FIG. 1 of Patent Document 2 describes a technique related to an EPROM with an error correction function in which an error correction function is provided to an ultraviolet erasable memory (Erasable and Programmable Read Only Memory, hereinafter referred to as “EPROM”) for data storage. ing. In this EPROM with an error correction function, error correction bits are generated at the time of data writing, and error detection / correction is performed by data check by reading (reading).

しかしながら、従来の特許文献1の技術では、情報理論によるシンドローム等のパリティ行列の生成等、シンドローム生成回路、及び誤り訂正回路におけるハード量の増加や演算処理の増加を引き起こし、小規模装置や演算能力の少ない装置には適用が困難という課題があった。   However, the conventional technique of Patent Document 1 causes an increase in the amount of hardware and an increase in arithmetic processing in the syndrome generation circuit and the error correction circuit, such as generation of a parity matrix such as a syndrome by information theory, and the like. There is a problem that it is difficult to apply to an apparatus with few.

又、特許文献2の技術では、部品としてメモリがEPROMに限定されてしまうため、汎用性が無くて現実的には使用できない場合が発生するという課題や、任意のビットに対しての誤り検出・訂正ができないという課題があった。   Further, in the technique of Patent Document 2, since the memory is limited to EPROM as a component, there is a problem that there is a case where it cannot be used practically due to lack of versatility, and an error detection / arrangement for an arbitrary bit. There was a problem that correction was not possible.

本発明は、前記従来の課題を解決し、誤り検出・訂正の処理が簡単で、ハード量が少なく、汎用性のあるデータ誤り検出・訂正方法及びデータ誤り検出・訂正機能付きメモリ装置を提供することを目的とする。   The present invention provides a data error detection / correction method and a memory device with a data error detection / correction function that solve the above-described conventional problems, have a simple hardware for error detection / correction, have a small amount of hardware, and are versatile. For the purpose.

前記課題を解決するために、本発明のデータ誤り検出・訂正方法は、誤り検出ビットが付加されたデータを不揮発性メモリに格納した後、前記不揮発性メモリに格納された前記データを読み取って揮発性メモリに書き込み、前記揮発性メモリの動作時に前記揮発性メモリに書き込まれた前記データを読み取って使用する装置において、前記揮発性メモリの非動作時のタイミングで、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを連続して検出するか、或いは、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを随時監視するようにしている。   In order to solve the above problems, the data error detection / correction method according to the present invention stores the data with the error detection bit added in a nonvolatile memory, and then reads the data stored in the nonvolatile memory and volatilizes the data. In the device that writes to the volatile memory and reads and uses the data written to the volatile memory during the operation of the volatile memory, the device is written to the volatile memory at a timing when the volatile memory is not operating. The data is read and the error of the data is continuously detected, or the data written in the volatile memory is read to monitor the error of the data as needed.

又、本発明のデータ誤り検出・訂正機能付きメモリ装置は、誤り検出ビットが付加されたデータを格納する不揮発性メモリと、データを書き込む揮発性メモリであって、動作時に前記書き込まれたデータが読み取られて使用される前記揮発性メモリと、前記不揮発性メモリに格納された前記データを読み取ると共に、前記読み取ったデータの誤りを検出するデータ読み取り回路と、前記データ読み取り回路で読み取った前記データのうち誤りのないデータを前記揮発性メモリに書き込むデータ書き込み回路と、前記揮発性メモリの非動作時のタイミングで、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを連続して検出する誤り検出回路(或いは、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを随時監視する誤り検出回路)とを有している。   The memory device with a data error detection / correction function according to the present invention includes a nonvolatile memory for storing data to which an error detection bit is added and a volatile memory for writing the data. The volatile memory to be read and used, the data stored in the nonvolatile memory, a data reading circuit for detecting an error in the read data, and the data read by the data reading circuit A data writing circuit for writing error-free data into the volatile memory, and reading out the data written in the volatile memory at a timing when the volatile memory is not operated, and continuously detecting errors in the data. An error detection circuit to detect (or read the data written in the volatile memory and read this data. And a error detection circuit) from time to time monitors the error data.

本発明のデータ誤り検出・訂正方法、及びデータ誤り検出・訂正機能付きメモリ装置によれば、複数のデータに対する誤り検出を行い、簡単なパリティチェックのような誤り検出のみで、元データヘの復旧が可能となる。しかも、揮発性メモリの非動作時に検出・復旧が行える可能性が高く、このデータ誤り検出・訂正方法、或いはデータ誤り検出・訂正機能付きメモリ装置を実装した装置の故障を減少させることができる。又、誤りが発生したことを保存することで、その実装した装置のメンテナンスが容易になる。従って、誤り検出・訂正の処理が簡単で、ハード量が少なく、汎用性のあるデータ誤り検出・訂正方法、或いはデータ誤り検出・訂正機能付きメモリ装置を実現できる。   According to the data error detection / correction method and memory device with data error detection / correction function of the present invention, error detection is performed on a plurality of data, and the original data can be restored only by error detection such as simple parity check. It becomes possible. In addition, it is highly possible that detection / recovery can be performed when the volatile memory is not in operation, and the failure of a device in which this data error detection / correction method or memory device with a data error detection / correction function is mounted can be reduced. In addition, by storing that an error has occurred, maintenance of the mounted device is facilitated. Therefore, it is possible to realize a data error detection / correction method or a memory device with a data error detection / correction function that is simple in error detection / correction, has a small amount of hardware, and is versatile.

本発明の最良の実施形態のデータ誤り検出・訂正機能付きメモリ装置では、誤り検出ビットが付加されたデータを格納する不揮発性メモリと、データを書き込む揮発性メモリであって、動作時に前記書き込まれたデータが読み取られて使用される前記揮発性メモリと、前記不揮発性メモリに格納された前記データを読み取ると共に、前記読み取ったデータの誤りを検出するデータ読み取り回路と、前記データ読み取り回路で読み取った前記データのうち誤りのないデータを前記揮発性メモリに書き込むデータ書き込み回路と、前記揮発性メモリの非動作時のタイミングで、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを連続して検出する誤り検出回路とを有している。   The memory device with a data error detection / correction function according to the best embodiment of the present invention includes a nonvolatile memory for storing data to which an error detection bit is added and a volatile memory for writing data, which are written during operation. The volatile memory that is used by reading the data, the data stored in the non-volatile memory, the data reading circuit that detects an error in the read data, and the data reading circuit A data writing circuit for writing data without error in the data to the volatile memory, and reading out the data written in the volatile memory at a timing when the volatile memory is not operating, And an error detection circuit for detecting continuously.

又、このメモリ装置には、再書き込み制御手段と、誤り情報書き込み回路とが設けられている。前記再書き込み制御手段では、前記誤り検出回路が前記データの誤りを検出したときには、前記データ読み取り回路を制御し、前記不揮発性メモリから再度データを読み込み、前記揮発性メモリに再度書き込ませる。更に、前記誤り情報書き込み回路では、前記誤り検出回路が前記データの誤りを検出したときには、この誤り情報を前記不揮発性メモリに書き込むようになっている。   The memory device is provided with a rewrite control means and an error information write circuit. In the rewrite control means, when the error detection circuit detects an error in the data, the data read circuit is controlled so that the data is read again from the non-volatile memory and rewritten into the volatile memory. Further, in the error information writing circuit, when the error detection circuit detects an error in the data, the error information is written in the nonvolatile memory.

(実施例1の構成)
図1は、本発明の実施例1を示すデータ誤り検出・訂正機能付きメモリ装置の概略の構成図である。
(Configuration of Example 1)
FIG. 1 is a schematic configuration diagram of a memory device with a data error detection / correction function according to a first embodiment of the present invention.

このデータ誤り検出・訂正機能付きメモリ装置は、例えば、音声通話処理のようにメモリアクセスに余裕のある装置1の制御データを格納するためのものであり、その装置1の外部よりのデータ書き込み装置2に、無線又は有線の通信媒体3を介して接続される不揮発性メモリ(例えば、制御データ保持用メモリ)10を有している。制御データ保持用メモリ10は、データ書き込み装置2から送られてくる制御デーD1,D2,D3,・・・を保持するメモリであり、電源を切ってもデータが保存されるEPROM、電気的消去可能なメモリ(Electrically EPROM、以下「EEPROM」という。)、フラッシュメモリ等で構成され、複数の制御データD1,D2,D3,・・・を格納する記憶領域11,12,13,・・・、及び誤り情報PBを格納する記憶領域14を有している。   This memory device with a data error detection / correction function is for storing control data of the device 1 having sufficient memory access, such as voice call processing, and a data writing device from the outside of the device 1 2 includes a non-volatile memory (for example, a control data holding memory) 10 connected via a wireless or wired communication medium 3. The control data holding memory 10 is a memory that holds control data D1, D2, D3,... Sent from the data writing device 2, and is an EPROM that stores data even when the power is turned off. Storage areas 11, 12, 13,..., Each of which includes a memory (Electrically EPROM, hereinafter referred to as “EEPROM”), a flash memory, etc., and stores a plurality of control data D1, D2, D3,. And a storage area 14 for storing error information PB.

メモリ10には、これに保存された制御データD1,D2,D3,・・・を読み取るためのデータ読み取り回路20が接続されている。データ読み取り回路20には、データ書き込み回路30を介して、該データ書き込み回路30により制御データD1,D2,・・・が書き込まれる揮発性メモリ(例えば、動作用メモリ)40が接続されている。動作用メモリ40は、スタティック型の随時読み書き可能なメモリ(Static Random Access Memory、以下「SRAM」という。)、ダイナミック型の随時読み書き可能なメモリ(Dynamic RAM、以下「DRAM」という。)等で構成され、複数の制御データD1,D2,・・・を格納する記憶領域41,42,・・・を有している。   Connected to the memory 10 is a data reading circuit 20 for reading control data D1, D2, D3,... Stored therein. A volatile memory (for example, an operation memory) 40 into which the control data D1, D2,... Are written by the data writing circuit 30 is connected to the data reading circuit 20 via the data writing circuit 30. The operation memory 40 includes a static random access memory (Static Random Access Memory, hereinafter referred to as “SRAM”), a dynamic random read / write memory (Dynamic RAM, hereinafter referred to as “DRAM”), and the like. And storage areas 41, 42,... For storing a plurality of control data D1, D2,.

メモリ40には、装置1内の動作のための動作データ読み取り回路4が接続されると共に、データの誤り検出のための誤り検出回路50が接続されている。誤り検出回路50は、誤り検出後の動作に応じて、再度データを書き込む場合は、データ読み取り回路20に対して再読み込み制御信号S50を与えるための再書き込み制御手段としての機能を有している。この誤り検出回路50には、誤り情報書き込み回路である履歴書き込み回路60が接続されている。履歴書き込み回路60は、誤り検出回路50による誤り検出後に誤り検出情報を保存する場合は、メモリ10に対してその誤り情報PBを書き込むための回路である。   The memory 40 is connected to an operation data reading circuit 4 for operation in the apparatus 1 and an error detection circuit 50 for detecting data errors. The error detection circuit 50 has a function as a rewrite control means for giving a reread control signal S50 to the data reading circuit 20 when data is written again according to the operation after error detection. . The error detection circuit 50 is connected to a history writing circuit 60 that is an error information writing circuit. The history writing circuit 60 is a circuit for writing the error information PB to the memory 10 when the error detection information is stored after the error detection by the error detection circuit 50.

(実施例1のデータ誤り検出・訂正方法)
装置1外部よりのデータ書き込み装置2から、通信媒体3を介して、一般的な通信による方法や直接ケーブル接続による方法等によりダウンロードすることで、制御データ保持用メモリ10の記憶領域11,12,13,・・・に制御データD1,D2,D3,・・・の書き込みを行う。このとき、制御データD1,D2,D3,・・・に既にパリティビット等の誤り検出ビットを追加して書き込む。誤り検出ビットは制御データD1,D2,D3,・・・の一部として扱えるため、メモリ10の記憶領域11,12,13,・・・には、異なったビット長のデータでも、それぞれのビット長に適した誤り検出ビットを付与することができる。
(Data error detection / correction method of Embodiment 1)
By downloading from the data writing device 2 from outside the device 1 via the communication medium 3 by a general communication method or a direct cable connection method, the storage areas 11, 12, 13 is written with control data D1, D2, D3,. At this time, an error detection bit such as a parity bit is already added to the control data D1, D2, D3,. Since the error detection bits can be handled as a part of the control data D1, D2, D3,..., The storage areas 11, 12, 13,. An error detection bit suitable for the length can be provided.

例えば、データ幅が8ビットのメモリ10を使用する場合、制御データD1が12ビット、制御データD2が4ビット等でも、制御データD1の記憶領域11は偶数アドレスの先頭ビット、制御データD2の記憶領域12は各アドレスの先頭ビットを誤り検出ビットとして、書き込み時に定義すればよい。実際には、誤り検出ビットの位置は、本来のデータ以外のところであればどこでもよい。   For example, when the memory 10 having a data width of 8 bits is used, even if the control data D1 is 12 bits, the control data D2 is 4 bits, etc., the storage area 11 of the control data D1 is the first bit of the even address and the control data D2 is stored. The area 12 may be defined at the time of writing by using the first bit of each address as an error detection bit. Actually, the position of the error detection bit may be anywhere other than the original data.

装置1の起動時に、メモリ10からデータ読み取り回路20により制御データD1,・・・が読み出され、誤り検出回路21で誤り検出ビットによるチェックが行われる。誤りがない場合、データ書き込み回路30により動作用メモリ40の記憶領域41,42,・・・に書き込まれる。このとき、メモリ10に保存されていた誤り検出ビットも、そのまま、メモリ40に書き込まれる。なお、誤り検出回路21でデータの誤りが検出された場合は、例えば、図示しない制御信号等により、再度、データ書き込み装置2からメモリ10へ制御データの書き込みが行われ、この制御データがデータ読み取り回路20により読み取られ、データ書き込み回路30によりメモリ40に書き込まれる。   When the apparatus 1 is activated, the control data D1,... Are read from the memory 10 by the data reading circuit 20, and the error detection circuit 21 performs a check using an error detection bit. If there is no error, the data writing circuit 30 writes the data in the storage areas 41, 42,. At this time, the error detection bit stored in the memory 10 is also written in the memory 40 as it is. If an error in the data is detected by the error detection circuit 21, for example, control data is written again from the data writing device 2 to the memory 10 by a control signal (not shown), and the control data is read from the data. The data is read by the circuit 20 and written to the memory 40 by the data writing circuit 30.

メモリ40に書き込まれた制御データD1,D2,・・・は、装置1の動作に応じて動作データ読み取り回路4により読み出され、該装置1の制御のために使用される。ここで、装置1は特定の状態で、メモリ40の読み出しを行わない時間が発生する。例えば、音声通話が行われていない場合等で、メモリ40から読み出しを行わない状態が発生する。このようなメモリ40にアクセスしない状態が発生した時、誤り検出回路50は、メモリ40中の制御データD1,D2,・・・を読み出し、誤り検出を行う。   The control data D1, D2,... Written in the memory 40 are read by the operation data reading circuit 4 according to the operation of the device 1 and used for controlling the device 1. Here, a time during which the device 1 does not read the memory 40 occurs in a specific state. For example, a state in which reading from the memory 40 is not performed occurs when a voice call is not performed. When such a state where the memory 40 is not accessed occurs, the error detection circuit 50 reads the control data D1, D2,... In the memory 40 and performs error detection.

ここで、誤りを検出した場合、誤り検出回路50から再読み込み制御信号S50がデータ読み取り回路20に与えられ、メモリ10から再度、メモリ40に制御データを書き込むことで、制御データの復旧(即ち、誤り訂正)が行われる。なお、データの復旧ではなく、データ異常の検出のみで、装置1を停止することも可能である。データ異常の内容である誤り情報PBは、履歴書き込み回路60により、メモリ10の記憶領域14に書き込むことで、異常内容の保存が可能である。   Here, when an error is detected, the reread control signal S50 is given from the error detection circuit 50 to the data reading circuit 20, and the control data is restored from the memory 10 to the memory 40 again, thereby restoring the control data (ie, Error correction). Note that the apparatus 1 can be stopped only by detecting a data abnormality, not by data recovery. The error information PB, which is the content of the data abnormality, is stored in the storage area 14 of the memory 10 by the history writing circuit 60, so that the abnormality content can be saved.

(実施例1の効果)
本実施例1によれば、複数の制御データD1,D2,・・・に対する誤り検出を行い、簡単なパリティチェックのような誤り検出のみで、元データヘの復旧が可能となる。しかも、装置1の動作していない状況で検出・復旧が行える可能性が高く、装置1の故障を減少させることができる。又、誤りが発生したことを保存することで、装置1のメンテナンスも容易になる。
(Effect of Example 1)
According to the first embodiment, error detection is performed on a plurality of control data D1, D2,..., And it is possible to restore the original data only by error detection such as a simple parity check. Moreover, there is a high possibility that detection and recovery can be performed in a situation where the device 1 is not operating, and failure of the device 1 can be reduced. Moreover, maintenance of the apparatus 1 is facilitated by storing the fact that an error has occurred.

(実施例2の構成)
図2は、本発明の実施例2を示すデータ誤り検出・訂正機能付きメモリ装置の概略の構成図であり、実施例1を示す図1中の要素と共通の要素には共通の符号が付されている。
(Configuration of Example 2)
FIG. 2 is a schematic configuration diagram of a memory device with a data error detection / correction function according to a second embodiment of the present invention. Elements common to those in FIG. Has been.

本実施例2のデータ誤り検出・訂正機能付きメモリ装置では、実施例1の動作データ読み取り回路4及び誤り検出回路50に代えて、これとは構成の異なる動作データ読み取り回路4A及び誤り検出回路50Aが設けられている。実施例1と同様の動作用メモリ40は、装置1内の動作のため動作データ読み取り回路4Aに接続されるが、同時に誤り検出回路50Aにも接続されている。誤り検出回路50Aは、誤り検出後の動作に応じて、再度デー夕を書き込む場合は、再読み込み制御信号S50Aをデータ読み取り回路20に与える再書き込み制御手段としての機能を有している。誤り検出回路50Aには、実施例1と同様に、履歴書き込み回路60が接続されている。その他の構成は、実施例1と同様である。   In the memory device with data error detection / correction function of the second embodiment, the operation data reading circuit 4A and the error detection circuit 50A having different configurations are used instead of the operation data reading circuit 4 and the error detection circuit 50 of the first embodiment. Is provided. The operation memory 40 similar to that of the first embodiment is connected to the operation data reading circuit 4A for the operation in the apparatus 1, but is also connected to the error detection circuit 50A at the same time. The error detection circuit 50A has a function as a rewrite control means for giving a reread control signal S50A to the data reading circuit 20 when data is written again according to the operation after error detection. Similar to the first embodiment, a history writing circuit 60 is connected to the error detection circuit 50A. Other configurations are the same as those of the first embodiment.

(実施例2のデータ誤り検出・訂正方法)
実施例1と同様に、装置1外部よりのデータ書き込み装置2から、通信媒体3を介してダウンロードすることで、制御データ保持用メモリ10の記憶領域11,12,13,・・・に制御データデータD1,D2,D3,・・・の書き込みを行う。このとき、制御データD1,D2,D3,・・・に既に誤り検出ビットを追加して書き込む。誤り検出ビットはデータの一部として扱えるため、メモリ10の記憶領域11,12,13,・・・のなかには、異なったビット長の制御データD1,D2,D3,・・・でも、それぞれのビット長に適した誤り検出ビットを付与することができる。例えば、データ幅が8ビットのメモリ10を使用する場合、制御データD1が12ビット、制御データD2が4ビット等でも、制御データD1の記憶領域11は偶数アドレスの先頭ビット、制御データD2の記憶領域12は各アドレスの先頭ビットを誤り検出ビットとして、書き込み時に定義すればよい。実際には、誤り検出ビットの位置は、本来のデータ以外のところであればどこでもよい。
(Data error detection / correction method of embodiment 2)
As in the first embodiment, the control data is stored in the storage areas 11, 12, 13,... Of the control data holding memory 10 by downloading from the data writing device 2 from the outside of the device 1 via the communication medium 3. Data D1, D2, D3,... Are written. At this time, an error detection bit is already added to the control data D1, D2, D3,. Since the error detection bits can be handled as a part of the data, even in the control data D1, D2, D3,... Having different bit lengths in the storage areas 11, 12, 13,. An error detection bit suitable for the length can be provided. For example, when the memory 10 having a data width of 8 bits is used, even if the control data D1 is 12 bits, the control data D2 is 4 bits, etc., the storage area 11 of the control data D1 is the first bit of the even address and the control data D2 is stored. The area 12 may be defined at the time of writing by using the first bit of each address as an error detection bit. Actually, the position of the error detection bit may be anywhere other than the original data.

装置1の起動時に、メモリ10からデータ読み取り回路20により制御データD1,D2,D3,・・・が読み出され、誤り検出回路21で誤り検出ビットによるチェックが行われる。誤りがない場合、データ書き込み回路30により動作用メモリ40の記憶領域41,42,・・・に書き込まれる。このとき、メモリ10に保存されていた誤り検出ビットもそのまま、メモリ40に書き込まれる。なお、誤り検出回路21でデータの誤りが検出された場合は、実施例1と同様に、再度、データ書き込み装置2からメモリ10へ制御データの書き込みが行われ、この制御データがメモリ40に書き込まれる。   When the apparatus 1 is activated, the control data D1, D2, D3,... Are read from the memory 10 by the data reading circuit 20, and the error detection circuit 21 checks using the error detection bit. If there is no error, the data writing circuit 30 writes the data in the storage areas 41, 42,. At this time, the error detection bits stored in the memory 10 are also written in the memory 40 as they are. If a data error is detected by the error detection circuit 21, the control data is written again from the data writing device 2 to the memory 10 as in the first embodiment, and the control data is written to the memory 40. It is.

メモリ40に書き込まれた制御データD1,D2,・・・は、装置1の動作に応じて動作データ読み取り回路4Aにより読み出される。この際、実施例1と異なり、動作データ読み取り回路4Aによるデータ読み取り時に、誤り検出回路50Aによりリアルタイムに誤り検出が実施される。誤りが検出された場合、装置1の状態に影響がないときは、誤り検出回路50Aから再読み込み制御信号S50Aがデータ読み取り回路20に与えられ、検出して直ぐにメモリ10からの再読み込みを行うことでデータの復旧を行うことができる。   The control data D1, D2,... Written in the memory 40 are read by the operation data reading circuit 4A according to the operation of the apparatus 1. At this time, unlike the first embodiment, error detection is performed in real time by the error detection circuit 50A when data is read by the operation data reading circuit 4A. When an error is detected and there is no effect on the state of the apparatus 1, a reread control signal S50A is given from the error detection circuit 50A to the data reading circuit 20, and the data is read again from the memory 10 as soon as it is detected. Can recover data.

なお、本実施例2で使用する装置1では、特定の状態でメモリ10の読み出しを行わない時間が発生する。例えば、音声通話が行われていない場合等で、メモリ40から読み出しを行わない状態が発生する。そこで、この状態まで誤り情報PBを保存しておき、メモリ40を使用しなくなったら直ぐに、メモリ10からの再読み込みを行うことも可能である。又、データの復旧ではなく、データ異常の検出のみで、装置1を停止することも可能である。データ異常の内容である誤り情報PBは、履歴書き込み回路60によりメモリ10の記憶領域14に書き込むことで、異常内容の保存が可能である。   In the device 1 used in the second embodiment, a time during which the memory 10 is not read occurs in a specific state. For example, a state in which reading from the memory 40 is not performed occurs when a voice call is not performed. Therefore, it is possible to store the error information PB up to this state and re-read it from the memory 10 as soon as the memory 40 is no longer used. It is also possible to stop the apparatus 1 only by detecting a data abnormality rather than restoring the data. The error information PB, which is the content of the data abnormality, is written to the storage area 14 of the memory 10 by the history writing circuit 60, so that the abnormality content can be saved.

(実施例2の効果)
実施例2によれば、次の(a)〜(c)のような効果がある。
(Effect of Example 2)
The second embodiment has the following effects (a) to (c).

(a) 実施例1と同様に、複数の制御データD1,D2,D3,・・・に対する誤り検出を行い、簡単なパリティチェックのような誤り検出のみで、元データヘの復旧が可能となる。しかも、装置1が動作していない状況で検出・復旧が行える可能性が高く、装置1の故障を減少させることができる。又、誤りが発生したことを保存することで、装置1のメンテナンスも容易になる。   (A) As in the first embodiment, error detection is performed on a plurality of control data D1, D2, D3,..., And the original data can be restored only by error detection such as a simple parity check. Moreover, there is a high possibility that detection and recovery can be performed in a situation where the device 1 is not operating, and failure of the device 1 can be reduced. Moreover, maintenance of the apparatus 1 is facilitated by storing the fact that an error has occurred.

(b) 実施例1では、特定の状況になったときに連続して誤り検出を行うため、動作データ読み取り回路4側に、誤り検出のためのメモリ制御回路(例えば、アドレスやリード制御の回路等)が追加で必要になる。これに対して本実施例2では、通常動作中に同時に誤り検出を行うため、メモリ制御回路が不要である。   (B) In the first embodiment, since error detection is continuously performed when a specific situation occurs, a memory control circuit for error detection (for example, an address or read control circuit) is provided on the operation data reading circuit 4 side. Etc.) is additionally required. On the other hand, in the second embodiment, since error detection is performed simultaneously during normal operation, a memory control circuit is unnecessary.

(c) 実施例1では、特定の状態になる前に制御データD1,D2,D3,・・・の異常が発生して、装置1の状態が異常になる場合が考えられるが、本実施例2では、装置1の動作中に異常を認識でき、且つ、その時の状態に応じた対応が可能になる。例えば、メモリ10の記憶領域11でのデータ誤りは、装置1の動作への影響が少ないため、制御データD1を再度読み込んで復旧を行い、記憶領域12での制御データD2の誤りは、装置1への影響が大きいため、装置1の動作を停止する等、状況に応じて誤り検出時の動作を変更することも可能である。   (C) In the first embodiment, there may be a case where the control data D1, D2, D3,... In 2, an abnormality can be recognized during the operation of the apparatus 1, and a response according to the state at that time can be performed. For example, since a data error in the storage area 11 of the memory 10 has little influence on the operation of the apparatus 1, the control data D1 is read again to recover, and an error in the control data D2 in the storage area 12 Therefore, the operation at the time of error detection can be changed according to the situation, for example, the operation of the apparatus 1 is stopped.

本発明は、上記実施例1、2に限定されず、種々の変形が可能である。この変形例である実施例3としては、例えば、次の(A)〜(C)のようなものがある。   The present invention is not limited to the first and second embodiments, and various modifications can be made. As a third embodiment which is this modification, for example, there are the following (A) to (C).

(A) 実施例1、2では、特定の状態で、動作用メモリ40からの読み込が発生しない装置1の例を説明したが、その他の例として、周期的に処理を実施するような装置1の場合、特定時間に、同様な動作用メモリ40の読み込みが発生しないようにタイミングの制御を行うことで、本発明を適用可能である。   (A) In the first and second embodiments, the example of the device 1 in which reading from the operation memory 40 does not occur in a specific state has been described. However, as another example, a device that periodically performs processing. In the case of 1, the present invention can be applied by controlling the timing so that the reading of the similar operation memory 40 does not occur at a specific time.

(B) 実施例1では、動作用メモリ40の読み込みが発生していない場合に、動作用メモリ40からデータを読み出して誤り検出を行う例を説明したが、装置1の状態に応じて、動作用メモリ40の誤り検出領域を限定することで、誤り検出の頻度を上げることが可能である。   (B) In the first embodiment, an example in which data is read from the operation memory 40 and error detection is performed when the operation memory 40 has not been read has been described. By limiting the error detection area of the memory 40, it is possible to increase the frequency of error detection.

(C) 図1及び図2のメモリ装置は、図示以外の構成に変更しても良く、更に、そのメモリ装置におけるデータ誤り検出・訂正方法もその構成に応じて変更が可能である。   (C) The memory device of FIGS. 1 and 2 may be changed to a configuration other than that shown in the drawing, and the data error detection / correction method in the memory device can be changed according to the configuration.

本発明の実施例1を示すデータ誤り検出・訂正機能付きメモリ装置の概略の構成図である。1 is a schematic configuration diagram of a memory device with a data error detection / correction function according to a first embodiment of the present invention. 本発明の実施例2を示すデータ誤り検出・訂正機能付きメモリ装置の概略の構成図である。It is a schematic block diagram of the memory device with a data error detection / correction function showing Embodiment 2 of the present invention.

符号の説明Explanation of symbols

1 装置
10 制御データ保持用メモリ
20 データ読み取り回路
21,50,50A 誤り検出回路
30 データ書き込み回路
40 動作用メモリ
60 履歴書き込み回路
1 Device 10 Control Data Holding Memory 20 Data Reading Circuit 21, 50, 50A Error Detection Circuit 30 Data Writing Circuit 40 Operation Memory 60 History Writing Circuit

Claims (9)

誤り検出ビットが付加されたデータを不揮発性メモリに格納した後、前記不揮発性メモリに格納された前記データを読み取って揮発性メモリに書き込み、前記揮発性メモリの動作時に前記揮発性メモリに書き込まれた前記データを読み取って使用する装置において、
前記揮発性メモリの非動作時のタイミングで、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを連続して検出することを特徴とするデータ誤り検出・訂正方法。
After the data with the error detection bit added is stored in the non-volatile memory, the data stored in the non-volatile memory is read and written to the volatile memory, and is written to the volatile memory during operation of the volatile memory. In a device that reads and uses the data,
A data error detection / correction method comprising: reading out the data written in the volatile memory at a timing when the volatile memory is not operating, and continuously detecting errors in the data.
誤り検出ビットが付加されたデータを不揮発性メモリに格納した後、前記不揮発性メモリに格納された前記データを読み取って揮発性メモリに書き込み、前記揮発性メモリの動作時に前記揮発性メモリに書き込まれた前記データを読み取って使用する装置において、
前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを随時監視し、前記データの誤りを検出したときにはこの誤り発生を通知することを特徴とするデータ誤り検出・訂正方法。
After the data with the error detection bit added is stored in the non-volatile memory, the data stored in the non-volatile memory is read and written to the volatile memory, and is written to the volatile memory during operation of the volatile memory. In a device that reads and uses the data,
A data error detection / correction method comprising: reading out the data written in the volatile memory, monitoring the error of the data as needed, and notifying the occurrence of the error when detecting the error of the data.
誤り検出ビットが付加されたデータを不揮発性メモリに格納した後、前記不揮発性メモリに格納された前記データを読み取って揮発性メモリに書き込み、前記揮発性メモリの動作時に前記揮発性メモリに書き込まれた前記データを読み取って使用する装置において、
前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを随時監視し、前記データの誤りを検出したときにはこの誤り発生を、前記揮発性メモリの非動作のタイミングまで保存することを特徴とするデータ誤り検出・訂正方法。
After the data with the error detection bit added is stored in the non-volatile memory, the data stored in the non-volatile memory is read and written to the volatile memory, and is written to the volatile memory during operation of the volatile memory. In a device that reads and uses the data,
The data written in the volatile memory is read to monitor the error of the data as needed, and when the data error is detected, the error occurrence is stored until the non-operation timing of the volatile memory. Data error detection and correction method.
請求項1〜3のいずれか1項に記載のデータ誤り検出・訂正方法において、
前記データの誤りを検出したときには、前記不揮発性メモリから再度データを読み込み、前記揮発性メモリに再度書き込むことを特徴とするデータ誤り検出・訂正方法。
The data error detection / correction method according to any one of claims 1 to 3,
A method for detecting and correcting a data error, wherein when an error in the data is detected, the data is read again from the non-volatile memory and rewritten in the volatile memory.
請求項1〜3のいずれか1項に記載のデータ誤り検出・訂正方法において、
前記データの誤りを検出したときには、この誤り情報を前記不揮発性メモリに保存することを特徴とするデータ誤り検出・訂正方法。
The data error detection / correction method according to any one of claims 1 to 3,
A data error detection / correction method comprising: storing error information in the nonvolatile memory when an error in the data is detected.
誤り検出ビットが付加されたデータを格納する不揮発性メモリと、
データを書き込む揮発性メモリであって、動作時に前記書き込まれたデータが読み取られて使用される前記揮発性メモリと、
前記不揮発性メモリに格納された前記データを読み取ると共に、前記読み取ったデータの誤りを検出するデータ読み取り回路と、
前記データ読み取り回路で読み取った前記データのうち誤りのないデータを前記揮発性メモリに書き込むデータ書き込み回路と、
前記揮発性メモリの非動作時のタイミングで、前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを連続して検出する誤り検出回路と、
を有することを特徴とするデータ誤り検出・訂正機能付きメモリ装置。
A non-volatile memory for storing data with an error detection bit added thereto;
A volatile memory for writing data, wherein the written data is read and used during operation;
A data reading circuit for reading the data stored in the nonvolatile memory and detecting an error in the read data;
A data writing circuit for writing, into the volatile memory, error-free data among the data read by the data reading circuit;
An error detection circuit that reads the data written in the volatile memory at a timing when the volatile memory is not operating and continuously detects an error in the data;
A memory device with a data error detection / correction function.
誤り検出ビットが付加されたデータを格納する不揮発性メモリと、
データを書き込む揮発性メモリであって、動作時に前記書き込まれたデータが読み取られて使用される前記揮発性メモリと、
前記不揮発性メモリに格納された前記データを読み取ると共に、前記読み取ったデータの誤りを検出するデータ読み取り回路と、
前記データ読み取り回路で読み取った前記データのうち誤りのないデータを前記揮発性メモリに書き込むデータ書き込み回路と、
前記揮発性メモリに書き込まれた前記データを読み出してこのデータの誤りを随時監視する誤り検出回路と、
を有することを特徴とするデータ誤り検出・訂正機能付きメモリ装置。
A non-volatile memory for storing data with an error detection bit added thereto;
A volatile memory for writing data, wherein the written data is read and used during operation;
A data reading circuit for reading the data stored in the nonvolatile memory and detecting an error in the read data;
A data writing circuit for writing, into the volatile memory, error-free data among the data read by the data reading circuit;
An error detection circuit for reading out the data written in the volatile memory and monitoring an error of the data as needed;
A memory device with a data error detection / correction function.
請求項6又は7記載のデータ誤り検出・訂正機能付きメモリ装置において、
前記誤り検出回路が前記データの誤りを検出したときには、前記データ読み取り回路を制御し、前記不揮発性メモリから再度データを読み込み、前記揮発性メモリに再度書き込ませる再書き込み制御手段を、
設けたことを特徴とするデータ誤り検出・訂正機能付きメモリ装置。
The memory device with a data error detection / correction function according to claim 6 or 7,
When the error detection circuit detects an error in the data, rewrite control means for controlling the data reading circuit, reading the data again from the nonvolatile memory, and writing the data again into the volatile memory,
A memory device with a data error detection / correction function.
請求項6〜8のいずれか1項に記載のデータ誤り検出・訂正機能付きメモリ装置において、
前記誤り検出回路が前記データの誤りを検出したときには、この誤り情報を前記不揮発性メモリに書き込む誤り情報書き込み回路を、
設けたことを特徴とするデータ誤り検出・訂正機能付きメモリ装置。
The memory device with a data error detection / correction function according to any one of claims 6 to 8,
When the error detection circuit detects an error in the data, an error information writing circuit for writing the error information to the nonvolatile memory,
A memory device with a data error detection / correction function.
JP2005203003A 2005-07-12 2005-07-12 Data error detection/correction method and memory device with data error detection/correction function Pending JP2007025777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005203003A JP2007025777A (en) 2005-07-12 2005-07-12 Data error detection/correction method and memory device with data error detection/correction function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005203003A JP2007025777A (en) 2005-07-12 2005-07-12 Data error detection/correction method and memory device with data error detection/correction function

Publications (1)

Publication Number Publication Date
JP2007025777A true JP2007025777A (en) 2007-02-01

Family

ID=37786494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005203003A Pending JP2007025777A (en) 2005-07-12 2005-07-12 Data error detection/correction method and memory device with data error detection/correction function

Country Status (1)

Country Link
JP (1) JP2007025777A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158800A (en) * 2006-12-22 2008-07-10 Fujitsu Ltd Information processor, history management method, and history management program
JP2013236281A (en) * 2012-05-09 2013-11-21 Fujitsu Ltd Communication device, and method for inspecting memory in the same device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5953952A (en) * 1982-09-20 1984-03-28 Ricoh Co Ltd Self-diagnosing device
JPS59231798A (en) * 1983-06-14 1984-12-26 Mitsubishi Electric Corp Data processor
JPS61125650A (en) * 1984-11-24 1986-06-13 Matsushita Electric Works Ltd Control system
JPS6370357A (en) * 1986-09-11 1988-03-30 Nec Corp Memory data correction system
JPH03191451A (en) * 1989-12-21 1991-08-21 Nec Corp Error correction system
JPH04145541A (en) * 1990-10-05 1992-05-19 Nec Corp Microprogram controller
JPH08263387A (en) * 1995-03-27 1996-10-11 Kokusai Electric Co Ltd Memory device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5953952A (en) * 1982-09-20 1984-03-28 Ricoh Co Ltd Self-diagnosing device
JPS59231798A (en) * 1983-06-14 1984-12-26 Mitsubishi Electric Corp Data processor
JPS61125650A (en) * 1984-11-24 1986-06-13 Matsushita Electric Works Ltd Control system
JPS6370357A (en) * 1986-09-11 1988-03-30 Nec Corp Memory data correction system
JPH03191451A (en) * 1989-12-21 1991-08-21 Nec Corp Error correction system
JPH04145541A (en) * 1990-10-05 1992-05-19 Nec Corp Microprogram controller
JPH08263387A (en) * 1995-03-27 1996-10-11 Kokusai Electric Co Ltd Memory device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158800A (en) * 2006-12-22 2008-07-10 Fujitsu Ltd Information processor, history management method, and history management program
JP2013236281A (en) * 2012-05-09 2013-11-21 Fujitsu Ltd Communication device, and method for inspecting memory in the same device

Similar Documents

Publication Publication Date Title
US10459794B2 (en) Memory systems having extended product lifetime and methods of operating the same
JP5132687B2 (en) Error detection and correction method and apparatus using cache in memory
KR101572038B1 (en) Correction of errors in a memory array
JP2005522811A (en) Method for storing data in non-volatile memory
US9804921B2 (en) Nonvolatile memory apparatus and control method of nonvolatile memory apparatus
JP4962060B2 (en) Parity error recovery circuit
JPH03248251A (en) Information processor
JP2009301194A (en) System for controlling semiconductor memory device
JP2010079856A (en) Storage device and memory control method
JP4560072B2 (en) Semiconductor memory device
JP4956230B2 (en) Memory controller
JP2003059290A5 (en)
JP2007025777A (en) Data error detection/correction method and memory device with data error detection/correction function
US11010245B2 (en) Memory storage apparatus with dynamic data repair mechanism and method of dynamic data repair thereof
JP2004342112A (en) Device and method for responding to data retention loss in nonvolatile memory unit using error-checking and correction techniques
US7530005B2 (en) Storage device
JP2009230475A (en) Storage system including nonvolatile semiconductor storage section
JP4950214B2 (en) Method for detecting a power outage in a data storage device and method for restoring a data storage device
KR20200018156A (en) Memory system having ECC functionality for memory apparatus and method of operating the memory system
US8145951B2 (en) Control device
JP5087970B2 (en) Information processing apparatus and information processing method
JP2008198020A (en) Semiconductor memory information storage device and failure site responding method therefor
JP2002244932A (en) Control device
US10019186B2 (en) Data maintenance method for error control and data storage device using the same
JP5652720B2 (en) FPGA system and electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080527

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110510

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111122