JPH0268642A - Memory error detecting system - Google Patents

Memory error detecting system

Info

Publication number
JPH0268642A
JPH0268642A JP63220373A JP22037388A JPH0268642A JP H0268642 A JPH0268642 A JP H0268642A JP 63220373 A JP63220373 A JP 63220373A JP 22037388 A JP22037388 A JP 22037388A JP H0268642 A JPH0268642 A JP H0268642A
Authority
JP
Japan
Prior art keywords
data
memory card
error
memory
cpu
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
JP63220373A
Other languages
Japanese (ja)
Inventor
Kiyozumi Tanigawa
清純 谷川
Takeshi Miura
剛 三浦
Kenji Yamana
山名 健二
Hiroshi Takizawa
滝沢 洋
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63220373A priority Critical patent/JPH0268642A/en
Publication of JPH0268642A publication Critical patent/JPH0268642A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent malfunction from occurring in a device by providing an error qualifying means to generate a check code for the detection of a bit error in data, and to perform error qualification by the check code. CONSTITUTION:In the case of writing data on a memory card 5 by a CPU 1, the check code of write data on the memory card 5 is generated by the error qualifying means 6, and the data is written on a data recording area 3, and the check code on a check code recording area 4. The CPU 1 reads the check code from the memory card 5 simultaneously with the data when reading the data in the memory card 5, and the bit error in the data is qualified by the error qualifying means 6, and when the bit error is detected, the generation of an error is informed to the CPU 1 via a system bus 2. Therefore, the occurrence of the error can be detected by the error qualifying means 6 even when the bit error occurs in read data. In such a way, the malfunction in the device due to erroneous data can be prevented from occurring.

Description

【発明の詳細な説明】 目    次 概   要  ・ ・ ・ ・ ・ ・ ・ ・ ・ 
・ ・ ・  3頁産業上の利用分野 ・・・・・・・
・ 4頁従来の技術 ・・・・・・・・・・・ 5頁発
明が解決しようとする課題 ・・・ 5頁課題を解決す
るための手段 ・・・・ 6頁作   用  ・ ・ 
・ ・ ・ ・ ・ ・ ・ ・ ・ ・  7真実 
 施  例  ・ ・ ・ ・ ・ ・ ・ ・ ・ 
・ ・  9頁発明の効果 ・・・・・・・・・・・2
2頁概要 標準規格のメモリカードを利用したメモリ誤り検出方式
に関し、 メモリカードの持つ利点を損なわずにメモリカード内に
記録されているデータのビット誤りを検出して、誤動作
を未然に防ぐことができるメモリ誤り検出方式を提供す
ることを目的とし、CPUと、該CPUに接続されたシ
ステムバスと、内部をデータ記録領域とチェックコード
記録領域の二つの領域に使い分けるメモリカードと、前
記システムバスとメモリカードの間に介装されチェック
コードの付加とメモリの誤り検定を行う誤り検定手段と
を具備し、CPUがメモリカードにデータを書き込む場
合には、チェックコードを誤り検定手段で生成してメモ
リカードのチェックコード記録領域に書き込み、CPU
がメモリカードのデータを読み込む場合には、メモリカ
ード内のデータ記録領域のビット誤りを、チェックコー
ド記録領域に書き込まれているチェックコードを用いて
、誤り検定手段でデータの読み込み時に検出し、システ
ムバスを通してCPUに誤りの発生を通知するように構
成する。
[Detailed description of the invention] Table of contents Overview ・ ・ ・ ・ ・ ・ ・ ・ ・
・ ・ ・ 3 pages Industrial application fields ・・・・・・・
・Page 4: Prior art ・・・Page 5: Problems to be solved by the invention ・Page 5: Means for solving the problem ・・Page 6: Effects ・・
・ ・ ・ ・ ・ ・ ・ ・ ・ ・ 7 truths
Example ・ ・ ・ ・ ・ ・ ・ ・ ・
・ ・ Effects of the invention on page 9 ・・・・・・・・・・・2
2 page summary Regarding a memory error detection method using a standard memory card, it is possible to detect bit errors in data recorded on a memory card and prevent malfunctions without sacrificing the advantages of the memory card. The purpose of the present invention is to provide a memory error detection method that can detect errors in memory using a CPU, a system bus connected to the CPU, a memory card whose interior is divided into two areas: a data recording area and a check code recording area, and a system bus connected to the CPU. An error checking means is provided between the memory cards to add a check code and check for errors in the memory, and when the CPU writes data to the memory card, the error checking means generates a check code and writes the check code to the memory. Write it to the check code recording area of the card, and
When reading data from a memory card, the system detects bit errors in the data recording area in the memory card using the check code written in the check code recording area when reading the data. The system is configured to notify the CPU of the occurrence of an error through the bus.

産業上の利用分野 本発明は標準規格のメモリカードを利用したメモリ誤り
検出方式に関する。
FIELD OF THE INVENTION The present invention relates to a memory error detection method using a standard memory card.

メモリカードは磁気カード、ICカードと同一サイズの
カードにRA M−ROM等の半導体記憶素子を搭載し
たものであり、近年その普及が図られている。メモリカ
ードの普及に伴い、高い信頼度が要求される分野、例え
ばダム管理、河川管理、ビル管理等の分野での各種制御
装置に、フロッピーディスクや固定ディスクの代わりに
可動部のないメモリカードの使用が要望されている。
A memory card is a card of the same size as a magnetic card or an IC card and has a semiconductor storage element such as a RAM-ROM mounted thereon, and has become popular in recent years. With the spread of memory cards, memory cards with no moving parts are being used instead of floppy disks or fixed disks in various control devices in fields that require high reliability, such as dam management, river management, building management, etc. Use is requested.

従来の技術 従来、プリント板形態で提供されるメモリには、メモリ
のエラーチエツクとしてECC(エラー・チェツキング
・アンド・コレクション)やパリティが付加され、装置
の誤動作防止に役立っていた。
BACKGROUND OF THE INVENTION Conventionally, memory provided in the form of a printed board has been provided with ECC (Error Checking and Correction) and parity to check for errors in the memory, helping to prevent device malfunctions.

ところが、現在販売されているメモリカードには、この
ような誤り検査/訂正機能が組み込まれておらず、標準
規格にも盛り込まれていないので、ノイズ等に基づ(ビ
ット誤りが発生しても、その検出が不可能であった。
However, memory cards currently on sale do not have such error checking/correction functions built-in, nor are they included in the standard specifications. , its detection was impossible.

発明が解決しようとする課題 従って、■可動部が存在しない、■持ち運びに便利であ
る、■システムバスへの接続が簡単である、といった利
点をメモリカードが持っているのにも係わらず、装置の
信頼度が要求される分野へのメモリカードの普及が阻害
されていた。
Problems to be Solved by the Invention Therefore, despite the advantages of memory cards, such as: ■No moving parts, ■Convenient to carry, and ■Easy to connect to the system bus, This has hindered the spread of memory cards in fields where high reliability is required.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、可動部を持つフロッピーディス
クや固定ディスクに比べて長寿命且つ高信頼で可搬性に
も優れ、取り扱いが簡単といったメモリカードの持つ利
点を損なわずに、メモリカード内に記録されているデー
タのピッ)Ltlりを検出して、装置の誤動作を未然に
防ぐことができるメモリ誤り検出方式を提供することで
ある。
The present invention was made in view of these points, and its purpose is to provide a disk with a longer lifespan, higher reliability, better portability, and easier handling than floppy disks or fixed disks with movable parts. To provide a memory error detection method capable of detecting errors in data recorded in a memory card and preventing device malfunctions without impairing the advantages of the memory card. .

課題を解決するための手段 第1図及び第2図に本発明の原理図を示す。Means to solve problems FIGS. 1 and 2 show diagrams of the principle of the present invention.

第1図の原理図に示されている本発明のメモリ誤り検出
方式では、装置の動作を制御するCPU1と、データや
制御信号を伝えるシステムバス2と、内部をデータやプ
ログラムを記録するデータ記録領域3と誤り検定用のチ
ェックコードを記録するチェックコード記録領域4に分
けて使用し、情報を記録するメモリカード5と、データ
のビット誤りを検出するためのチェックコードを生成し
たり、チェックコードによる誤り検定を行う誤り検定手
段6を具備している。
The memory error detection method of the present invention, which is shown in the principle diagram of FIG. It is divided into an area 3 and a check code recording area 4 for recording check codes for error verification, and is used as a memory card 5 for recording information and for generating check codes for detecting bit errors in data. The apparatus is equipped with an error verification means 6 for performing error verification.

第2図の原理図に示された本発明のメモリ誤り検出方式
では、装置の動作を制御するCPUIと、データや制御
信号を伝えるシステムバス2と、データやプログラムを
記録するメモリカード7と、誤り検出用のチェックコー
ドを記録する書き替え可能なメモリ8と、データのビッ
ト誤りを検出するためのチェックコードを生成したり、
チェックコードによる誤り検定を行うための誤り検定手
段9を具備している。
The memory error detection method of the present invention shown in the principle diagram of FIG. 2 includes a CPU that controls the operation of the device, a system bus 2 that transmits data and control signals, and a memory card 7 that records data and programs. A rewritable memory 8 that records check codes for error detection, and generates check codes for detecting bit errors in data.
It is equipped with an error verification means 9 for performing error verification using a check code.

作   用 第1図に示された本発明のメモリ誤り検出方式では、C
PUIがメモリカード5にデータを書き込む場合には、
メモリカード5への書き込みデータのチェックコードを
誤り検定手段6によって生成し、データをデータ記録領
域3にチェックコードをチェックコード記録領域4に書
き込む。CPU1はメモリカード5のデータを読み込む
場合にはミデータとともにチェックコードも同時にメモ
リカード5から読み込み、誤り検定手段6でデータのビ
ット誤りを検定し、ビット誤りを検出した場合にはシス
テムバス2を通してCPUIに誤りの発生を通知するよ
うにしている。
Operation In the memory error detection method of the present invention shown in FIG.
When the PUI writes data to the memory card 5,
A check code for the data written to the memory card 5 is generated by the error checking means 6, and the check code is written into the data recording area 3 and the check code recording area 4. When reading the data from the memory card 5, the CPU 1 reads the check code as well as the data from the memory card 5 at the same time, checks the data for bit errors using the error checking means 6, and if a bit error is detected, sends the data to the CPU via the system bus 2. We will notify you of any errors that have occurred.

従って、読み込みデータにビット誤りが発生しても、誤
り検定手段6によって誤りの発生が検出されるため、誤
ったデータによる装置の誤動作を防止することが可能と
なる。
Therefore, even if a bit error occurs in the read data, the error checking means 6 detects the occurrence of the error, making it possible to prevent malfunction of the device due to the erroneous data.

第2図に示した本発明のメモリ誤り検出方式によると、
CPU 1がメモリカード7にデータを書き込む場合に
は、メモリカード7への書き込みデータのチェックコー
ドを誤り検定手段9によって生成し、データとチェック
コードをメモリカード7とメモリ8に同時に書き込む。
According to the memory error detection method of the present invention shown in FIG.
When the CPU 1 writes data to the memory card 7, the error checking means 9 generates a check code for the data written to the memory card 7, and writes the data and the check code to the memory card 7 and memory 8 at the same time.

CPUIがメモリカード7のデータを読み込む場合には
、データをメモリカード7から読み込むと同時にチェッ
クコードをメモリ8から読み込み、誤り検定手段9でデ
ータのビット誤り検定を行い、ビット誤りを検出した場
合にはシステムバス2を通してCPU1に誤りの発生を
通知する。
When the CPUI reads data from the memory card 7, the check code is read from the memory 8 at the same time as the data is read from the memory card 7, and the error checking means 9 performs a bit error check on the data. notifies the CPU 1 through the system bus 2 of the occurrence of an error.

従って、読み込みデータにビット誤りが発生しても、誤
り検定手段9によって誤りの発生が検出されるため、誤
ったデータによる装置の誤動作を防止することができる
Therefore, even if a bit error occurs in the read data, the occurrence of the error is detected by the error checking means 9, so that it is possible to prevent malfunction of the device due to the erroneous data.

実  施  例 以下本発明の実施例を図面に基づいて詳細に説明する。Example Embodiments of the present invention will be described in detail below based on the drawings.

第3図は本発明の一実施例ブロック図であり、メモリカ
ードを利用したパリティ検定方式を示している。同図に
おいて、11はCPU、12はアドレスバス、13はデ
ータバス、14は制御線、15はパリティ生成回路、1
6はアドレス変換回路、17はパリティ検定回路、18
は書き込み回路、19は読み込み回路、20はメモリカ
ード、21はメモリカード20内のデータ/プログラム
記録領域、22はメモリカード20内のパリティ情報記
録領域である。メモリカード20は挿抜可能に構成され
ており、第3図に示したパリティ検定方式を達成する装
置に挿入して使用される。
FIG. 3 is a block diagram of an embodiment of the present invention, showing a parity verification method using a memory card. In the figure, 11 is a CPU, 12 is an address bus, 13 is a data bus, 14 is a control line, 15 is a parity generation circuit, 1
6 is an address conversion circuit, 17 is a parity verification circuit, 18
19 is a write circuit, 19 is a read circuit, 20 is a memory card, 21 is a data/program recording area in the memory card 20, and 22 is a parity information recording area in the memory card 20. The memory card 20 is configured to be insertable and removable, and is used by being inserted into a device that achieves the parity verification method shown in FIG.

CPUIIがメモリカード20にデータを書き込む場合
には、アドレスバス12にアドレスを、データバス13
に書き込みデータを送り出す。すると、書き込み回路1
8によってデータがメモリカード20内のデータ/プロ
グラム記録領域21に書き込まれると同時に、書き込み
データに対応するパリティ情報記録領域22内のバイト
単位のアドレスが、アドレス変換回路16によって変換
され、このアドレスに基づいて書き込みデータに対応す
るパリティ情報が読み込み回路19によって読み込まれ
る。そして、今回書き込むデータのアドレスに対応した
ビットだけがパリティ生成回路15によって生成された
パリティビットに置き換えられ、アドレス変換回路16
で変換されたメモリカード20上のパリティ情報記録領
域22に、書き込み回路18によってパリティが書き込
まれる。
When the CPU II writes data to the memory card 20, it sends the address to the address bus 12 and the data bus 13.
Sends write data to. Then, write circuit 1
At the same time that data is written to the data/program recording area 21 in the memory card 20 by 8, the address in bytes in the parity information recording area 22 corresponding to the written data is converted by the address conversion circuit 16, and the address is converted to this address. Based on this, the parity information corresponding to the write data is read by the reading circuit 19. Then, only the bit corresponding to the address of the data to be written this time is replaced with the parity bit generated by the parity generation circuit 15, and the address conversion circuit 16
The parity is written by the write circuit 18 into the parity information recording area 22 on the memory card 20 converted in the above.

また、CPUI 1がメモリカード20のデータを読み
込むために読み込みアドレスをアドレスバス12に送り
出すと、アドレス変換回路16で変換されたメモリカー
ド20上のパリティ情報記録領域22内のバイト単位の
アドレスからパリティが、読み込みデータがメモリカー
ド20上のデータ/プログラム記録領域21から読み込
み回路19によって一緒に読み込まれ、パリティ検定回
路17によってパリティ検定が行われ、検定結果が正常
であれば読み込みデータがデータバス13を通して(:
PUllに通知される。
Further, when the CPU 1 sends a read address to the address bus 12 in order to read the data of the memory card 20, the parity is converted from the byte unit address in the parity information recording area 22 on the memory card 20 converted by the address conversion circuit 16. However, the read data is read together from the data/program recording area 21 on the memory card 20 by the read circuit 19, a parity test is performed by the parity test circuit 17, and if the test result is normal, the read data is transferred to the data bus 13. Through (:
PUll is notified.

一方、ピット誤りが発生すると、パリティ検定回路17
によって誤りが検出され、制御線14を通してcpuz
に誤りの発生が通知される。CPULLは誤りの発生が
通知されると、データの読み込みが失敗したことを認識
し、読み込みデータを破棄して誤動作を行わないように
する。
On the other hand, when a pit error occurs, the parity verification circuit 17
An error is detected by cpuz through control line 14.
will be notified of the occurrence of the error. When CPULL is notified of the occurrence of an error, it recognizes that data reading has failed, and discards the read data to prevent malfunctions.

次に第4図を参照してパリティ情報記録アドレスとパリ
ティピット位置計算方法を説明する。メモリ容量=25
6バイト (アドレス=x’oo’〜X ’ FF ’
)のメモリカードを使用して、メモリカード内の領域分
割を以下の通りとした。
Next, a method for calculating parity information recording addresses and parity pit positions will be explained with reference to FIG. Memory capacity = 25
6 bytes (address=x'oo'~X'FF'
) memory card was used, and the areas within the memory card were divided as follows.

X’00’ 〜X’DF’ : データ/プログラム記録領域アドレス X’EO’ 〜X’FF’ : バリティ情報記録領域アドレス データアドレス=X’B5’に対応するパリティ情報記
録アドレスとパリティピット位置計算方法について説明
する。8ビツトに1パリテイビツトが付加されるので、
データアドレス=X’B51を8で割った値にパリティ
領域先頭アドレス=X’EO’を付加することによりデ
ータアドレスX’B5’に対応するパリティ情報記録ア
ドレスがX’F6’と求められる。またパリティピット
位置を計算するには、データアドレス=X’B59の右
3ビツトを取り出すことにより、パリティピット位置が
アドレスX’F6’の5番目であると求められる。
X'00' to X'DF': Data/program recording area address X'EO' to X'FF': Parity information recording area address Data address = Parity information recording address and parity pit position calculation corresponding to X'B5' Explain the method. Since 1 parity bit is added to 8 bits,
By adding the parity area start address=X'EO' to the value obtained by dividing the data address=X'B51 by 8, the parity information recording address corresponding to the data address X'B5' is determined as X'F6'. Further, in order to calculate the parity pit position, by taking out the right three bits of data address=X'B59, it is determined that the parity pit position is the fifth position of address X'F6'.

第5図にアドレスX’F6’の内容を示す。第5図に示
されるように、パリティ情報記録アドレスX’F6’に
は、アドレスX”BO’のデータのハIJティからアド
レスX’BT’のデータのパリティが順に書き込まれて
いる。
FIG. 5 shows the contents of address X'F6'. As shown in FIG. 5, in the parity information recording address X'F6', the parity of the data of the address X'BT' is sequentially written from the high IJT of the data of the address X'BO' to the parity of the data of the address X'BT'.

上述した実施例においては誤り検定符号にパリティを利
用しているが、本発明はこれに限定されるものではなく
、パリティの代わりにFCCを利用してもよく、またC
RC(サイクリック・リダンダンシー・チエツク)を利
用しでもよい。また、パリティの書き込みや検定を禁止
する制御信号を制御線に追加することにより、パリティ
情報が記録されていないメモリカードもパリティ情報付
メモリカードと同じように本実施例のメモリ誤り検出装
置に挿入して利用することができる。パリティ情報記録
領域をメモリカード中にとれる場合には、データ/プロ
グラム記録領域をパリティ検定無効で一旦全て読み込ん
だ後、パリティ書き込み有効で書き込むことにより、全
パリティ情報を生成することも可能である。
Although parity is used as the error check code in the above embodiment, the present invention is not limited to this, and FCC may be used instead of parity.
RC (cyclic redundancy check) may be used. Furthermore, by adding a control signal to the control line that prohibits parity writing and verification, a memory card without parity information can be inserted into the memory error detection device of this embodiment in the same way as a memory card with parity information. and can be used. If a parity information recording area is available in the memory card, it is also possible to generate all the parity information by once reading the entire data/program recording area with parity verification disabled and then writing with parity writing enabled.

更に、パリティ情報の有無をメモリカードの先頭等に書
き込むように取り決めを作り、パリティ情報の書き込み
とパリティ検定をパリティ情報の有無に従って有効/無
効に切り換える切り換え回路を追加すれば、パリティ情
報あり/なしの両タイプのメモリカードを混在して利用
することができる。
Furthermore, by making arrangements to write the presence or absence of parity information at the beginning of the memory card, etc., and adding a switching circuit that switches the writing of parity information and parity verification between valid and invalid depending on the presence or absence of parity information, it is possible to write the presence or absence of parity information. Both types of memory cards can be used together.

尚、データではなくプログラムをメモリカードに記録し
ている場合には、ビット誤りによって予想できない命令
が実行されるため、装置の動作パターンが予測できない
ので、上述した実施例は特に有効である。ROMタイプ
のメモリカードにプログラムを記録している場合にも、
書き込み動作が行われないだけで誤り検定は正常に実行
される。
Incidentally, when a program rather than data is recorded on a memory card, the operation pattern of the device cannot be predicted because an unpredictable instruction is executed due to a bit error, so the above-described embodiment is particularly effective. Even if the program is recorded on a ROM type memory card,
The error check is executed normally only if no write operation is performed.

また、データの書き込みをバイト単位ではなく、8バイ
トの整数倍で行うことが許される場合には、上述したデ
ータ書き込み手順のパリティ情報読み込みを省略できる
ので、より簡単な回路でメモリ誤り検出方式を実現可能
である。メモリカードを補助記憶として使用するときな
どがこの場合に該当する。
Furthermore, if it is allowed to write data not in bytes but in integer multiples of 8 bytes, reading the parity information in the data writing procedure described above can be omitted, so the memory error detection method can be implemented with a simpler circuit. It is possible. This case applies when a memory card is used as auxiliary storage.

上述した実施例ではCPUが発生する主記憶アドレスが
メモリカードのデータアドレスに一致していると仮定し
て説明してきたが、一般にCPUが発生する主記憶アド
レスとメモリカード内のデータアドレスとは相違する。
In the above embodiments, the explanation has been made on the assumption that the main memory address generated by the CPU matches the data address of the memory card, but generally there is a difference between the main memory address generated by the CPU and the data address in the memory card. do.

以下このような一般的場合について、第3図に示した実
施例の変形例を第6図を参照して説明する。
For such a general case, a modification of the embodiment shown in FIG. 3 will be described below with reference to FIG. 6.

本変形例においては第3図の実施例のアドレス変換回路
16の代わりにアドレス発生回路24を採用したもので
ある。アドレス発生回路24は、システムバスのアドレ
ス及び読み込み/書き込み制御信号を受信し、アドレス
変換を駆動する主記憶アドレス受信回路25と、主記憶
アドレスよりデータのアドレスを発生させるデータアド
レス変換回路26と、主記憶アドレスよりチェックコー
ドのアドレスを発生させるチェックコードアドレス変換
回路27と、主記憶アドレスよりチェックコードの有効
部のビットパターンを発生させるチェックコードパター
ン発生回路28により構成される。アドレス発生回路2
4の出力はメモリカード制御回路29に入力される。メ
モリカード制御回路29は第3図の実施例のパリティ生
成回路15、パリティ検定回路17、書き込み回路18
及び読み込み回路19の各機能を備えており、アドレス
発生回路24よりの情報を使用してメモリカードのデー
タの読み込み、メモリカードへのデータの書き込み及び
チェックコードによる誤り決定の制御を行うものである
In this modification, an address generation circuit 24 is used in place of the address conversion circuit 16 of the embodiment shown in FIG. The address generation circuit 24 includes a main memory address reception circuit 25 that receives system bus addresses and read/write control signals and drives address conversion, and a data address conversion circuit 26 that generates a data address from the main memory address. It is comprised of a check code address conversion circuit 27 that generates a check code address from a main memory address, and a check code pattern generation circuit 28 that generates a bit pattern of the valid part of the check code from the main memory address. Address generation circuit 2
The output of No. 4 is input to the memory card control circuit 29. The memory card control circuit 29 includes the parity generation circuit 15, parity verification circuit 17, and write circuit 18 of the embodiment shown in FIG.
and reading circuit 19, and uses information from the address generation circuit 24 to read data from the memory card, write data to the memory card, and control error determination using a check code. .

本変形例に使用するメモリカード20は容量を512に
バイトとし、データ/プログラム記録領域21にアドレ
ス(0)、、〜(6FFFF)、6を割り当て、パリテ
ィ情報記録領域22にアドレス(70000)、、〜(
7DFFF)18を割り当てる。
The memory card 20 used in this modification has a capacity of 512 bytes, addresses (0), ... (6FFFF), and 6 are assigned to the data/program recording area 21, and addresses (70000) and 6 are assigned to the parity information recording area 22. , ~(
7DFFF) 18.

次に第7図を参照すると、この図は本変形例におけるア
ドレス発生回路の動作説明図であり、(a)はデータア
ドレスの変換、(b)はチェックコードアドレスの変換
、(C)はチェックコード有効部パターンの発生原理を
それぞれ示している。主記憶アドレスは24ビツトから
構成され、上位5ビツトは複数のメモリカード使用時の
メモリカード選択等に使用される無効部■であり、本変
形例のアドレス変換は下位19ビツトの有効部■を使用
して実行される。
Next, referring to FIG. 7, this figure is an explanatory diagram of the operation of the address generation circuit in this modification, where (a) is data address conversion, (b) is check code address conversion, and (C) is check code address conversion. Each shows the generation principle of the code effective part pattern. The main memory address consists of 24 bits, and the upper 5 bits are the invalid part (■) used for memory card selection when multiple memory cards are used, and the address conversion in this modification uses the lower 19 bits of the valid part (■). is executed using

第7図(a)に示されるように、メモリデータのメモリ
カード内アドレスは、主記憶アドレスのビット5よりビ
ット23の19ビツトの内容をそのまま取り出すことに
より得ることができる。また、チェックコードのメモリ
カード内アドレスは、第7図(b)に示されるように、
主記憶アドレスのビット5よりビット20の16ビツト
を取り出し、上位に3ビツトの“1”を付加することに
より得ることができる。チェックコードの有効部パター
ンは、第7図(C)に示されるように、主記憶アドレス
のビット21よりビット23の3ビツトを取り出し、数
値→ビット位置変換を行うことにより得ることができる
As shown in FIG. 7(a), the address of the memory data in the memory card can be obtained by directly extracting the 19-bit contents of bit 23 from bit 5 of the main memory address. Also, the address of the check code in the memory card is as shown in FIG. 7(b).
It can be obtained by extracting 16 bits from bit 5 to bit 20 of the main memory address and adding 3 bits of "1" to the upper part. The valid part pattern of the check code can be obtained by extracting three bits from bit 21 to bit 23 of the main memory address and converting the value from the bit position, as shown in FIG. 7(C).

第8図は本発明の他の実施例ブロック図であり、メモリ
カードを利用したパリティ検定方式を示している。
FIG. 8 is a block diagram of another embodiment of the present invention, showing a parity verification method using a memory card.

同図において、31はCPU、32は制御線、33はデ
ータバス、34はアドレスバスであり、これらの制御線
及びバスでシステムバスを構成している。35は書き替
え可能なメモリ、36はメモリカード、37はメモリカ
ードの挿入検出回路、38はアドレスカウンタ、39は
メモリ用のタイミング制御回路、40はパリティ生成回
路、41゜42はセレクタ、43は挿入通知回路、44
はパリティ検定回路、45はデータバッファ、46゜4
7は内部アドレスバス、48は内部データバスである。
In the figure, 31 is a CPU, 32 is a control line, 33 is a data bus, and 34 is an address bus, and these control lines and buses constitute a system bus. 35 is a rewritable memory, 36 is a memory card, 37 is a memory card insertion detection circuit, 38 is an address counter, 39 is a timing control circuit for memory, 40 is a parity generation circuit, 41°, 42 is a selector, 43 is a Insertion notification circuit, 44
is a parity check circuit, 45 is a data buffer, 46°4
7 is an internal address bus, and 48 is an internal data bus.

以下本実施例の動作について説明する。メモリカード3
6は挿抜可能に構成されており、メモリカード36が挿
入されると挿入検出回路37が動作し、アドレスカウン
タ38及び挿入通知回路43に通知する。アドレスカウ
ンタ38はメモリカード挿入信号を、タイミング制御回
路39、パリティ生成回路40、セレクタ41.42に
それぞれ通知し、予め定められたアドレス(例えば0番
地)を内部アドレスバス46に出力する。セレクタ41
.42はメモリカード挿入信号によりメモリ35、メモ
リカード36へのアドレス及び制御線をb側に選択し、
内部アドレスバス46及びタイミング制御回路39の支
配下となる。タイミング制御回路39はメモリカード3
6に読み込み信号を出力し、メモリカード36のデータ
が読み出され、データに応じたパリティがパリティ生成
回路40により生成されて保持される。次いで、タイミ
ング制御回路39はメモリ35に対し書き込み信号を出
力し、パリティ生成回路40により保持されているパリ
ティデータをメモリ35に書き込む。
The operation of this embodiment will be explained below. memory card 3
6 is configured to be insertable and removable, and when the memory card 36 is inserted, the insertion detection circuit 37 operates and notifies the address counter 38 and the insertion notification circuit 43. The address counter 38 notifies the timing control circuit 39, the parity generation circuit 40, and the selectors 41 and 42 of the memory card insertion signal, respectively, and outputs a predetermined address (for example, address 0) to the internal address bus 46. selector 41
.. 42 selects the address and control lines to the memory 35 and memory card 36 to the b side according to the memory card insertion signal;
It is under the control of internal address bus 46 and timing control circuit 39. The timing control circuit 39 is connected to the memory card 3
6, the data in the memory card 36 is read out, and parity corresponding to the data is generated and held by the parity generation circuit 40. Next, the timing control circuit 39 outputs a write signal to the memory 35 and writes the parity data held by the parity generation circuit 40 to the memory 35.

書き込み終了後アドレスカウンタ38に終了情報を出力
し、アドレスカウンタ38は次のアドレス(例えば+1
番地)を内部アドレスバス46に出力し、メモリカード
36の次アドレスのデータを読み出し、パリティ生成、
メモリ書き込みを行う。こうして順にメモリカード36
のパリティデータをメモリ35に書き込みメモリカード
36の全領域について終了すると、アドレスカウンタ3
8はメモリカード挿入信号を出力するのをやめ、セレク
タ41.42をa側に倒し、CPU31の支配下として
、パリティ生成回路40をディスエーブル状態とする。
After writing is completed, the completion information is output to the address counter 38, and the address counter 38 selects the next address (for example, +1
address) to the internal address bus 46, reads the data at the next address of the memory card 36, generates parity,
Write to memory. In this way, the memory card 36
After writing the parity data to the memory 35 for the entire area of the memory card 36, the address counter 3
8 stops outputting the memory card insertion signal, sets the selectors 41 and 42 to the a side, and disables the parity generation circuit 40 under the control of the CPU 31.

また、挿入通知回路43にも終了情報を通知し、挿入通
知回路43はこの終了情報によりバッファ45を動作可
能状態にするとともに、制御線32を介してCPU31
にメモリカードアクセス可能状態を通知する。
In addition, the insertion notification circuit 43 also notifies the end information, and the insertion notification circuit 43 uses this end information to enable the buffer 45 and also sends it to the CPU 31 via the control line 32.
to notify the memory card access status.

CPU31はメモリカード36を読み出すときは、アド
レスバス34を介してアドレスを与え、制御線32によ
り読み出し信号を与え、メモリカード36とパリティ情
報を格納したメモリ35を同時にアクセスし、そのデー
タをバッファ45、データバス33を介してCPU31
に与え、読み出し信号を受けたパリティ検定回路44で
そのデータのパリティ検定を行い、誤っている場合には
制御線32を介してCPU31に通知する。このように
データ読み込み時に、メモリの誤り発生がCPU31に
通知されるので、CPU31はその読み込みデータを破
棄することにより誤動作を行わないような処理をするこ
とができる。
When reading the memory card 36, the CPU 31 gives an address via the address bus 34, gives a read signal via the control line 32, accesses the memory card 36 and the memory 35 storing parity information simultaneously, and transfers the data to the buffer 45. , the CPU 31 via the data bus 33
The parity test circuit 44 that receives the read signal performs a parity test on the data, and if the data is incorrect, it is notified to the CPU 31 via the control line 32. In this way, when reading data, the CPU 31 is notified of the occurrence of an error in the memory, so that the CPU 31 can perform processing to prevent malfunctions by discarding the read data.

CPU31がメモリカード36にデータを書き込む場合
には、アドレスバス34にアドレスを、データバス33
にデータを出力し、制御線32に書き込み信号を出力す
る。データはバッファ45を介して内部データバス48
に出力され、制御線32の書き込み信号に応じてパリテ
ィ生成回路40がメモリ35にパリティデータを与え、
メモリ35とメモリカード36に同時にデータが書き込
まれる。
When the CPU 31 writes data to the memory card 36, the address is sent to the address bus 34 and the data bus 33 is sent to the address bus 34.
Data is output to the control line 32, and a write signal is output to the control line 32. Data is transferred to internal data bus 48 via buffer 45.
The parity generation circuit 40 gives parity data to the memory 35 in response to the write signal on the control line 32.
Data is written to the memory 35 and memory card 36 at the same time.

第8図に示した実施例では誤り検定符号にパリティを利
用しているが、ECC5CRCを利用してもよい。また
CPU31にパリティ検定を無視する機能が付けられれ
ば、挿入時のメモリ35にパリティデータを与えるシー
ケンスは、CPU31のソフトウェアによっても可能で
ある。また、ROMタイプのメモリカードにプログラム
を記録している場合にも、メモリカードに対して書き込
み動作が行われないだけで、誤り検定が正常に実行され
ることは第3図に示した実施例と同様である。本実施例
ではメモリカードとは別に書き替え可能なメモリを設け
てこのメモリにパリティピットを記録するようにしてい
るので、第3図に示した実施例に比較してデータ読み出
し時の高速化を図ることができる。
In the embodiment shown in FIG. 8, parity is used as the error check code, but ECC5CRC may also be used. Furthermore, if the CPU 31 is equipped with a function to ignore the parity test, the sequence of providing parity data to the memory 35 at the time of insertion can also be performed by the software of the CPU 31. Furthermore, even when a program is recorded on a ROM type memory card, the error check can be executed normally even if no write operation is performed on the memory card, as shown in the embodiment shown in Figure 3. It is similar to In this embodiment, a rewritable memory is provided separately from the memory card, and parity pits are recorded in this memory, so data reading speed is increased compared to the embodiment shown in FIG. can be achieved.

発明の効果 本発明のメモリ誤り検出方式は以上詳述したように構成
したので、標準規格のメモリカードをそのまま使用して
従来のプリント板形態のメモリと同様な誤り検査/訂正
を実現できるという効果を奏する。
Effects of the Invention Since the memory error detection method of the present invention is configured as detailed above, it has the advantage that it is possible to use a standard memory card as is to realize error checking/correction similar to that of a conventional printed board type memory. play.

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

第1図及び第2図は本発明の原理図、 第3図は本発明の実施例ブロック図、 第4図はパリティ情報記録アドレスとパリティビット位
置計算方法模式図、 第5図はアドレスX’F6’の内容を示す模式第6図は
アドレス発生回路ブロック図、第7図はアドレス発生回
路の動作説明図、第8図は本発明の他の実施例ブロック
図である。 1・・・CPU、        2・・・システムバ
ス、3・・・データ記録領域、 4・・・チェックコード記録領域、 5.7・・・メモリカード、 6.9・・・誤り検定手段、 8・・・メモリ、15・
・・パリティ生成回路、 16・・・アドレス変換回路、 17・・・パリティ検定回路、 20・・・メモリカード、 24・・・アドレス発生回路、 35・・・メモリ、      36・・・メモリカー
ド、37・・・挿入検出回路、 40・・・パリティ生成回路、 44・・・パリティ検定回路。 不光明0犀理聞 第1図
1 and 2 are diagrams of the principle of the present invention, FIG. 3 is a block diagram of an embodiment of the present invention, FIG. 4 is a schematic diagram of a parity information recording address and a parity bit position calculation method, and FIG. 5 is an address X' FIG. 6 is a schematic diagram showing the contents of F6', and FIG. 7 is a block diagram of the address generation circuit. FIG. 7 is an explanatory diagram of the operation of the address generation circuit. FIG. 8 is a block diagram of another embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... CPU, 2... System bus, 3... Data recording area, 4... Check code recording area, 5.7... Memory card, 6.9... Error verification means, 8 ...Memory, 15.
...Parity generation circuit, 16...Address conversion circuit, 17...Parity verification circuit, 20...Memory card, 24...Address generation circuit, 35...Memory, 36...Memory card, 37... Insertion detection circuit, 40... Parity generation circuit, 44... Parity verification circuit. Fukōmei 0 Sai Rimon Figure 1

Claims (2)

【特許請求の範囲】[Claims] (1)CPU(1)と、該CPUに接続されたシステム
バス(2)と、内部をデータ記録領域(3)とチェック
コード記録領域(4)の二つの領域に使い分けるメモリ
カード(5)と、前記システムバス(2)とメモリカー
ド(5)の間に介装されチェックコードの付加とメモリ
の誤り検定を行う誤り検定手段(6)とを具備し、 CPU(1)がメモリカード(5)にデータを書き込む
場合には、チェックコードを誤り検定手段(6)で生成
してメモリカード(5)のチェックコード記録領域(4
)に書き込み、 CPU(1)がメモリカード(5)のデータを読み込む
場合には、メモリカード内のデータ記録領域(3)のビ
ット誤りを、チェックコード記録領域(4)に書き込ま
れているチェックコードを用いて、誤り検定手段(6)
でデータの読み込み時に検出し、システムバス(2)を
通してCPU(1)に誤りの発生を通知することを特徴
とするメモリ誤り検出方式。
(1) A CPU (1), a system bus (2) connected to the CPU, and a memory card (5) whose interior is divided into two areas: a data recording area (3) and a check code recording area (4). , an error verification means (6) interposed between the system bus (2) and the memory card (5) for adding a check code and verifying errors in the memory; ), a check code is generated by the error verification means (6) and written to the check code recording area (4) of the memory card (5).
), and when the CPU (1) reads data from the memory card (5), it detects bit errors in the data recording area (3) in the memory card by checking the bit errors written in the check code recording area (4). Error verification method using code (6)
A memory error detection method characterized by detecting an error when reading data and notifying a CPU (1) of the occurrence of an error through a system bus (2).
(2)CPU(1)と、該CPUに接続されたシステム
バス(2)と、メモリカード(7)と、書き替え可能な
メモリ(8)と、前記システムバス(2)と前記メモリ
カード(7)及びメモリ(8)の間に介装されチェック
コードの付加とメモリの誤り検定を行う誤り検定手段(
9)とを具備し、 CPU(1)がメモリカード(7)にデータを書き込む
場合には、チェックコードを誤り検定手段(9)で生成
して前記メモリ(8)に書き込み、 CPU(1)がメモリカード(7)のデータを読み込む
場合には、メモリカード(7)のデータのビット誤りを
、前記メモリ(8)に書き込まれているチェックコード
を用いて、誤り検定手段(9)でデータの読み込み時に
検出し、システムバス(2)を通してCPU(1)に誤
りの発生を通知することを特徴とするメモリ誤り検出方
式。
(2) A CPU (1), a system bus (2) connected to the CPU, a memory card (7), a rewritable memory (8), the system bus (2) and the memory card ( 7) and the memory (8), an error checking means (
When the CPU (1) writes data to the memory card (7), a check code is generated by the error verification means (9) and written to the memory (8), and the CPU (1) When reading the data on the memory card (7), the bit errors in the data on the memory card (7) are detected by the error checking means (9) using the check code written in the memory (8). A memory error detection method is characterized in that it is detected when an error is read, and the CPU (1) is notified of the occurrence of an error through a system bus (2).
JP63220373A 1988-09-05 1988-09-05 Memory error detecting system Pending JPH0268642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63220373A JPH0268642A (en) 1988-09-05 1988-09-05 Memory error detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63220373A JPH0268642A (en) 1988-09-05 1988-09-05 Memory error detecting system

Publications (1)

Publication Number Publication Date
JPH0268642A true JPH0268642A (en) 1990-03-08

Family

ID=16750106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63220373A Pending JPH0268642A (en) 1988-09-05 1988-09-05 Memory error detecting system

Country Status (1)

Country Link
JP (1) JPH0268642A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101856913A (en) * 2009-04-01 2010-10-13 精工爱普生株式会社 Storage device, substrate, liquid container, system, data store control method
US8215734B2 (en) 2009-04-01 2012-07-10 Seiko Epson Corporation Liquid consuming system, liquid consuming apparatus, liquid supply unit, and method of supervising a remaining amount of liquid contained in a liquid supply unit
US8230163B2 (en) 2009-04-01 2012-07-24 Seiko Epson Corporation Memory device, host circuit, circuit board, liquid receptacle, method of transmitting data stored in a nonvolatile data memory section to a host circuit, and system including a host circuit and a memory device detachably attachable to the host circuit
US8291154B2 (en) 2009-04-01 2012-10-16 Seiko Epson Corporation Memory device accepting write data and inverted write data from a host circuit
US8289788B2 (en) 2009-04-01 2012-10-16 Seiko Epson Corporation System having a plurality of memory devices and data transfer method for the same
US8348377B2 (en) 2010-05-25 2013-01-08 Seiko Epson Corporation Storage device, board, liquid container, method of receiving data which are to be written in data storage unit from host circuit, and system including storage device which is electrically connectable to host circuit
US8782326B2 (en) 2009-04-01 2014-07-15 Seiko Epson Corporation Memory device and system including a memory device electronically connectable to a host circuit

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101856913A (en) * 2009-04-01 2010-10-13 精工爱普生株式会社 Storage device, substrate, liquid container, system, data store control method
US8215734B2 (en) 2009-04-01 2012-07-10 Seiko Epson Corporation Liquid consuming system, liquid consuming apparatus, liquid supply unit, and method of supervising a remaining amount of liquid contained in a liquid supply unit
US8230163B2 (en) 2009-04-01 2012-07-24 Seiko Epson Corporation Memory device, host circuit, circuit board, liquid receptacle, method of transmitting data stored in a nonvolatile data memory section to a host circuit, and system including a host circuit and a memory device detachably attachable to the host circuit
US8291154B2 (en) 2009-04-01 2012-10-16 Seiko Epson Corporation Memory device accepting write data and inverted write data from a host circuit
US8289788B2 (en) 2009-04-01 2012-10-16 Seiko Epson Corporation System having a plurality of memory devices and data transfer method for the same
US8627190B2 (en) 2009-04-01 2014-01-07 Seiko Epson Corporation Memory device, circuit board, liquid receptacle, method of controlling a nonvolatile data memory section, and system including a memory device detachably connectable to a host circuit
US8782326B2 (en) 2009-04-01 2014-07-15 Seiko Epson Corporation Memory device and system including a memory device electronically connectable to a host circuit
US8348377B2 (en) 2010-05-25 2013-01-08 Seiko Epson Corporation Storage device, board, liquid container, method of receiving data which are to be written in data storage unit from host circuit, and system including storage device which is electrically connectable to host circuit

Similar Documents

Publication Publication Date Title
US7809899B2 (en) System for integrity protection for standard 2n-bit multiple sized memory devices
JPH0268642A (en) Memory error detecting system
JP2003345669A (en) System and method for preventing memory access error
JPS62242258A (en) Storage device
JP3341745B2 (en) Electronic disk drive write / read control method and device
JP2600376B2 (en) Memory controller
JP3182834B2 (en) Memory device
JP2875435B2 (en) Memory module and computer using the same
JPH0434786B2 (en)
SU1065888A1 (en) Buffer storage
JPH01258054A (en) Access control system for storage device
JPH03263148A (en) Storage device
JPH06110721A (en) Memory controller
JPS62125453A (en) Storage device
JPS6043542B2 (en) information processing equipment
JPS60126753A (en) Data buffer storage device
JP2000207289A (en) Data error detecting system and its method
JPS6052455B2 (en) Parity detection function check method
JPH0216658A (en) Memory device
JPS63177240A (en) Control system for memory diagnosis
JPS60101649A (en) Diagnosis device of electronic computer
JPS60116052A (en) Amending system of inferior data
JPS6310378A (en) Peripheral memory device
JPS6398052A (en) Memory device
JPS6252649A (en) Hard error detector for memory element